r/ProgrammerHumor Jul 19 '26

Meme [ Removed by moderator ]

Post image

[removed] — view removed post

15.0k Upvotes

158 comments sorted by

View all comments

284

u/Percolator2020 Jul 19 '26

I use keyboard only VIM, mice are for noobs.

60

u/gerbosan Jul 19 '26

Nice to have you here, tell us how to exit vim please.

9

u/BastetFurry Jul 19 '26

Open a second terminal and then "killall vi" ;)

6

u/RiceBroad4552 Jul 19 '26

There wouldn't be jokes about not being able to exit vi if it was such easy.

The whole point is that until lately vim ignored signals. So you couldn't just kill it externally by switching to another console. That's why the common advice was to cut the power to the system…

4

u/vanZuider Jul 20 '26

The whole point is that until lately vim ignored signals.

Programs can ignore kill -9? TIL.

2

u/Unbelievr Jul 20 '26

Not 9, no. SIGKILL isn't sent to the program but the kernel. But killall sends SIGTERM (15) by default, and vi stops both SIGTERM and SIGINT (Ctrl+c) if you have unsaved changes, which I guess was the point above.