Jungle George 🌴@lemmy.world to Lemmy Shitpost@lemmy.worldEnglish · 2 years agoOnly thing getting developed is a headachelemmy.worldimagemessage-square30fedilinkarrow-up1868arrow-down112
arrow-up1856arrow-down1imageOnly thing getting developed is a headachelemmy.worldJungle George 🌴@lemmy.world to Lemmy Shitpost@lemmy.worldEnglish · 2 years agomessage-square30fedilink
minus-squareMasterNerd@lemm.eelinkfedilinkarrow-up32arrow-down1·edit-22 years ago:q Wait I forgot to write out :wq Shit I need sudo privileges :q! 🥲
minus-squareBappity@lemmy.worldlinkfedilinkEnglisharrow-up11·2 years agomaking a load of edits then FINDING OUT YOU WEREN’T SUDO AAAARGHHHHHHH
minus-squareicydefiance@lemm.eelinkfedilinkarrow-up14·2 years 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-squarethepianistfroggollum@lemmynsfw.comlinkfedilinkEnglisharrow-up5·2 years agoThey make mouse pads with all of the shortcuts on them.
minus-squareicydefiance@lemm.eelinkfedilinkarrow-up3·2 years agoI don’t think so, but you can always write the file somewhere else and then sudo mv it back.
minus-square_stevo_@lemmy.mllinkfedilinkarrow-up2·2 years agoWhy oh why doesn’t it put a small banner like nano on opening, you must wait until saving.
minus-squarePreviouslyAmused@lemmy.mllinkfedilinkarrow-up3arrow-down1·2 years agoBam! Got it one! Well done.
: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.
They make mouse pads with all of the shortcuts on them.
Can nano do this too?
I don’t think so, but you can always write the file somewhere else and then
sudo mv
it back.Thats really smart
Why oh why doesn’t it put a small banner like nano on opening, you must wait until saving.
Bam! Got it one!
Well done.
Sssh