1143
Programmers then and now
(lemmy.ml)
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.
:q!
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.
Cumbersome: save to some temporary file I guess.
:wq
will save the current buffer and quit.