From 9f1a41de9015e89c5553289173e2e1a7e5a0b35d Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Mon, 24 Jul 2017 04:00:54 -0700 Subject: [PATCH] Fix unbound keys in vicmd/viins mode Previously I made a change to try and bind these unbound keys to the main keymap in thoughts that in vicmd or viins mode it would fallback if it wasn't bound in vicmd/viins mode. This turned out not to be the case. Explicitly bind the keys in both viins and vicmd mode as works properly. --- modules/editor/init.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/editor/init.zsh b/modules/editor/init.zsh index 4e373ee..40dbb8f 100644 --- a/modules/editor/init.zsh +++ b/modules/editor/init.zsh @@ -307,7 +307,8 @@ unbound_keys=( "${key_info[PageDown]}" ) for keymap in $unbound_keys; do - bindkey -M main "${keymap}" _prezto-zle-noop + bindkey -M viins "${keymap}" _prezto-zle-noop + bindkey -M vicmd "${keymap}" _prezto-zle-noop done # Ctrl + Left and Ctrl + Right bindings to forward/backward word for keymap in viins vicmd; do