| zedkaido.com > writing | RSS
#vim #shell
2025-12-18
Written by Zed Kaido

How to :quit VIM

If you thought quitting vim was hard, I challenge you to exit its predecessor, the built-in ed editor.

SPOILER ALERT: you don't. VIM is your home now.
Even if you uninstall it, it will still somehow be running.


If you really don't know how to exit VIM, I am honored to give you the rite of passage :: simply smash |ESC| 42 times, followed by the following sequence of characters: :q! and hit |ENTER| (that should do it).

Just hope to God that you didn't hit the letter q beforehand, cause if you did... I will be frank, not even Jesus can save you. You're stuck in hell.

NAH, RELAX! just kidding with ya, if anything just hit CAPITAL letters |ZQ| in sequence and you will be out and free (we hold nobody hostage).


There are multiple CMDS you can use in NORMAL MODE (AKA. :COMMAND MODE).
When in -- INSERT -- MODE you can get back to NORMAL MODE by mashing either:

|ESC| ; |CTRL-[| ; |CTRL-C| OR |CTRL-O|

If these didn't work, hit |q| to possibly exit macro REC mode, and try again.


NORMAL MODE CMDS and KEYMAPS to :quit VIM


whatever is inside [...] is optional.



There is SO much that I haven't covered. Consult the LORDS :help BOok for more.


FUN FACT: Who needs an EDITOR when you have MEOW!?

$ cat > newfile.txt
Cat listens for stdin, then redirects it to stdout.
Likewise, you can append to newfile.txt with >>
And, on the last line use |C-D|C-D| to signal END.

$ cat newfile.txt
Cat listens for stdin, then redirects it to stdout.
Likewise, you can append to newfile.txt with >>
And, on the last line use |C-D|C-D| to signal END.
OPUS HUMANUM