zsh: add keybinding M-BackSpace -> backward-delete-word
C-BackSpace is mapped to M-BackSpace in my terminal, because it sends
C-H otherwise. But it really is mapped to ESC-DEL. It gets interpreted
differently. 🥴
This commit is contained in:
parent
bd7943dbc4
commit
d1e7ea346a
|
@ -46,3 +46,5 @@ URxvt*color15: #FFFFFF
|
|||
! Perl extensions
|
||||
URxvt.perl-ext-common: default,matcher
|
||||
URxvt.url-launcher: xdg-open
|
||||
|
||||
/* vim: set ts=4 sw=4 et tw=80 ft=xdefaults: */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
bindkey -v
|
||||
# Keybindings - from zshwiki.org
|
||||
|
||||
# create a zkbd compatible hash;
|
||||
# to add other keys to this hash, see: man 5 terminfo
|
||||
|
@ -51,6 +50,7 @@ bindkey '^[[1;5A' history-substring-search-up
|
|||
bindkey '^[[1;5B' history-substring-search-down
|
||||
|
||||
bindkey '^H' backward-delete-word # C-BackSpace
|
||||
bindkey '^[^?' backward-delete-word # M-BackSpace (ESC + DEL)
|
||||
bindkey '^[[3;5~' delete-word # C-Del
|
||||
bindkey '^[[1;5D' backward-word # C-Left
|
||||
bindkey '^[[1;5C' forward-word # C-Right
|
||||
|
|
Loading…
Reference in New Issue