How to Exit Vim
311–320 of 409 posts
Re: How to Exit Vim
#312In 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…
I think emacs is the winner here. It's true beauty is that most users have remapped everything so all you can do is bruteforce your way to the exit. And where do you get exiting an OS? We don't know... maybe another OS...
Re: How to Exit Vim
#313Earlier quoted context omitted.
That's why my scratch buffer is by default NOT in elisp mode
You can evaluate an elisp expression anywhere in any mode.
Re: How to Exit Vim
#314In 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?
Re: How to Exit Vim
#315First step to quit vim is to accept that you are vim user. Here are some tips: Try to limit yourself to one vim session per day, then one session per week, and so on. Try to replace some Vim sessions with Emacs. Buy notebook with keyboard without Esc key. Install an OS without Vim. Use mouse.
Noooooo! Not that! Please not that!
Re: How to Exit Vim
#316Re: How to Exit Vim
#317 Don't run this, it could break your computer.
:!echo b | sudo tee -a /proc/sysrq-trigger
Why would that break my computer?Doesn't that just force a reboot without unmounting disks, or about the same thing that would happen if you pull the power cord (but probably safer, since anything in a hard drive write cache (or in the middle of being written to an SSD) will still be written)
Re: How to Exit Vim
#318Re: How to Exit Vim
#319In 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…
> A similar optimisation was with tmux to bind the prefix to C-z. It's in a handy location next to ctrl and I very rarely use suspend anyway. I think gnu screen has the right idea here: ctrl-a. And you say z is close to control - does that mean you use emacs without shift lock as control?! (I mean sure, still closer than b...).
Re: How to Exit Vim
#320I'm curious about this one: Don't run this, it could break your computer. :!echo b | sudo tee -a /proc/sysrq-trigger Why would that break my computer? Doesn't that just force a reboot without unmounting disks, or about the same thing that would happen if you pull the power cord (but probably safer, since anything in a hard drive write cache (or in the middle of being written to an SSD) will still be written)