Fix arrow keys in ZSH viins mode
This commit is contained in:
parent
64cfac63a5
commit
9ca1e57d17
1 changed files with 6 additions and 0 deletions
6
zshrc
6
zshrc
|
@ -81,6 +81,12 @@ function configure_zle_vim #{{{
|
|||
autoload -Uz edit-command-line
|
||||
zle -N edit-command-line
|
||||
bindkey -M vicmd v edit-command-line
|
||||
|
||||
# Use arrow keys to go up and down lines and/or history in insert mode
|
||||
bindkey -M viins "^[OA" up-line-or-history
|
||||
bindkey -M viins "^[[A" up-line-or-history
|
||||
bindkey -M viins "^[OB" down-line-or-history
|
||||
bindkey -M viins "^[[B" down-line-or-history
|
||||
} #}}}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue