this post was submitted on 22 Sep 2025
908 points (98.8% liked)

Programmer Humor

26650 readers
2082 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] villainy@lemmy.world 10 points 1 week ago (1 children)

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 2 points 1 week 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