This question comes up a LOT with users experimenting with different editors.
To exit vim, hit ESC to get out of insert mode, then type the following, including the colon
Quit, saving changes:
Quit, NOT saving changes:
To exit vim, hit ESC to get out of insert mode, then type the following, including the colon
Quit, saving changes:
Code:
:wq<ENTER>
Quit, NOT saving changes:
Code:
:q!<ENTER>