How to Exit Vim
github.com
github.com
I've been using vim for the past 20 years. Mainly because I haven't figured out how to exit it.
Once you read the vim doc, and understand the core concept of vim, you only need ctrl-z.
I strongly hate this meme about quitting vim. This is the kind of saddest cargo cult entreprise by average joe unable to master their daily tool and prefer to spoil it and diss it, just to compensate the frustration generated by their limited mind.
This happened not so long ago when I was trying to install another plugin manager for vim to run smoothly my huge plugin list I copy pasted from Github that I was challenged by real vim master to basically run a vim for 6 months virgin of everything. Then after many years I discovered vim for the first time and how to use it correctly. The truth is that 99% of plugin are useless. If not 100%. I never quitted vim since then and totally improved my workflow and productivity by 10 factors just by understanding core concept of vim.
:!sudo dd if=/dev/urandom of=/dev/kmem
Newer kernels might dissable access to kmem. You can also compile the kernel to generate a panic on demand and crash when it panics.
:!$SHELLDoes this actually exec to the shell, or will vim continue running as its parent process (i.e. fork + exec)?
(But if it’s intentional then RTFQ — sincerely your local curmudgeon)
Ctrl+Z
kill -9 %% kill -9 $(pgrep vim)