lib: remove CTRL-Backspace binding for vi keymaps

This commit is contained in:
Marc Cornellà 2020-08-05 14:34:14 +02:00
parent fa5db3444b
commit 39c0073225

View file

@ -77,8 +77,8 @@ bindkey -M vicmd '^?' backward-delete-char
# [Delete] - delete forward # [Delete] - delete forward
if [[ -n "${terminfo[kdch1]}" ]]; then if [[ -n "${terminfo[kdch1]}" ]]; then
bindkey -M emacs "${terminfo[kdch1]}" delete-char bindkey -M emacs "${terminfo[kdch1]}" delete-char
bindkey -M viins "${terminfo[kdch1]}" delete-char # [Delete] - delete forward bindkey -M viins "${terminfo[kdch1]}" delete-char
bindkey -M vicmd "${terminfo[kdch1]}" delete-char # [Delete] - delete forward bindkey -M vicmd "${terminfo[kdch1]}" delete-char
else else
bindkey -M emacs "^[[3~" delete-char bindkey -M emacs "^[[3~" delete-char
bindkey -M viins "^[[3~" delete-char bindkey -M viins "^[[3~" delete-char
@ -91,8 +91,6 @@ fi
# [Ctrl-Backspace] - delete whole backward-word # [Ctrl-Backspace] - delete whole backward-word
bindkey -M emacs '^H' backward-kill-word bindkey -M emacs '^H' backward-kill-word
bindkey -M viins '^H' backward-kill-word
bindkey -M vicmd '^H' backward-kill-word
# [Ctrl-Delete] - delete whole forward-word # [Ctrl-Delete] - delete whole forward-word
bindkey -M emacs '^[[3;5~' kill-word bindkey -M emacs '^[[3;5~' kill-word
bindkey -M viins '^[[3;5~' kill-word bindkey -M viins '^[[3;5~' kill-word