• villainy@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    18 hours ago

    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!”).

    • ryper@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      13 hours ago

      Since people don’t seem to realize that vim has a help system: You can get to this information with :help quit or :help exit