Permalink
Browse files

fix keybindings for sun machines

  • Loading branch information...
1 parent d3a329e commit f19b125086bdb859e05535d59171c81b5d84b81a david committed Jan 12, 2009
Showing with 13 additions and 0 deletions.
  1. +5 −0 inputrc
  2. +3 −0 vimrc
  3. +5 −0 zsh/bindkey
View
@@ -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
View
3 vimrc
@@ -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
@@ -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

0 comments on commit f19b125

Please sign in to comment.