Want Vi / Vim on your Bash command line

Put
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 to get back to the INSERT mode to modify your command.

Comments

Popular posts from this blog

Tuning ext4 for performance with emphasis on SSD usage

Java 8: Default Interface Implementations, The Diamond Problem, Multiple Inheritance, and Precedence

Tuning ext3 for performance without losing its data integrity potential