If you use zsh, you can easily edit the command line using vim key bindings.
Just add this to your
~/.zshrc, like so:
Be sure to "source" the shell initialization afterwards with:
Here's another shortcut for accomplishing the same sourcing:
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.