Jungle George 🌴@lemmy.world to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoOnly thing getting developed is a headachelemmy.worldimagemessage-square12fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageOnly thing getting developed is a headachelemmy.worldJungle George 🌴@lemmy.world to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square12fedilink
minus-squareMasterNerd@lemm.eelinkfedilinkarrow-up0·edit-21 year ago:q Wait I forgot to write out :wq Shit I need sudo privileges :q! 🥲
minus-squareBappity@lemmy.worldlinkfedilinkEnglisharrow-up0·1 year agomaking a load of edits then FINDING OUT YOU WEREN’T SUDO AAAARGHHHHHHH
minus-squareicydefiance@lemm.eelinkfedilinkarrow-up0·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.
minus-squaregandalf_der_12te@feddit.delinkfedilinkarrow-up0·1 year agonano tells you upfront when you’re editing a file that you can’t write to.
:q
Wait I forgot to write out
:wq
Shit I need sudo privileges
:q! 🥲
making a load of edits then FINDING OUT YOU WEREN’T SUDO AAAARGHHHHHHH
: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.