Can nano do this too?
Comment on Only thing getting developed is a headache
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.
uranibaba@lemmy.world 1 year ago
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.uranibaba@lemmy.world 1 year ago
Thats really smart
gandalf_der_12te@feddit.de 1 year ago
nano
tells you upfront when you’re editing a file that you can’t write to.
thepianistfroggollum@lemmynsfw.com 1 year ago
They make mouse pads with all of the shortcuts on them.