How to Exit Vim

You opened the editor. You got stuck.

The Quick Escape

Press Esc, type :q, then press Enter.

Esc
:q
Enter

If nothing happens, you're not failing. You just have… typical problems.

When Vim Says "No"

:q! — quit without saving (the "I regret nothing" route)

:wq — save and quit (the "fine, I'll be responsible" route)

:x — save if needed, then quit (the "I'm efficient" route)


That's the whole trick. Really.

Unless you came here for the fun. People do that.