ways to close vim - tchncs

  • Unplug the computer
  • Shut the house electric safety switch down
  • Cut the electricity pole nearest to the house
  • Bomb the nearest electricity distribution post
nuke it from orbit. it’s the only way to be sure.
“Simple and easily explained.”
Pretty sure I can learn my grandma to put a fork in any socket to close Vim, no prior knowledge needed
  • Wait for a sufficiently powerful coronal mass ejection to collapse the global electric grid
One panel below: shut down the computer
you can close vim?
“this is my life now”
Does colon-capital-Q-exclamation mark even work? I’m pretty sure it’s only lower case q.
its supposed to be lowercase,
but imgflip put the entire text in uppercase.
Honestly, the joke landed anyway. I’ve done numerous uppercase-Q trying to quit, because I didn’t let go of Shift fast enough after typing the colon…
Was going to say this, myself.
Amateur. Just unplug the power cable.
cat /dev/zero > “/proc/$(pidof vim)/mem” is my favorite dumb way. Clear its memory, wait for the segfault.
…you can write to program memory? Idk how exactly but that feels like a security risk.
It’s your process, why shouldn’t you be able to write to it? Vi is certainly doing it…
You do need to be root to do it to arbitrary processes.

dumb way.

Get fancy, add progress bar:

pv < /dev/zero > "/proc/$(pidof vim)/mem"
ctrl-S instinctively from windows then panic when the terminal pauses and isnt accepting input so you restart the computer.
The Art of Exiting Vim

YouTube
There’s a whole repo of possible methods: github.com/hakluke/how-to-exit-vim
GitHub - hakluke/how-to-exit-vim: Below are some simple methods for exiting vim.

Below are some simple methods for exiting vim. Contribute to hakluke/how-to-exit-vim development by creating an account on GitHub.

GitHub

try…

:x

it will save your changes and exit vim If there are no changes to the then it just exits vim.

Open vim.

Accept vim is the OS now.

:!echo “reisub” | sudo tee -a /proc/sysrq-trigger
  • Ctrl + T + alt
  • sudo reboot
  • ZZ will save file though, the others won’t. You meant ZQ.
    Does unplugging the machine not work?
    I call my local energy provider and simply cancel my contract with immediate effect.