1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 08:08:00 +00:00

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

This allows to cancel a tab completion, as ^_ in emacs mode.
This commit is contained in:
Matthieu PETIOT 2020-07-30 22:29:59 +02:00 committed by GitHub
parent e9197234cf
commit 38882275b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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