Skip to content

Commit

Permalink
Fix unbound keys in vicmd/viins mode
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
samcv authored and belak committed Jul 24, 2017
1 parent 1e07c36 commit 8d99e8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/editor/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d99e8b

Please sign in to comment.