Comment on Only thing getting developed is a headache
MasterNerd@lemm.ee 1 year ago:q Wait I forgot to write out wq Shit I need sudo privileges q! 🥲
Comment on Only thing getting developed is a headache
MasterNerd@lemm.ee 1 year ago:q Wait I forgot to write out wq Shit I need sudo privileges q! 🥲
bappity@lemmy.world 1 year ago
making a load of edits then FINDING OUT YOU WEREN’T SUDO AAAARGHHHHHHH
icydefiance@lemm.ee 1 year 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 1 year ago
They make mouse pads with all of the shortcuts on them.
uranibaba@lemmy.world 1 year ago
Can nano do this too?
icydefiance@lemm.ee 1 year ago
I don’t think so, but you can always write the file somewhere else and then
sudo mv
it back.gandalf_der_12te@feddit.de 1 year ago
nano
tells you upfront when you’re editing a file that you can’t write to.