Only thing getting developed is a headache
Only thing getting developed is a headache
Only thing getting developed is a headache
You're viewing a single thread.
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.