- Press Escape, this puts vim in "normal mode".
- write :q! to quit without saving.
- write :wq to quit while saving the file.
That's it. Vim is pretty cool and fast once you learn how to use it.
Check this if you want to learn the basics of Vim in 5 minutes:
Vim in 5 minutes
Follow me on twitter for more.
I'm building a newsletter with tools, resources and news about frontend development here if you're interested in that 🙂