mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
PLUGINS: vi-mode: ctrl-r for history searching
Added the standard behaviour of ctrl-r for history incremental searching.
This commit is contained in:
parent
33900dfd32
commit
230cb0be79
1 changed files with 2 additions and 1 deletions
|
|
@ -34,9 +34,10 @@ bindkey -v
|
||||||
autoload -Uz edit-command-line
|
autoload -Uz edit-command-line
|
||||||
bindkey -M vicmd 'v' edit-command-line
|
bindkey -M vicmd 'v' edit-command-line
|
||||||
|
|
||||||
# allow ctrl-p, ctrl-n for navigate history (standard behaviour)
|
# allow ctrl-p, ctrl-n, ctrl-r for navigate history (standard behaviour)
|
||||||
bindkey '^P' up-history
|
bindkey '^P' up-history
|
||||||
bindkey '^N' down-history
|
bindkey '^N' down-history
|
||||||
|
bindkey '^r' history-incremental-search-backward
|
||||||
|
|
||||||
# allow ctrl-h, ctrl-w, ctrl-? for char and word deletion (standard behaviour)
|
# allow ctrl-h, ctrl-w, ctrl-? for char and word deletion (standard behaviour)
|
||||||
bindkey '^?' backward-delete-char
|
bindkey '^?' backward-delete-char
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue