a628b552c47be4e571dcba751ac12d0bf1d14133

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

vi-mode: add CTRL+S to search history forward

Fixes #6999

Diff

 1diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
 2index 93964594b2c9691cce884a8bb65f9849a31a6473..c1cdd2851b5fc998eb52f234ec703ba31199f784 100644
 3--- a/plugins/vi-mode/vi-mode.plugin.zsh
 4+++ b/plugins/vi-mode/vi-mode.plugin.zsh
 5@@ -28,8 +28,9 @@ bindkey '^?' backward-delete-char
 6 bindkey '^h' backward-delete-char
 7 bindkey '^w' backward-kill-word
 8 
 9-# allow ctrl-r to perform backward search in history
10+# allow ctrl-r and ctrl-s to search the history
11 bindkey '^r' history-incremental-search-backward
12+bindkey '^s' history-incremental-search-forward
13 
14 # allow ctrl-a and ctrl-e to move to beginning/end of line
15 bindkey '^a' beginning-of-line