206
ways to close vim (discuss.tchncs.de)
submitted 1 year ago by [email protected] to c/[email protected]
top 42 comments
sorted by: hot top controversial new old
[-] [email protected] 39 points 1 year ago
  • Unplug the computer
  • Shut the house electric safety switch down
  • Cut the electricity pole nearest to the house
  • Bomb the nearest electricity distribution post
[-] [email protected] 16 points 1 year ago

nuke it from orbit. it's the only way to be sure.

[-] [email protected] 7 points 1 year ago
  • Wait for a sufficiently powerful coronal mass ejection to collapse the global electric grid
[-] [email protected] 1 points 1 year ago

"Simple and easily explained."

[-] [email protected] 1 points 1 year ago

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

[-] [email protected] 24 points 1 year ago
[-] [email protected] 6 points 1 year ago

"this is my life now"

[-] [email protected] 24 points 1 year ago

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

[-] [email protected] 22 points 1 year ago

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

[-] [email protected] 5 points 1 year ago

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

[-] [email protected] 1 points 1 year ago

Was going to say this, myself.

[-] [email protected] 18 points 1 year ago

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

[-] [email protected] 2 points 1 year ago

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

[-] [email protected] 6 points 1 year ago

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

[-] [email protected] 5 points 1 year ago

You do need to be root to do it to arbitrary processes.

[-] [email protected] 1 points 1 year ago* (last edited 1 year ago)

dumb way.

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

[-] [email protected] 11 points 1 year ago

Amateur. Just unplug the power cable.

[-] [email protected] 6 points 1 year ago

Open vim.

Accept vim is the OS now.

[-] [email protected] 5 points 1 year ago

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

[-] [email protected] 0 points 1 year ago

Fuck, are you me?

[-] [email protected] 5 points 1 year ago
[-] [email protected] 4 points 1 year ago

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

[-] [email protected] 2 points 1 year ago

yeah it's my favorite way to exit Vim. I post it every time I get a chance lol https://gekinzuku.com/comment/202790

[-] [email protected] 4 points 1 year ago

One panel below: shut down the computer

[-] [email protected] 4 points 1 year ago

There's a whole repo of possible methods: https://github.com/hakluke/how-to-exit-vim

[-] [email protected] 3 points 1 year ago

ZZ will save file though, the others won't. You meant ZQ.

[-] [email protected] 3 points 1 year ago

M-! pkill -9 vim

[-] [email protected] 3 points 1 year ago

Alt+PrtScn o

[-] [email protected] 3 points 1 year ago* (last edited 1 year ago)
[-] [email protected] 0 points 1 year ago

Here is an alternative Piped link(s): https://piped.video/watch?v=s5lj9YdKMz0

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

[-] [email protected] 3 points 1 year ago
[-] [email protected] 5 points 1 year ago

The comment was edited after the bot responded

[-] [email protected] 1 points 1 year ago

try...

:x

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

[-] [email protected] 1 points 1 year ago
[-] [email protected] 1 points 1 year ago
[-] [email protected] 2 points 1 year ago

Here is an alternative Piped link(s): https://piped.video/4889ED2-ufw

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

[-] [email protected] 1 points 1 year ago
[-] [email protected] 1 points 1 year ago
  1. Ctrl + T + alt
  2. sudo reboot
[-] [email protected] 1 points 1 year ago

til shift-z shift-z. am I stupid

[-] [email protected] 1 points 1 year ago

Does unplugging the machine not work?

[-] [email protected] 1 points 10 months ago

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

this post was submitted on 19 Jul 2023
206 points (91.2% liked)

Programmer Humor

19166 readers
625 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS