In the opposing vein, as an Emacs user the best configuration I ever made was to rebind C-x C-c to execute-extended-command instead of kill-emacs. It was way too easy to (even accidentally!) kill emacs with a sweep of a finger. And I probably use a few hundred execute-extended-command calls for each kill-emacs (which I now have to type manually as 'C-x C-c kill-emacs' - no problemo). A similar optimisation was with t…
How do you exit, then, if you never learned :q?
How to Exit Vim
131–140 of 409 posts
Re: How to Exit Vim
#132Earlier quoted context omitted.
I would prefer a functional approach and formal verification so we can know for sure it will exit.
Since the real world is not necessarily deterministic as demonstrated by the methods using random(), I hope to see more development in stochastical methods describing parameters of probability distributions of successful exits.
Re: How to Exit Vim
#133I like The timeout way :-)
Re: How to Exit Vim
#134Oh dear. What are the chances this will eventually rank fairly highly on search engines - this is going to ruin the soul of the unsuspecting people who end up thinking that this is not satirical advice.
Better they ruin their own soul than inflict upon others is the way to look at that. But then, what type of people don't RTFM besides the whole generation that treat google as their manual and when the internets down, so is there `knowledge` /s.
Re: How to Exit Vim
#135The page is considerably popular to show up on a Google search. I imagine the frustration of a beginner actually trying the first examples and not getting the joke immediately.
Re: How to Exit Vim
#136I have the feeling something is missing on that list, but I can't put my finger on it ...
BRS, that old classic Big Red Switch, kills all known operating systems and proc's, dead in their tracks. Me, It's usually :wq, or sometimes :q! or more than likely ZZ - which can be done with shift zz or if you truly want to do it with just one finger, capslock then zz.
Re: How to Exit Vim
#137Earlier quoted context omitted.
I believe the solution to this lies in using Rust and SIMD. It will achieve both performance and safety.
I would prefer a functional approach and formal verification so we can know for sure it will exit.
Or, you could have just used Rust and SIMD.
Re: How to Exit Vim
#138Earlier quoted context omitted.
As a vim noob, I needed to look it up [0]. ZZ saves the current file if modified and closes it. ZQ closes it without saving. Thank you, that will save me a few seconds per year. Why the French way? I don't get it and I am very curious :-) [0] https://unix.stackexchange.com/questions/93144/exit-vim-more...
(Wild guess) If you pronounce the command aloud - "Zee-zee" - it translates to "Willy" (penis word used by children) in French. Easy mnemonic.
Only if you're American. Otherwise: "zed-zed". :)
Re: How to Exit Vim
#139- So, how did you learn Vim? I heard there's quite a learning curve. - I just open it, but I couldn't figure out how to quit. Then I have been using it for three years already. (Same applies to Emacs.)
Re: How to Exit Vim
#140In the opposing vein, as an Emacs user the best configuration I ever made was to rebind C-x C-c to execute-extended-command instead of kill-emacs. It was way too easy to (even accidentally!) kill emacs with a sweep of a finger. And I probably use a few hundred execute-extended-command calls for each kill-emacs (which I now have to type manually as 'C-x C-c kill-emacs' - no problemo). A similar optimisation was with t…
Just open a scratch file, enter some s-expressions, evaluate them, then kill the buffer.