summaryrefslogtreecommitdiff
path: root/plugins/vi-mode
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-04-09 16:48:56 +0200
committerGitHub <noreply@github.com>2019-04-09 16:48:56 +0200
commita628b552c47be4e571dcba751ac12d0bf1d14133 (patch)
tree32e73f3bea6d4873a540e2b1b0f6b63b2bcfb432 /plugins/vi-mode
parent8a94013f37d658ea20ddee9c83ca7b8e1e933c28 (diff)
downloadzsh-a628b552c47be4e571dcba751ac12d0bf1d14133.tar.gz
zsh-a628b552c47be4e571dcba751ac12d0bf1d14133.tar.bz2
zsh-a628b552c47be4e571dcba751ac12d0bf1d14133.zip
vi-mode: add CTRL+S to search history forward
Fixes #6999
Diffstat (limited to 'plugins/vi-mode')
-rw-r--r--plugins/vi-mode/vi-mode.plugin.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
index 93964594b..c1cdd2851 100644
--- a/plugins/vi-mode/vi-mode.plugin.zsh
+++ b/plugins/vi-mode/vi-mode.plugin.zsh
@@ -28,8 +28,9 @@ bindkey '^?' backward-delete-char
bindkey '^h' backward-delete-char
bindkey '^w' backward-kill-word
-# allow ctrl-r to perform backward search in history
+# allow ctrl-r and ctrl-s to search the history
bindkey '^r' history-incremental-search-backward
+bindkey '^s' history-incremental-search-forward
# allow ctrl-a and ctrl-e to move to beginning/end of line
bindkey '^a' beginning-of-line