Showing posts with label bash. Show all posts
Showing posts with label bash. Show all posts

Thursday, August 21, 2008

Using VIM Command in BASH Command Line

You can use vim commands in the BASH
command line editing, like
  • moving cursors, using l ;
  • Changing word, using cw
  • etc
For enabling vim mode in BASH, you have to append following
line in your bashrc file ~/.bashrc. Just type the command given
below:

$ echo 'set -o vi' >> ~/.bashrc
$ .
~/.bashrc

Now, you can use vim commands by pressing Esc (Escape)
button.