[zsh] Add jj to get to vicmd mode and ^R to seach history
This commit is contained in:
parent
9ca1e57d17
commit
529a4f9db9
1 changed files with 6 additions and 0 deletions
6
zshrc
6
zshrc
|
@ -82,6 +82,12 @@ function configure_zle_vim #{{{
|
||||||
zle -N edit-command-line
|
zle -N edit-command-line
|
||||||
bindkey -M vicmd v edit-command-line
|
bindkey -M vicmd v edit-command-line
|
||||||
|
|
||||||
|
# Use 'jj' to get to Cmd mode
|
||||||
|
bindkey -M viins 'jj' vi-cmd-mode
|
||||||
|
|
||||||
|
# Backwards incremental history search on ^R in insert mode
|
||||||
|
bindkey -M viins '^R' history-incremental-search-backwards
|
||||||
|
|
||||||
# Use arrow keys to go up and down lines and/or history in insert mode
|
# 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 "^[OA" up-line-or-history
|
||||||
bindkey -M viins "^[[A" up-line-or-history
|
bindkey -M viins "^[[A" up-line-or-history
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue