tags:

views:

36

answers:

2

I just discovered the possibility to use vi-mode in zsh. Pretty awesome. But I used CTRL-r in emacs-mode pretty much and really really miss it. Is there something alike or can I get that functionality in vi-mode as well?

A: 

From gVIM's help /:

?{pattern}[?]<CR>   Search backward for the [count]'th previous
        occurrence of {pattern} |exclusive|.
amphetamachine
What i liked about CTRL-r is its responsiveness. Typing until i see my expected result. I have to hit enter when using '/' and then it could be something unexpected :/
Nils Riedemann
+1  A: 

You can bind history-incremental-search-backward to any key, for example:

bindkey -M vicmd '?' history-incremental-search-backward
ZyX