Jungle George 🌴@lemmy.world to Lemmy Shitpost@lemmy.worldEnglish · 10 months agoOnly 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 · 10 months agomessage-square48fedilink
minus-squareBappity@lemmy.worldlinkfedilinkEnglisharrow-up119arrow-down2·10 months agowhat programming is REALLY like:
minus-squareMasterNerd@lemm.eelinkfedilinkarrow-up42arrow-down1·edit-210 months ago:q Wait I forgot to write out :wq Shit I need sudo privileges :q! 🥲
minus-squareBappity@lemmy.worldlinkfedilinkEnglisharrow-up18·10 months agomaking a load of edits then FINDING OUT YOU WEREN’T SUDO AAAARGHHHHHHH
minus-squareicydefiance@lemm.eelinkfedilinkarrow-up19·10 months 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·10 months agoThey make mouse pads with all of the shortcuts on them.
minus-squaregandalf_der_12te@feddit.delinkfedilinkarrow-up4·10 months agonano tells you upfront when you’re editing a file that you can’t write to.
minus-squareicydefiance@lemm.eelinkfedilinkarrow-up3·10 months 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·10 months 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·10 months agoBam! Got it one! Well done.
minus-squareDocMcStuffin@lemmy.worldlinkfedilinkarrow-up11·10 months agoYou never have to exit vim when you make it your only editor.
what programming is REALLY like:
: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
That’s why I use nano.
You never have to exit vim when you make it your only editor.
Removed by mod
deleted by creator