This is how we trap it. This is how we win.
This is how we vim😏
Are you sure? It looks like this is going “Hey, I can’t get the front door open to the house, so I called the cops and told them I was being held hostage so they would break down the door with a battering ram.”
How long is it before CoPilot can’t exit vim and just deletes vim as the solution?
I hope it does delete vim with itself inside it. Yesplease.
No one can exit vim. It’s simply not possible.
There are even legends that the devil himself was onced tricked into opening vim and is stuck there since.
That explains the many vim enthusiasts that don’t want any other editor. They simply can’t exit the vim instance they once accidentally opened…
The Eagles called it Hotel California.
“We are all just prisoners here of our own device”
So true, so true.
Stockholm Editor
Vimmer here, this one’s right: I’ve been stuck since 2003.
You just reboot. Right?
“… and that’s why I need you to take the power plant offline.”
“… and that’s why I need you to take the power plants offline.”
For those who don’t live in the US and have an electical grid with more than one power plant.
:!sudo reboot
Every computer has a built-in “exit vim” button, conveniently located on the chassis, usually next to the power cord. Flick it to 0, then back to 1, and you’ll find vim has been successfully exited. :)
What if my PC boots straight into Vim? It’s not like I need anything else, can do everything in Vim
Jokes aside, vim as PID 1 is just a bad idea.
Emacs on the other hand: https://github.com/emacs-os/el-init
That’s a great idea from GitHub user el-sloppo and Claude.
To be fair, I’ve seen this done a long time before LLM slopped everything, but I think they ran emacs as PID2 in that variation.
Anyway, good luck doing it in vimscript.
Did you read the retrospective.md
AI;DR
Then you obviously didn’t read it.
Yes. That’s literally what I said.
That settles it. Emacs is better than Vim
I bet this comment actually pissed off some people. Lol
Oh it’s like Zombo?
As discovered by plyth, you can’t do anything anymore. There are limits
Seeing you reply made me click the link, where is my beloved! At least the new owners want to keep it Zombo.
Not anymore.
crap
Can vim be pid-1? No? emacs can B)
mmmkay.
You simply need to set up a MCP server which controls the smart plug and give the AI access to it.
I don’t even know what a MCP server is and I feel like I’ve somewhat dodged a bullet there. Ignorance is bliss. :)
This is the closest I have seen Copilot doing something like a human Programmer would
Ok this proves that AI has reaches human level intelligence.
I’m sorry, Dave. I’m afraid I can’t exit vim.
so human of it!
Isn’t it? I can’t decide whether I believe this is an easter egg
If it was trained properly on Internet data it would just respond with “you can’t”
If you need to exit vim, just open a new terminal and reboot the machine.
I don’t often see folks with such well earned nicks. Usually for dinner not to be, but that’s rather why I’m here.
Instructions: “Next, open the .config file in vim…”
Me:

What a weird way to spell
nanoNano is the proper tool for this job.
neovim
but
use whatever you like
I prefer micro, but I never use it because my brain just autotypes nano and then it’s too late I’m already in
You could alias nano to micro
Move over, my friends are here.
*Vim
Just like me fr

I often see Copilot get stuck in a nonresponsive shell after it used
cat > file. It’s hilarious to watch the first time, but I’m a bit tired of it by now. Why doesn’t it just edit files like it normally does?Why doesn’t it just edit files like it normally does?
Haha. Yes.
But it does everything the most probable way, according to all the stack overflow it has swallowed.
Sometimes that way makes sense. Sometimes not.
Because efficiency is never the point. All gimmicks of “artificial intelligence” throughout history is how automatons do things the way humans do it, with human interface. The mechanical turk, the robot maids of the 70s, etc.
The mechanical turk, the robot maids of the 70s, etc.
Yes.
But I’m a little sad that I still can’t buy a robot maid or butler.
I figured they would exist by now, for about the price of a vacuum.
I’m not demanding that they actually be any good. We could just program them to quote “The Jetsons” and do some simple vacuum pathing, or deliver a tray full of drinks.
Failures are making occasional news, but bots are getting better at walking. Doing useful tasks will be a few more years, but I think it’s coming.
Claus Weill often write a python script to update a file. It’s pretty funny.
Well, it has to earn its stripes just like the rest of us in IT! No shortcuts, even for an LLM. :D
When I first got into BSD (way before Linux) I found man pages useful… but no way to leave them. Not even
man manwon’t tell you how to exit a man page!So I would tinker, eventually needing a man page, reading what I needed – and then hard power cycle the machine. -_-
I was pretty good with computers, but that was a humbling experience. You just don’t know what you don’t know, and if you can’t ask… sometimes you just get stuck. Just like in KQ, LSL, SQ, … The Internet is (was) a blessing.
It has achieved the same level of awareness as the average emacs user.
Blowing through all those tokens failing to exit a vim
Why :wq doesnt work?
If it’s a read only file it won’t work, but it might be in insert mode and can’t escape.
It should have tried :q!
I think it might not be vim.
Why?
It’s started something on a terminal. It is assuming it’s vim, but it’s not operating like vim. I’m questioning it’s assumption. If it had fired up nano, for example, sending vim key sequences isn’t going to work. Seeing as it seems to be doing stuff with git too, it may not have started this editor explicitly. It will be using whatever git is configured to use.
Oh, ok yah. It might not be vim. It could literally be anything. I just thought I’d missed something
Could be in recording mode, which usually needs a couple ESC or a Q then you can :wq
You mean EX mode? IIRC recording mode doesn’t prevent exiting vim
Ah just looked up EX mode. Didn’t know capital Q entered a different mode, I just wrote “Q” to emphasize the key in general not capital Q specifically lol.
Personally I love vim, it’s just powerful enough for me for my bash scripts. Anything more complicated then I’m using a proper IDE or something more simple I’m using Kate or whatever graphical editor for my DE.
Nah, just looked it up. Recording mode is activated by pressing “q” and allows you to record your inputs for a macro. So if you forget to do “:” and just press “q” you’ll enter Recording mode and have to press “q” again to exit Recording and then you can do “:q” or whatever you needed.
But if you don’t know what you pressed and don’t know how to exit Recording mode then you’ll be stuck. I’ve seen coworkers get stuck in this from time to time.
We’re a RHEL shop so our vim version may be different, but Recording mode doesn’t let us exit vim directly, we have to exit Recording mode and then exit vim. Again, might just be our setup.
















