Skip to content

Commit

Permalink
Add ^_ mapping to undo in viins mode (sorin-ionescu#1860)
Browse files Browse the repository at this point in the history
This allows to cancel a tab completion, as ^_ in emacs mode.
  • Loading branch information
Matthieu PETIOT authored and hghwng committed Mar 15, 2021
1 parent dd54c21 commit 37ee955
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/editor/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37ee955

Please sign in to comment.