DEV Community

loading...

Discussion on: How to exit Vim

Collapse
flexdinesh profile image
Dinesh Pandiyan

To remember when to use :wq and :q! without getting confused, I always say it out loud.

wq = write (to disk) and quit
q! = quit without writing (to disk)