I like :x which effectively does an :wq if there have been changes but is one character less.
How to Exit Vim
121–130 of 409 posts
Re: How to Exit Vim
#122Harsh? Perhaps. But I can’t thank that lecturer enough for that rule. He converted a mostly IDE-wielding class into one that actually appreciated Vim, and most of us still use it or its key bindings.
Edit: this was in 2018, when VS Code, etc. were already popular.
Re: How to Exit Vim
#123Re: How to Exit Vim
#124Earlier 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.
Re: How to Exit Vim
#125Re: How to Exit Vim
#126This one is the shortest way in the list : The test driven development way :echom test_null_list() And it works. Just checked.
Re: How to Exit Vim
#127In 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…
Re: How to Exit Vim
#128The question is not "How" but "Why" you would want to ever do that in the first place;-) Many years ago I knew a university professor and students said about him he might leave uni occasionally but he sure never leaves Emacs. Some live in Emacs, some live in Vim.
(As I finished writing this, and was about to type ^[fG to submit this reply, I couldn't help but smile a bit)
Re: How to Exit Vim
#129Re: How to Exit Vim
#130In 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…