You're viewing a single thread.
All comments
40
comments
what programming is REALLY like:
116 0 Reply:q
Wait I forgot to write out
:wq
Shit I need sudo privileges
:q! 🥲
41 0 Replymaking a load of edits then FINDING OUT YOU WEREN'T SUDO AAAARGHHHHHHH
17 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.
18 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 0 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 Reply
40
comments
Scroll to top