1
0
Fork 0

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:
tastytea 2022-09-01 04:20:12 +02:00
parent bd7943dbc4
commit d1e7ea346a
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 3 additions and 1 deletions

View File

@ -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: */

View File

@ -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