Multiple ways to exit Vim:
Get a new PC.
Burn your PC at stake.
You don't.
Reboot your computer
Contemplate your career choice and cry yourself to sleep. It won't exit you out of Vim but it'll lessen the pain
press ESC to go into command mode then
exit without saving
:q
exit without saving if you made changes
:q!
for saving and quitting
:wq
hope that helps
#Press 'Esc' to change from Edit Mode to Command Mode
#Exit
:q
#Force quit without saving
:q!
#Save file and quit
:wq
You don't exit vim, vim exits you
:qa Close all files
:qa! Close all files, abandon changes
:w Save
:wq / :x Save and close file
:q Close file
:q! Close file, abandon changes
ZZ Save and quit
ZQ Quit without checking changes
ctrl + o // cmd + o
then type :wq
Difficult question, LOL
#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
# ESC to start command prompt, then
:q! # exit vi without saving
:wq! # exit vi with saving (! means exiting even if file is read only)
:q to quit (short for :quit)
:q! to quit without saving (short for :quit!)
:wq to write and quit
:wq! to write and quit even if file has only read permission (if file does not have write permission: force write)
:x to write and quit (similar to :wq, but only write if there are changes)
:exit to write and exit (same as :x)
:qa to quit all (short for :quitall)
:cq to quit without saving and make Vim return non-zero error (i.e. exit with error)
You might have to ehhhhhhhhhh.... get a new compiter if it keeps opening :) sorry