1143
you are viewing a single comment's thread
view the rest of the comments
[-] Valmond@lemmy.world 3 points 5 days ago
[-] UnRelatedBurner@sh.itjust.works 1 points 5 days ago

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.

[-] Valmond@lemmy.world 3 points 5 days ago

Cumbersome: save to some temporary file I guess.

[-] frezik@midwest.social 1 points 4 days ago

:wq will save the current buffer and quit.

this post was submitted on 07 May 2025
1143 points (96.7% liked)

Programmer Humor

23230 readers
1376 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