How to get history to work in vim mode zsh

When enabling vim mode in zsh it will make pressing ctrl+r not show terminal history anymore. It gets rebound to terminal refresh which is not necessary. To renable ctrl+r append this to your .zshrc: bindkey "^R" history-incremental-search-backward Now close the terminal and reopen it (or just type . .zshrc) and you are done.

August 12, 2022

How to enable vim mode in zsh

Vim mode let’s you use vim keys. You start in insert mode and esc let’s you go into normal mode. To enable vim mode append the following snippet to your .zshrc in your home directory. # Enable vim mode. bindkey -v Now close the terminal and reopen it (or just type . .zshrc) and you are done.

August 12, 2022