From bf7170c63b0b21e9daf0f85cf2be349536d1aad0 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 28a2fb2..5b411f5 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