Skip to main content

How to enable ctrl-Rreverse search in zsh?

I recently switched to zsh (finally) and am loving it!
So So far one thing that I am missing is ctrl-RCtrl+R to do incremental history search.
I have the history set up properly

HISTSIZE=10000 SAVEHIST=10000 HISTFILE=~/.zsh_history 

and I used vivi key bindings

bindkey -v 

But ctrl-RCtrl+R does not work. It removes the line above the current line, which is not the behavior it should have in vim either.

Any suggestions?

How to enable ctrl-R in zsh

I recently switched to zsh (finally) and am loving it!
So far one thing that I am missing is ctrl-R to do incremental history search.
I have the history set up properly

HISTSIZE=10000 SAVEHIST=10000 HISTFILE=~/.zsh_history 

and I used vi key bindings

bindkey -v 

But ctrl-R does not work. It removes the line above the current line, which is not the behavior it should have in vim either.

Any suggestions?

How to enable reverse search in zsh?

I recently switched to zsh (finally) and am loving it! So far one thing that I am missing is Ctrl+R to do incremental history search.
I have the history set up properly

HISTSIZE=10000 SAVEHIST=10000 HISTFILE=~/.zsh_history 

and I used vi key bindings

bindkey -v 

But Ctrl+R does not work. It removes the line above the current line, which is not the behavior it should have in vim either.

Any suggestions?

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k
Source Link
Ali
  • 7.3k
  • 7
  • 35
  • 40

How to enable ctrl-R in zsh

I recently switched to zsh (finally) and am loving it!
So far one thing that I am missing is ctrl-R to do incremental history search.
I have the history set up properly

HISTSIZE=10000 SAVEHIST=10000 HISTFILE=~/.zsh_history 

and I used vi key bindings

bindkey -v 

But ctrl-R does not work. It removes the line above the current line, which is not the behavior it should have in vim either.

Any suggestions?