From 752f64f0852d369ab0970301fa55a565805df21e Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Fri, 8 Sep 2017 22:08:02 -0700 Subject: [PATCH] Bind more unbound keys in viins and vicmd to nothing Unbound keys in viins or vicmd mode have undefined results. Bind two more of these to nothing to avoid this. --- modules/editor/init.zsh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/editor/init.zsh b/modules/editor/init.zsh index 40dbb8f0..e5fee927 100644 --- a/modules/editor/init.zsh +++ b/modules/editor/init.zsh @@ -28,9 +28,11 @@ WORDCHARS='*?_-.[]~&;!#$%^(){}<>' zmodload zsh/terminfo typeset -gA key_info key_info=( - 'Control' '\C-' - 'ControlLeft' '\e[1;5D \e[5D \e\e[D \eOd' - 'ControlRight' '\e[1;5C \e[5C \e\e[C \eOc' + 'Control' '\C-' + 'ControlLeft' '\e[1;5D \e[5D \e\e[D \eOd' + 'ControlRight' '\e[1;5C \e[5C \e\e[C \eOc' + 'ControlPageUp' '\e[5;5~' + 'ControlPageDown' '\e[6;5~' 'Escape' '\e' 'Meta' '\M-' 'Backspace' "^?" @@ -305,6 +307,8 @@ unbound_keys=( "${key_info[F12]}" "${key_info[PageUp]}" "${key_info[PageDown]}" + "${key_info[ControlPageUp]}" + "${key_info[ControlPageDown]}" ) for keymap in $unbound_keys; do bindkey -M viins "${keymap}" _prezto-zle-noop