Want Vi / Vim on your Bash command line
set -o vi
into your ~/.bash_profile (on Mac) or ~/.bashrc (on Linux).
Now, if you press Esc when you're on the command line, you can go backward/forward word-wise pressingB resp. W or bring-up Vim's VISUAL mode pressing V.
After pressing Esc you can press I to get back to the INSERT mode to modify your command.
Post a Comment