mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-21 05:43:42 +00:00
fix keybindings for sun machines
This commit is contained in:
parent
d3a329ecf6
commit
f19b125086
3 changed files with 13 additions and 0 deletions
5
inputrc
5
inputrc
|
@ -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
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 [H <Home>
|
||||
map [U <End>
|
||||
elseif (&term =~ "^sun")
|
||||
map <C-?> <DEL>
|
||||
map! <C-?> <DEL>
|
||||
elseif (&term !~ "cons")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue