Jungle George 🌴 to Lemmy [email protected]English • 1 year agoOnly thing getting developed is a headachelemmy.worldmessage-square48fedilinkarrow-up11.22K
arrow-up11.2KimageOnly thing getting developed is a headachelemmy.worldJungle George 🌴 to Lemmy [email protected]English • 1 year agomessage-square48fedilink
minus-square@[email protected]linkfedilink41•edit-21 year ago:q Wait I forgot to write out :wq Shit I need sudo privileges :q! 🥲
minus-squareBappitylinkfedilinkEnglish18•1 year agomaking a load of edits then FINDING OUT YOU WEREN’T SUDO AAAARGHHHHHHH
minus-square@[email protected]linkfedilink19•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-square@thepianistfroggollumlinkEnglish5•1 year agoThey make mouse pads with all of the shortcuts on them.
minus-square@[email protected]linkfedilink4•1 year agonano tells you upfront when you’re editing a file that you can’t write to.
minus-square@[email protected]linkfedilink3•1 year agoI don’t think so, but you can always write the file somewhere else and then sudo mv it back.
minus-square@[email protected]linkfedilink2•1 year agoWhy oh why doesn’t it put a small banner like nano on opening, you must wait until saving.
: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?
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
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