Support for alt+arrows for XTerm-compatible terminals.

This commit is contained in:
Stanislav Nikitin 2017-07-31 05:53:13 +05:00
parent 1bfdd4a562
commit 86d4eab5d2
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*kdev4 *kdev4
*kate-swp *kate-swp
fabfile* fabfile*
.DS_Store*

View File

@ -85,12 +85,12 @@ case "${TERM}" in
bindkey '\e[H' beginning-of-line # home bindkey '\e[H' beginning-of-line # home
bindkey '\e[F' end-of-line # end bindkey '\e[F' end-of-line # end
bindkey '\e[3~' delete-char # delete bindkey '\e[3~' delete-char # delete
#bindkey '\e[1;5C' forward-word # ctrl right
#bindkey '\e[1;5D' backward-word # ctrl left
bindkey '^[[C' forward-word # ctrl right bindkey '^[[C' forward-word # ctrl right
bindkey '^[[D' backward-word # ctrl left bindkey '^[[D' backward-word # ctrl left
bindkey 'OC' forward-word # ctrl right bindkey 'OC' forward-word # ctrl right
bindkey 'OD' backward-word # ctrl left bindkey 'OD' backward-word # ctrl left
bindkey '^[[1;3C' forward-word # alt right
bindkey '^[[1;3D' backward-word # alt left
# workaround for screen + xterm # workaround for screen + xterm
bindkey '\e[1~' beginning-of-line # home bindkey '\e[1~' beginning-of-line # home
bindkey '\e[4~' end-of-line # end bindkey '\e[4~' end-of-line # end