Hacker News new | ask | show | jobs
by dsmithatx 3724 days ago
:wq <filenamegoeshere>
2 comments

The problem uninitiated users have with vim is that it's modal. It's not that they can't type :wq; it's that they don't know where or how to type it or even, conceptually, what the heck is going on when they type that command and it shows up as text.

I'm a long-time vim user, but it's at least worth confronting the criticisms head on (even if this one is a bit tired).

or :x
or ZZ
Or Ctrl+S, Ctrl+W in most GUI environments (gVim, neovim)