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 glebec committed Oct 8, 2023
1 parent 1d5b5cb commit d98ee84
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 d98ee84

Please sign in to comment.