Only thing getting developed is a headacheJungle George 🌴@lemmy.world to Lemmy Shitpost@lemmy.world – 1213 points – 9 months ago46Post a CommentPreviewYou are viewing a single commentView all commentsShow the parent comment:w !sudo tee % Of course that's impossible to remember, but you can just google "vim sudo save" or something like that to find it.Can nano do this too?nano tells you upfront when you're editing a file that you can't write to.I don't think so, but you can always write the file somewhere else and then sudo mv it back.Thats really smart
:w !sudo tee % Of course that's impossible to remember, but you can just google "vim sudo save" or something like that to find it.Can nano do this too?nano tells you upfront when you're editing a file that you can't write to.I don't think so, but you can always write the file somewhere else and then sudo mv it back.Thats really smart
Can nano do this too?nano tells you upfront when you're editing a file that you can't write to.I don't think so, but you can always write the file somewhere else and then sudo mv it back.Thats really smart
I don't think so, but you can always write the file somewhere else and then sudo mv it back.Thats really smart
:w !sudo tee %
Of course that's impossible to remember, but you can just google "vim sudo save" or something like that to find it.
Can nano do this too?
nano
tells you upfront when you're editing a file that you can't write to.I don't think so, but you can always write the file somewhere else and then
sudo mv
it back.Thats really smart