Jungle George 🌴@lemmy.world to Lemmy Shitpost@lemmy.worldEnglish · un anno faOnly thing getting developed is a headachelemmy.worldimagemessage-square48fedilinkarrow-up11.24Karrow-down117
arrow-up11.23Karrow-down1imageOnly thing getting developed is a headachelemmy.worldJungle George 🌴@lemmy.world to Lemmy Shitpost@lemmy.worldEnglish · un anno famessage-square48fedilink
minus-squareicydefiance@lemm.eelinkfedilinkarrow-up19·un anno fa: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.
minus-squarethepianistfroggollum@lemmynsfw.comlinkfedilinkEnglisharrow-up5·un anno faThey make mouse pads with all of the shortcuts on them.
minus-squaregandalf_der_12te@feddit.delinkfedilinkarrow-up4·un anno fanano tells you upfront when you’re editing a file that you can’t write to.
minus-squareicydefiance@lemm.eelinkfedilinkarrow-up3·un anno faI don’t think so, but you can always write the file somewhere else and then sudo mv it back.
: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.
They make mouse pads with all of the shortcuts on them.
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