How to map the Delete key in vimrc?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
On an old UNIX workstation, Freebsd 3.6 (I know 3.6 is old, but it isn't connected to network), my Vim doesn't have the Delete key mapped.
So I did
:set <del>=(pressed CTRL-V)(pressed delete/canc)
This works, but I don't know the correct syntax for vimrc
Using Ctrl-v in a terminal I can see that my Delete key sends ^[[3~
. So I tried adding
map <DEL> ^[[3~
to my .vimrc
, but that doesn't work.
vim
add a comment |Â
up vote
0
down vote
favorite
On an old UNIX workstation, Freebsd 3.6 (I know 3.6 is old, but it isn't connected to network), my Vim doesn't have the Delete key mapped.
So I did
:set <del>=(pressed CTRL-V)(pressed delete/canc)
This works, but I don't know the correct syntax for vimrc
Using Ctrl-v in a terminal I can see that my Delete key sends ^[[3~
. So I tried adding
map <DEL> ^[[3~
to my .vimrc
, but that doesn't work.
vim
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
On an old UNIX workstation, Freebsd 3.6 (I know 3.6 is old, but it isn't connected to network), my Vim doesn't have the Delete key mapped.
So I did
:set <del>=(pressed CTRL-V)(pressed delete/canc)
This works, but I don't know the correct syntax for vimrc
Using Ctrl-v in a terminal I can see that my Delete key sends ^[[3~
. So I tried adding
map <DEL> ^[[3~
to my .vimrc
, but that doesn't work.
vim
On an old UNIX workstation, Freebsd 3.6 (I know 3.6 is old, but it isn't connected to network), my Vim doesn't have the Delete key mapped.
So I did
:set <del>=(pressed CTRL-V)(pressed delete/canc)
This works, but I don't know the correct syntax for vimrc
Using Ctrl-v in a terminal I can see that my Delete key sends ^[[3~
. So I tried adding
map <DEL> ^[[3~
to my .vimrc
, but that doesn't work.
vim
vim
edited Oct 1 '17 at 18:32
Satà  Katsura
10.7k11533
10.7k11533
asked Oct 1 '17 at 18:19
elbarna
3,83693577
3,83693577
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Try it the other way around:
map <Esc>[3~ <Del>
Or use t_kD
instead:
let &t_kD = "x1b[3~"
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Try it the other way around:
map <Esc>[3~ <Del>
Or use t_kD
instead:
let &t_kD = "x1b[3~"
add a comment |Â
up vote
1
down vote
accepted
Try it the other way around:
map <Esc>[3~ <Del>
Or use t_kD
instead:
let &t_kD = "x1b[3~"
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Try it the other way around:
map <Esc>[3~ <Del>
Or use t_kD
instead:
let &t_kD = "x1b[3~"
Try it the other way around:
map <Esc>[3~ <Del>
Or use t_kD
instead:
let &t_kD = "x1b[3~"
answered Oct 1 '17 at 18:32
Satà  Katsura
10.7k11533
10.7k11533
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f395503%2fhow-to-map-the-delete-key-in-vimrc%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password