Last Updated: February 25, 2016
·
2.245K
· Chip Castle

Navigate the zsh command line using vim key bindings

If you use zsh, you can easily edit the command line using vim key bindings.

Just add this to your ~/.zshrc, like so:

bindkey -v

Be sure to "source" the shell initialization afterwards with:

source ~/.zshrc

Here's another shortcut for accomplishing the same sourcing:

. ~/.zshrc

Now you can navigate the command line using vim key bindings. This has been a huge time-saver for me, so give it a try.

For more UNIX tips, please check out
Learning the UNIX Command Line.

Enjoy,
Chip