xxxxxxxxxx
#Press 'Esc' to change from Edit Mode to Command Mode
#Exit
:q
#Force quit without saving
:q!
#Save file and quit
:wq
xxxxxxxxxx
#press "Esc" and than
#if esc doesnt work it means you are on easy mode use "control" + "o"
:wq #to save and quit
:q #to quit
:q! #to force quit
xxxxxxxxxx
To exit Vim and not save changes, use the :q! Command.
Try inserting some text to your test file, pressing esc to exit insert mode,
and using the :q! command to exit without saving changes.