You're viewing a single thread.
Bappity @lemmy.world
what programming is REALLY like:
118 2 ReplyMasterNerd @lemm.ee
:q
Wait I forgot to write out
:wq
Shit I need sudo privileges
:q! 🥲
42 1 ReplyBappity @lemmy.world
making a load of edits then FINDING OUT YOU WEREN'T SUDO AAAARGHHHHHHH
18 0 Replyicydefiance @lemm.ee :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 Replythepianistfroggollum @lemmynsfw.com They make mouse pads with all of the shortcuts on them.
5 0 Replyuranibaba @lemmy.world Can nano do this too?
2 0 Replygandalf_der_12te @feddit.de
nano
tells you upfront when you're editing a file that you can't write to.4 0 Replyicydefiance @lemm.ee I don't think so, but you can always write the file somewhere else and then
sudo mv
it back.3 0 Replyuranibaba @lemmy.world Thats really smart
2 0 Reply
_stevo_ @lemmy.ml Why oh why doesn't it put a small banner like nano on opening, you must wait until saving.
2 0 Reply
PreviouslyAmused @lemmy.ml Bam! Got it one!
Well done.
3 1 ReplyMasterNerd @lemm.ee
Sssh
2 0 Reply
zerotime @feddit.de That's why I use nano.
12 0 ReplyDocMcStuffin @lemmy.world
You never have to exit vim when you make it your only editor.
11 0 Reply