How to exit from "vim -y" in console?

I use the gVim Easy, and it works for me to add the set im! in the .gvimrc.

gVim Easy v.s. gVim


With -y (easy mode), Vim defaults to insert mode, and you cannot permanently exit to normal mode via <Esc>. However, like in default Vim, you can issue a single normal mode command via <C-O>. So to exit, type <C-O>:q!<CR>.

Alternatively, there's a special <C-L> mapping for easy mode that returns to normal mode.


-y option makes vim start in easy mode, you can type CTRL-L to return to normal mode and then type :q! to exit.

Tags:

Linux

Vim