Spyke
sh.itjust.works
  • Unplug the computer
  • Shut the house electric safety switch down
  • Cut the electricity pole nearest to the house
  • Bomb the nearest electricity distribution post
40

Pretty sure I can learn my grandma to put a fork in any socket to close Vim, no prior knowledge needed

1
lemmy.world

Does colon-capital-Q-exclamation mark even work? I'm pretty sure it's only lower case q.

27
Kerbreply
discuss.tchncs.de

its supposed to be lowercase,
but imgflip put the entire text in uppercase.

22

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...

5

cat /dev/zero > "/proc/$(pidof vim)/mem" is my favorite dumb way. Clear its memory, wait for the segfault.

18
Julianreply
lemm.ee

...you can write to program memory? Idk how exactly but that feels like a security risk.

2
feddit.cl

It's your process, why shouldn't you be able to write to it? Vi is certainly doing it...

6

dumb way.

Get fancy, add progress bar: pv < /dev/zero > "/proc/$(pidof vim)/mem"

1
lemmy.world

ctrl-S instinctively from windows then panic when the terminal pauses and isnt accepting input so you restart the computer.

5
Kerbreply
discuss.tchncs.de

holy crap,
that's exactly what i wanted the last command to do.

i just didn't know you can target jobs,
and settled with quitting the shell instead

4

try...

:x

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

1

I call my local energy provider and simply cancel my contract with immediate effect.

1

You reached the end