4 ms·
To exit vim use <ESC> :wq, not just :wq - most of the problem is it getting stuck in insert mode, and not knowing how to escape into normal mode.
by kbaker 12y ago
To exit vim use <ESC> :wq, not just :wq - most of the problem is it getting stuck in insert mode, and not knowing how to escape into normal mode.
- lfowles 12y ago^C also pops up this helpful dialog (after you've already pressed it once to get to normal mode, but the use case is that you're probably mashing it trying to figure out why you can't exit this crazy editor): Type :quit<Enter> to exit Vim
- chriswarbo 12y agoMy first experience of vim was trying to fix my xorg.conf from a tty. I figured out how to save the file, but couldn't exit. In the end I hard-rebooted :$
- zo1 12y agoI could never remember that darned syntax. At some point, though, I came across an alternative to it: shift+z shift+z I.e. You're in command mode, and essentially type two capital Z letters. It saves your document and quits. Anywho, it's stuck with me ever since.