Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Backward search in vi-mode [closed]

Tags:

vi

zsh

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?

like image 829
nocksock Avatar asked Jun 27 '10 12:06

nocksock


1 Answers

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

bindkey -M vicmd '?' history-incremental-search-backward 
like image 107
ZyX Avatar answered Sep 29 '22 14:09

ZyX