Using the Vi mode in Bash command line
Bash uses the Readline library for handling command-line input. One of the editing modes supported by the Readline library is the vi mode; the other one being emacs mode. To enable vi mode use the following command. $ set -o vi To verify that you are in vi mode, use the command. $ shopt -o …