I always feel that how to exit and quit vim should be at the very top of the first page. With a quick explanation for the various ways to do it.
ZQ - in normal mode, quits (notice no colon and capital)
ZZ - in normal mode, saves only if file was modified and quits
:x - same as ZZ
:w - write the file
:wq - writes the file regardless of changes and quits
:q - quit, if no changes
:q! - quit, regardless of changes
:w !sudo tee % - For when you need to save a file you don't have permission to and you forgot to start vim with sudo.
Edit: Also note the difference between 'ZZ' and ':wq'. While 'ZZ' doesn't make any changes to the file system if the file hasn't been modified, ':wq' will at minimum change the date of last modification to the time that save was ran even if the file was not modified.