Live data from Hacker News

Can AI Exit Vim?

theadamcolton.github.io

11–20 of 25 posts

Re: Can AI Exit Vim?

#14
post #6

I test if qwen3.5-35B-A3B can exit vim when running in a harness that allows it to read the raw terminal buffer and send raw key presses to the terminal. Enjoy!

what harness do you use ?

I wrote it myself it python. The model runs in a loop and can either read the terminal or input keys. If it does neither the loop exits.

Re: Can AI Exit Vim?

#15
post #13

My favorite big-brained way of quitting is ZZ (save and quit) and ZQ (quit without saving). Learned these shortcuts from a video by the legendary Luke Smith [1]. 1. https://lukesmith.xyz

Wow, this is so much easier than what i’ve been doing:

:call system('kill -9 ' . getpid())

Re: Can AI Exit Vim?

#16
Vimscript is extremely token efficient and very common in training data.

Dunno about constraining to a window, but vimscript itself could be a good way of sending editing commands.

Re: Can AI Exit Vim?

#17
post #13

My favorite big-brained way of quitting is ZZ (save and quit) and ZQ (quit without saving). Learned these shortcuts from a video by the legendary Luke Smith [1]. 1. https://lukesmith.xyz

Wow, this is so much easier than what i’ve been doing: :call system('kill -9 ' . getpid())

Brilliant. When is the next International Obfuscated Vim Exit contest?

Re: Can AI Exit Vim?

#19
post #17

Earlier quoted context omitted.

Wow, this is so much easier than what i’ve been doing: :call system('kill -9 ' . getpid())

Brilliant. When is the next International Obfuscated Vim Exit contest?

I misread that as "Intentional Obfuscated Vim Exit contest", which led me to wonder what the Unintentional version would bring.

Re: Can AI Exit Vim?

#20
The AI model is likely trained on Stack Overflow posts, or otherwise related content from wherever off the internet, so most likely it will have ripped off enough hand-written posts or articles on how to quit Vim. So of course it can regurgitate the required keystrokes on command.

And will the writers of those posts, who contributed their knowledge to help out their fellow humans, get a fraction of a penny for the hundreds and thousands and millions of dollars of profit the AI corps are making off the backs of their labour? I somehow doubt it.

Post reply on HN