From 39c0073225194cdb11f2e42bb7d5e63cbf9e2955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Wed, 5 Aug 2020 14:34:14 +0200 Subject: [PATCH] lib: remove CTRL-Backspace binding for vi keymaps --- lib/key-bindings.zsh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh index ac1adf2e7..4916034b3 100644 --- a/lib/key-bindings.zsh +++ b/lib/key-bindings.zsh @@ -76,9 +76,9 @@ bindkey -M viins '^?' backward-delete-char bindkey -M vicmd '^?' backward-delete-char # [Delete] - delete forward if [[ -n "${terminfo[kdch1]}" ]]; then - bindkey -M emacs "${terminfo[kdch1]}" delete-char - bindkey -M viins "${terminfo[kdch1]}" delete-char # [Delete] - delete forward - bindkey -M vicmd "${terminfo[kdch1]}" delete-char # [Delete] - delete forward + bindkey -M emacs "${terminfo[kdch1]}" delete-char + bindkey -M viins "${terminfo[kdch1]}" delete-char + bindkey -M vicmd "${terminfo[kdch1]}" delete-char else bindkey -M emacs "^[[3~" delete-char bindkey -M viins "^[[3~" delete-char @@ -91,8 +91,6 @@ fi # [Ctrl-Backspace] - delete whole backward-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 bindkey -M emacs '^[[3;5~' kill-word bindkey -M viins '^[[3;5~' kill-word