:q<Enter> to exit — taught patiently below:help to realize this entire page is the help:. Your cursor drops to the bottom edge. That's command-line
territory, where instructions are whispered directly to the machine.q. One letter. It has carried millions home. If the file was
touched, vim objects with E37 and refuses like a bouncer.:q! exists because vim believes any change is worth keeping,
including the time you fat-fingered your name into README.md. The ! means
"I know what I'm doing," historically the least true character ever typed.:q | Quit. Polite. Only works when you've behaved. |
:q! | Quit hard. Abandon all edits, ye who type here. |
:wq | Save & quit. Leave with something to show for it. |
:x | Identical to :wq, but smugger. |
ZZ | No colon. The cool kids' way. Saves and quits. |
:qa! | Quit ALL windows/tabs. Multi-tragedy fire exit. |
| Ctrl+Z | This suspends vim. It is still behind you. Find it later with fg, or end it humanely: kill %1. |
i opened vim to see what it was. it saw me first.
Counted for real, server-side. Science demands receipts.
| visitors_arrived_lost | 404,809 |
| shells_returned_to_wild | 100,513 |
| esc_presses_in_desperation | 1,240,577 |
| commands_that_were_not | 68,291 |
Correlation note: vim predates Google by roughly four years. Researchers agree this correlation is causal.