Comment on Only thing getting developed is a headache
bappity@lemmy.world 8 months agomaking a load of edits then FINDING OUT YOU WEREN’T SUDO AAAARGHHHHHHH
Comment on Only thing getting developed is a headache
bappity@lemmy.world 8 months agomaking a load of edits then FINDING OUT YOU WEREN’T SUDO AAAARGHHHHHHH
icydefiance@lemm.ee 8 months ago
: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.
thepianistfroggollum@lemmynsfw.com 8 months ago
They make mouse pads with all of the shortcuts on them.
uranibaba@lemmy.world 8 months ago
Can nano do this too?
icydefiance@lemm.ee 8 months ago
I don’t think so, but you can always write the file somewhere else and then
sudo mv
it back.uranibaba@lemmy.world 8 months ago
Thats really smart