@[email protected] to Programmer [email protected]English • 1 year agoVery clever...lemmy.mlimagemessage-square300fedilinkarrow-up12.34Karrow-down119file-text
arrow-up12.32Karrow-down1imageVery clever...lemmy.ml@[email protected] to Programmer [email protected]English • 1 year agomessage-square300fedilinkfile-text
minus-square@[email protected]linkfedilink86•1 year agoIf anyone needs the command: :q! If you want the computer to ask if you’re sure: :q If you want to save: :wq
minus-square@[email protected]linkfedilink67•1 year agoYou’re nullifying that safety measure by doing this you know
minus-square@[email protected]linkfedilinkEnglish14•1 year agoNah, the safety measure is designed to make sure they can quit vim. Now they can quit vim.
minus-square@[email protected]linkfedilink11•1 year agoI can quit vim any time I want. I just don’t want to.
minus-square@[email protected]linkfedilinkEnglish22•1 year ago:wq will write even if you didn’t change anything; :x won’t. (similar to :w vs :up)
If anyone needs the command: :q!
If you want the computer to ask if you’re sure: :q
If you want to save: :wq
You’re nullifying that safety measure by doing this you know
Some people just want to see the world burning
Nah, the safety measure is designed to make sure they can quit vim. Now they can quit vim.
I can quit vim any time I want. I just don’t want to.
It’s the opposite of nerd sniping.
Or :x
:wq
will write even if you didn’t change anything;:x
won’t. (similar to:w
vs:up
)ZQ
and ZZ for save & quit
:cq
because why not :)I prefer
ZZ
if I want to quit and save