you are viewing a single comment's thread
view the rest of the comments
[–] 10 points 1 year ago (1 child)

Or 3. Hold shift, press ZZ to save and quit ZQ to quit without saving.

5. Writing and quitting

  					ZZ

ZZ Write current file, if modified, and close the current window (same as ":x"). If there are several windows for the current file, only the current window is closed.

  					ZQ

ZQ Quit without checking for changes (same as ":q!").

  • source
  • parent
  • hideshow 1 child comment