Modified from original zsh's vi mode with history-substring-search compatibility.
-
Download the script or clone this repository in oh-my-zsh plugins directory:
git clone git://github.com/houjunchen/zsh-vim-mode.git $ZSH_CUSTOM/plugins/zsh-vim-mode -
Activate the plugin in
~/.zshrc(after history-substring-search):plugins=([plugins...] zsh-vim-mode)
-
Source
~/.zshrcto take changes into account:source ~/.zshrc
Refer to vi mode.
Refer to zshzle(1).