From 43b08601a95e2047a249f2d9e7468455f49388d7 Mon Sep 17 00:00:00 2001 From: Matthieu PETIOT Date: Thu, 30 Jul 2020 22:29:59 +0200 Subject: [PATCH] Add ^_ mapping to undo in viins mode (#1860) This allows to cancel a tab completion, as ^_ in emacs mode. --- modules/editor/init.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/editor/init.zsh b/modules/editor/init.zsh index 28a2fb24a04..5b411f58a95 100644 --- a/modules/editor/init.zsh +++ b/modules/editor/init.zsh @@ -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