DEV Community

Discussion on: VIM - Beginners Guide

Collapse
 
eljayadobe profile image
Eljay-Adobe

I've been using Vim for over 20 years.

I haven't figured out how to quit yet.

Collapse
 
vishwasluhana profile image
Vishwa Mittar

Hey, I have explained it in article, but here’s the quick solution:
When you’re in normal mode, just press,

“:w” (save file)
“:q” (quit file. but the file must be saved first)
“:wq” (save and quit)
“:q!” (quit without saving)

I hope it will help you. Thanks.

Collapse
 
siddharthshyniben profile image
Siddharth

You missed ZZ, which is far less keystrokes and which tolerates everything