News for hackers. Stuff that matters.
Re:Vim prank: alias vim='vim -y' by freeCandy on Friday January 07, 2022 @07:31AM (#29838321)
So that's how it feels when people say they can't exit vim.
Re:Vim prank: alias vim='vim -y' by YeGoblynQueenne on Friday January 07, 2022 @08:09AM (#29838662)
Try ed. That is how it feels when people can't exit vim :P
Re:Vim prank: alias vim='vim -y' by Symmetry on Friday January 07, 2022 @11:26AM (#29841049)
Indeed:

https://www.gnu.org/fun/jokes/ed-msg.en.html

>Note the consistent user interface and error reportage. Ed is generous enough to flag errors, yet prudent enough not to overwhelm the novice with verbosity.

Re:Vim prank: alias vim='vim -y' by mFixman on Friday January 07, 2022 @09:56AM (#29839776)
?
Re:Vim prank: alias vim='vim -y' by toxik on Friday January 07, 2022 @10:00AM (#29839833)

    ?
Re:Vim prank: alias vim='vim -y' by okl on Friday January 07, 2022 @10:21AM (#29840117)
eat flaming death
Re:Vim prank: alias vim='vim -y' by Shared404 on Friday January 07, 2022 @11:30AM (#29841106)
^C
Re:Vim prank: alias vim='vim -y' by eliasbagley on Friday January 07, 2022 @02:22PM (#29843521)
The mighty ed has spoken!
Re:Vim prank: alias vim='vim -y' by amelius on Friday January 07, 2022 @10:35AM (#29840312)
I tried your suggestion ":P"

It gave me:

    **warning** (netrw) using Pexplore or <s-up> improperly; see help for netrw-starstar
Re:Vim prank: alias vim='vim -y' by iso1631 on Friday January 07, 2022 @09:24AM (#29839418)
q or ctrl-z. Not rocket science, not like having to press Control-L (clear terminal) before quitting.
Re:Vim prank: alias vim='vim -y' by Shared404 on Friday January 07, 2022 @10:53AM (#29840539)
Also vanilla emacs.

I just wanted to try out org >_< !

Re:Vim prank: alias vim='vim -y' by vidarh on Friday January 07, 2022 @09:21AM (#29839385)
That's what ^z and kill -9 is for... (yes, I know, unnecessarily brutal; consider it a passive aggressive reaction - it feels good)
Re:Vim prank: alias vim='vim -y' by BoxOfRain on Friday January 07, 2022 @12:19PM (#29841773)
>yes, I know, unnecessarily brutal; consider it a passive aggressive reaction - it feels good

Throwing SIGKILL at something that's misbehaving is very satisfying, especially if you have a habit of personifying your computer a bit too much.

Re:Vim prank: alias vim='vim -y' by gnubison on Friday January 07, 2022 @12:27PM (#29841891)
Regular SIGINT will probably do the same thing (or SIGQUIT) if that doesn’t work. It’s absurdly easy to create software that misbehaves after a ‘kill -9’, because the only real use for it is 60 seconds after starting the shutdown process for the rare program that just won’t exit.
Re:Vim prank: alias vim='vim -y' by vidarh on Friday January 07, 2022 @12:59PM (#29842341)
Yes, but not as satisfying...
Re:Vim prank: alias vim='vim -y' by iso1631 on Friday January 07, 2022 @09:23AM (#29839406)
ctrl-z does nothing (well it's mapped to undo in "easy" mode)
Re:Vim prank: alias vim='vim -y' by vidarh on Friday January 07, 2022 @09:37AM (#29839557)
Ah. Yikes. But randomly bashing a few keys with control held before ^z still worked for me... Random key-bashing is always a good bet if stuck in vim.

(yes, I can usually get out of vim "properly" these days)

Re:Vim prank: alias vim='vim -y' by nostoc on Friday January 07, 2022 @09:54AM (#29839745)
Random key bashing in vim can have a lot of unforeseen consequences for whatever poor file you had opened.
Re:Vim prank: alias vim='vim -y' by vidarh on Friday January 07, 2022 @10:54AM (#29840558)
Given I never intentionally start vim, it's generally when I get thrown into editing some temporary file or other on some system where I haven't configured an editor. Not done any harm in the last 3 decades, so I think the odds are decent.
Re:Vim prank: alias vim='vim -y' by fomine3 on Friday January 07, 2022 @03:01PM (#29843967)
If you open any file and just type "DZZ" (in capital), you delete the first line of file and save and quit.
Re:Vim prank: alias vim='vim -y' by vidarh on Saturday January 08, 2022 @10:37AM (#29852627)
Even if I'd have done that, with the type of things I now and again end up accidentally thrown into vim for, that would hardly matter.
Re:Vim prank: alias vim='vim -y' by dylan604 on Friday January 07, 2022 @11:10AM (#29840790)
Sounds like a good time to link to https://www.youtube.com/watch?v=0rG74rG_ubs
Re:Vim prank: alias vim='vim -y' by fsflover on Friday January 07, 2022 @11:01AM (#29840650)
Re:Vim prank: alias vim='vim -y' by andrewaylett on Friday January 07, 2022 @12:29PM (#29841910)
Hit the power switch.

(In my youth, I definitely resorted to doing that more than once)

Re:Vim prank: alias vim='vim -y' by avereveard on Friday January 07, 2022 @09:11AM (#29839274)
A quarter of support call when I was lab assistant for my uni was students pressing ctrl+s in vim out of habit and getting stuck in there.