Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unset vim mode in shell

Tags:

shell

vim

I've set the keymaps of shell using set -o vi but how do I exit vim mode in shell? Executing :q or anything doesn't seem to work. unset -o vi returns bad option -o


1 Answers

You cannot unset a keymap, you can only change it:

set -o emacs

Because emacs is the default keymap.

like image 153
phd Avatar answered Feb 09 '26 00:02

phd