Add ^_ mapping to undo in viins mode (#1860)
This allows to cancel a tab completion, as ^_ in emacs mode.
This commit is contained in:
parent
e9197234cf
commit
38882275b8
1 changed files with 1 additions and 0 deletions
|
@ -318,6 +318,7 @@ bindkey -M vicmd "$key_info[Control]X$key_info[Control]E" edit-command-line
|
|||
|
||||
# Undo/Redo
|
||||
bindkey -M vicmd "u" undo
|
||||
bindkey -M viins "$key_info[Control]_" undo
|
||||
bindkey -M vicmd "$key_info[Control]R" redo
|
||||
|
||||
if (( $+widgets[history-incremental-pattern-search-backward] )); then
|
||||
|
|
Loading…
Reference in a new issue