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

Programmer Humor

23119 readers
2209 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
[–] Valmond@lemmy.world 2 points 1 day ago (1 children)
[–] UnRelatedBurner@sh.itjust.works 2 points 1 day ago (1 children)

it says I don't have permission

[–] Valmond@lemmy.world 2 points 22 hours ago (1 children)
[–] UnRelatedBurner@sh.itjust.works 1 points 20 hours 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.

[–] frezik@midwest.social 1 points 2 minutes ago

:wq will save the current buffer and quit.

[–] Valmond@lemmy.world 2 points 16 hours ago

Cumbersome: save to some temporary file I guess.