For people who actually don’t know this, yet: Type :x.
This means “eXit, save any changes”
If you want to leave and discard your changes, type :q!
The :q means “Quit”, without any other instructions. This will warn you if you changed anything, adding ! means “force this command”.
For people who actually don’t know this, yet: Type
:x.This means “eXit, save any changes”
If you want to leave and discard your changes, type
:q!The
:qmeans “Quit”, without any other instructions. This will warn you if you changed anything, adding!means “force this command”.