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

Rust’s impact on the industry

Brandan Eich on WebAssembly, Web Workers, and Decorators