This is how we trap it. This is how we win.
Programmer Humor
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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
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.
I'm sorry, Dave. I'm afraid I can't exit vim.
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
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
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.
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"
Just like me fr

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 man won't tell you how to exit a man page!
So I world 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.
Instructions: "Next, open the .config file in vim..."
Me:

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.
It has achieved the same level of awareness as the average emacs user.
If you use nvim you don't exit you open a float terminal. Why would you exit?
Blowing through all those tokens failing to exit a vim
First funny thing ive seen Microslop Copilot do...
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!
Same tbh