Hacker News new | ask | show | jobs
by bean469 87 days ago
My favorite big-brained way of quitting is ZZ (save and quit) and ZQ (quit without saving). Learned these shortcuts from a video by the legendary Luke Smith [1].

1. https://lukesmith.xyz

1 comments

Wow, this is so much easier than what i’ve been doing:

:call system('kill -9 ' . getpid())

Brilliant. When is the next International Obfuscated Vim Exit contest?
I misread that as "Intentional Obfuscated Vim Exit contest", which led me to wonder what the Unintentional version would bring.
Haha, my version of that is accidentally closing a split when I meant to drop a buffet, or vice versa, losing either my work or my layout.
`:!sudo shutdown`