mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-16 06:36:45 +08:00
fix(vi-mode)!: add back edit-command-line key binding as 'vv' (#9573)
BREAKING CHANGE: the key binding to open an editor to edit the command line has been moved from being `v` (press v once) to being `vv` (press v twice). Now, the action for `v` is the default `visual-mode`, as is in Vim. Fixes #9573
This commit is contained in:
1 parent
79980b00fb
commit
2118d35e01
2 files changed
+13
-6
No files matched your search
@@ -64,6 +64,11 @@ zle -N zle-line-finish
|
||||
|
||||
bindkey -v
|
||||
|
||||
# allow vv to edit the command line (standard behaviour)
|
||||
autoload -Uz edit-command-line
|
||||
zle -N edit-command-line
|
||||
bindkey -M vicmd 'vv' edit-command-line
|
||||
|
||||
# allow ctrl-p, ctrl-n for navigate history (standard behaviour)
|
||||
bindkey '^P' up-history
|
||||
bindkey '^N' down-history
|
||||
|
||||
Reference in new issue
Block a user