Add ctrl-r support in vi-mode to perform backward search in history

Signed-off-by: Douglas Drumond <douglas@cafelinear.com>
This commit is contained in:
Douglas Drumond 2016-04-11 14:47:43 -03:00
commit 7e7ed8f759

View file

@ -28,6 +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
bindkey '^r' history-incremental-search-backward
# if mode indicator wasn't setup by theme, define default
if [[ "$MODE_INDICATOR" == "" ]]; then
MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"