ways to close vim

206 points · 41 comments · view on lemmy.world

41 Comments

Jakylla@sh.itjust.works · 40 pts · 3y (4 replies)
  • Unplug the computer
  • Shut the house electric safety switch down
  • Cut the electricity pole nearest to the house
  • Bomb the nearest electricity distribution post
BrooklynMan@lemmy.ml · 16 pts · 3y

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

rtxn@lemmy.world · 7 pts · 3y
  • Wait for a sufficiently powerful coronal mass ejection to collapse the global electric grid
diemechanist@programming.dev · 1 pts · 3y (1 reply)

"Simple and easily explained."

Jakylla@sh.itjust.works · 1 pts · 3y

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

alnilam@lemmy.world · 27 pts · 3y (3 replies)

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

Kerb@discuss.tchncs.de · 22 pts · 3y (1 reply)

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

RustySharp@programming.dev · 5 pts · 3y

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

nickwitha_k@lemmy.sdf.org · 1 pts · 3y

Was going to say this, myself.

mayoaddict@pawb.social · 25 pts · 3y (1 reply)

you can close vim?

z3n0x@feddit.de · 6 pts · 3y

"this is my life now"

Eufalconimorph@discuss.tchncs.de · 18 pts · 3y (4 replies)

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

julianh@lemm.ee · 2 pts · 3y (2 replies)

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

nintendiator@feddit.cl · 6 pts · 3y (1 reply)

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

Eufalconimorph@discuss.tchncs.de · 5 pts · 3y

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

vrkr@programming.dev · 1 pts · 2y

dumb way.

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

cloudless@feddit.uk · 11 pts · 3y

Amateur. Just unplug the power cable.

CaptPretentious@lemmy.world · 6 pts · 3y

Open vim.

Accept vim is the OS now.

Sarsoar@lemmy.world · 5 pts · 3y (1 reply)

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

MattTheProgrammer@kbin.social · 0 pts · 3y

Fuck, are you me?

graham1@gekinzuku.com · 5 pts · 3y (2 replies)

ctrl-z
kill %1

Kerb@discuss.tchncs.de · 4 pts · 3y (1 reply)

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

graham1@gekinzuku.com · 2 pts · 3y

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

Boermund@feddit.de · 5 pts · 3y

One panel below: shut down the computer

mormegil@programming.dev · 4 pts · 3y

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

gornius@lemmy.world · 3 pts · 2y

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

princess@lemmy.blahaj.zone · 3 pts · 3y

Alt+PrtScn o

docAvid@midwest.social · 3 pts · 3y

M-! pkill -9 vim

testifier@sh.itjust.works · 3 pts · 3y (3 replies)
PipedLinkBot@feddit.rocks · 0 pts · 3y (2 replies)

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.

thiccdiccnicc@sh.itjust.works · 3 pts · 3y (1 reply)

Bad bot

IHateRedditAndSpez@programming.dev · 5 pts · 3y

The comment was edited after the bot responded

ImpossibleRubiksCube@programming.dev · 2 pts · 3y
[ removed ]
JohnJVaccaro@lemmy.sdf.org · 1 pts · 3y

try...

:x

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

stebo02@lemmy.dbzer0.com · 1 pts · 3y
[ removed ]
Kolanaki@yiffit.net · 1 pts · 2y (1 reply)

Does unplugging the machine not work?

sagrotan@lemmy.world · 1 pts · 2y

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

Ducks@ducks.dev · 1 pts · 3y

til shift-z shift-z. am I stupid

onescomplement@lemm.ee · 1 pts · 3y (2 replies)
PipedLinkBot@feddit.rocks · 2 pts · 3y (1 reply)

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.

onescomplement@lemm.ee · 1 pts · 3y

Good bot

Just_Dominic@programming.dev · 1 pts · 3y
  1. Ctrl + T + alt
  2. sudo reboot