Saving and Exiting

Shortcut Description
:w Save
:q Close file
:wq * * :x *
:wqa Save and quit all files
:q! * * ZQ
:qa Close all files
:qa! Force quit all files
:w now.txt Write to now.txt
:sav new.txt Save and edit new.txt
:w !sudo tee % Write to readonly file
Comments