@[email protected] to Programmer [email protected]English • 8 months agoVery clever...lemmy.mlimagemessage-square295fedilinkarrow-up12.32Karrow-down120file-text
arrow-up12.3Karrow-down1imageVery clever...lemmy.ml@[email protected] to Programmer [email protected]English • 8 months agomessage-square295fedilinkfile-text
minus-square@[email protected]linkfedilink85•8 months 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•8 months agoYou’re nullifying that safety measure by doing this you know
minus-square@[email protected]linkfedilinkEnglish14•8 months agoNah, the safety measure is designed to make sure they can quit vim. Now they can quit vim.
minus-square@[email protected]linkfedilink11•8 months agoI can quit vim any time I want. I just don’t want to.
minus-square@PoolloverNathanlinkEnglish22•8 months 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
It’s the opposite of nerd sniping.
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.
:wq
will write even if you didn’t change anything;:x
won’t. (similar to:w
vs:up
)Or :x
I prefer
ZZ
if I want to quit and saveZQ
and ZZ for save & quit
:cq
because why not :)