Setting vi Mode for Command Line Editing



 

 


The default mode for command line editing in the BASH shell is EMACS mode. To change to vi mode use the following command. To make the change permanent add the command to ~/.bashrc.

set -o vi

Note that -o is lowercase letter “o”.