I wanted to try vi mode in bash but now I would like to change it back to normal.
How can I unset
-o vi ?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
That depends on what you define "normal". If that's turning off line editing, the documented way to unset
-o vi is to set
$ set -o vi $ set -o|egrep -w "(vi|emacs)" emacs off vi on $ set +o vi $ set -o|egrep -w "(vi|emacs)" emacs off vi off
Chris has already answered if your normal mode is emacs.