Friday, August 18, 2006

Vi editing mode on the command line

To set the default command line editing mode to vi (instead of emacs), add the following to ~/.inputrc.
set editing-mode vi
set keymap vi-insert
Or add the following to ~/.bashrc.
set -o vi