You're viewing a single thread.
what programming is REALLY like:
119 2 Reply:q
Wait I forgot to write out
:wq
Shit I need sudo privileges
:q! 🥲
42 1 Replymaking a load of edits then FINDING OUT YOU WEREN'T SUDO AAAARGHHHHHHH
18 0 Reply: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.
19 0 ReplyThey make mouse pads with all of the shortcuts on them.
5 0 ReplyCan nano do this too?
2 0 Replynano
tells you upfront when you're editing a file that you can't write to.4 0 ReplyI don't think so, but you can always write the file somewhere else and then
sudo mv
it back.3 0 ReplyThats really smart
2 0 Reply
Why oh why doesn't it put a small banner like nano on opening, you must wait until saving.
2 0 Reply
Bam! Got it one!
Well done.
3 1 ReplySssh
2 0 Reply
That's why I use nano.
12 0 ReplyYou never have to exit vim when you make it your only editor.
11 0 ReplyLaughs in kdevelop
2 0 ReplyPermanently Deleted
1 0 Reply