Skip to content

Commit f19b125

Browse files
author
david
committed
fix keybindings for sun machines
1 parent d3a329e commit f19b125

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

inputrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ $if mode=emacs
142142
"\e[H": beginning-of-line
143143
"\e[U": end-of-line
144144
$endif
145+
$if term=sun
146+
"\e[214z": beginning-of-line
147+
"\e[220z": end-of-line
148+
"^?": delete-char
149+
$endif
145150
$if term=cygwin
146151
"\e[1~": beginning-of-line
147152
"\e[4~": end-of-line

vimrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,11 @@ inoremap # X<BS>#
264264
map <C-h> <BS>
265265
map! <C-h> <BS>
266266
if (&term =~ "interix")
267+
map <C-?> <DEL>
268+
map! <C-?> <DEL>
267269
map  <Home>
268270
map  <End>
271+
elseif (&term =~ "^sun")
269272
map <C-?> <DEL>
270273
map! <C-?> <DEL>
271274
elseif (&term !~ "cons")

zsh/bindkey

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ case $TERM in
6161
bindkey '\e[U' end-of-line
6262
bindkey '^?' delete-char
6363
;;
64+
sun*)
65+
bindkey '\e[214z' beginning-of-line
66+
bindkey '\e[220z' end-of-line
67+
bindkey '^?' delete-char
68+
;;
6469
cygwin*)
6570
bindkey '\e[1~' beginning-of-line
6671
bindkey '\e[4~' end-of-line

0 commit comments

Comments
 (0)