fix keybindings for sun machines

This commit is contained in:
david 2009-01-12 01:23:01 -05:00
parent d3a329ecf6
commit f19b125086
3 changed files with 13 additions and 0 deletions

View file

@ -142,6 +142,11 @@ $if mode=emacs
"\e[H": beginning-of-line
"\e[U": end-of-line
$endif
$if term=sun
"\e[214z": beginning-of-line
"\e[220z": end-of-line
"^?": delete-char
$endif
$if term=cygwin
"\e[1~": beginning-of-line
"\e[4~": end-of-line

3
vimrc
View file

@ -264,8 +264,11 @@ inoremap # X<BS>#
map <C-h> <BS>
map! <C-h> <BS>
if (&term =~ "interix")
map <C-?> <DEL>
map! <C-?> <DEL>
map  <Home>
map  <End>
elseif (&term =~ "^sun")
map <C-?> <DEL>
map! <C-?> <DEL>
elseif (&term !~ "cons")

View file

@ -61,6 +61,11 @@ case $TERM in
bindkey '\e[U' end-of-line
bindkey '^?' delete-char
;;
sun*)
bindkey '\e[214z' beginning-of-line
bindkey '\e[220z' end-of-line
bindkey '^?' delete-char
;;
cygwin*)
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line