Bash in vi editing mode

February 20, 2006

I’m coming from ksh shell, so I’m most productive using the Vi editing mode instead of Emacs.

It’s really simple to set it on user side settings:

Set the following in your ~/.inputrc:

set editing-mode vi
set keymap vi

and this in your ~/.bashrc:

set -o vi

You can also do the same as system default adding the same lines on /etc/inputrc and /etc/bashrc

Now you can edit your command line with Vi editing command:

Comments »

The URI to TrackBack this entry is: http://antenore.blogsome.com/2006/02/20/bash-in-vi-editing-mode/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>