this post was submitted on 07 May 2025
1132 points (96.9% liked)

Programmer Humor

23132 readers
1064 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
[–] [email protected] 1 points 1 day ago (2 children)

I wanted to follow up with the other error, where you didn't open a file, so it doesn't know where to write, but :q! always works :/

Can I somehow not discard my changes tho? I always open a 2nd terminal in root only for vim when editing system files so I don't have to re-do the whole config but this time in sudo.

[–] [email protected] 1 points 16 hours ago

:wq will save the current buffer and quit.

[–] [email protected] 3 points 1 day ago

Cumbersome: save to some temporary file I guess.