A common quandary for those just getting started with the Vim text editor is how to exit out of it once started.
To exit Vim:
- If you are in edit mode (meaning Vim is allowing you to type words), first press the esc key.
- Then enter
:wq+ return to save and exit.
To exit without saving, you can run
:q! + return