Browse Source

Add ^_ mapping to undo in viins mode (#1860)

This allows to cancel a tab completion, as ^_ in emacs mode.
master
Matthieu PETIOT 4 years ago committed by GitHub
parent
commit
bf7170c63b
  1. 1
      modules/editor/init.zsh

1
modules/editor/init.zsh

@ -318,6 +318,7 @@ bindkey -M vicmd "$key_info[Control]X$key_info[Control]E" edit-command-line
# Undo/Redo # Undo/Redo
bindkey -M vicmd "u" undo bindkey -M vicmd "u" undo
bindkey -M viins "$key_info[Control]_" undo
bindkey -M vicmd "$key_info[Control]R" redo bindkey -M vicmd "$key_info[Control]R" redo
if (( $+widgets[history-incremental-pattern-search-backward] )); then if (( $+widgets[history-incremental-pattern-search-backward] )); then

Loading…
Cancel
Save