mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
Merge pull request #2605 from mhauserr/patch-1
Added v as a keybinding to edit-command-line in vi-mode
This commit is contained in:
commit
d9683974fe
1 changed files with 6 additions and 0 deletions
|
@ -17,9 +17,15 @@ function zle-keymap-select zle-line-init zle-line-finish {
|
||||||
zle -N zle-line-init
|
zle -N zle-line-init
|
||||||
zle -N zle-line-finish
|
zle -N zle-line-finish
|
||||||
zle -N zle-keymap-select
|
zle -N zle-keymap-select
|
||||||
|
zle -N edit-command-line
|
||||||
|
|
||||||
|
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
|
||||||
|
# allow v to edit the command line (standard behaviour)
|
||||||
|
autoload -Uz edit-command-line
|
||||||
|
bindkey -M vicmd 'v' edit-command-line
|
||||||
|
|
||||||
# if mode indicator wasn't setup by theme, define default
|
# if mode indicator wasn't setup by theme, define default
|
||||||
if [[ "$MODE_INDICATOR" == "" ]]; then
|
if [[ "$MODE_INDICATOR" == "" ]]; then
|
||||||
MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"
|
MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"
|
||||||
|
|
Loading…
Reference in a new issue