Settings

Theme

Can AI Exit Vim?

theadamcolton.github.io

31 points by topwalktown 17 hours ago · 17 comments

Reader

tim-tday 24 minutes ago

Turns out this was the real test of Artificial General Intelligence all along.

Also: https://github.com/hakluke/how-to-exit-vim

bean469 4 hours ago

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

  • stonegray 2 hours ago

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

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

    • mwcz an hour ago

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

stonegray 2 hours ago

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.

topwalktownOP 17 hours ago

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!

  • slim 11 hours ago

    what harness do you use ?

    • topwalktownOP 3 hours ago

      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.

seanhunter 10 hours ago

Obvious question demands an obvious answer. No. No-one can exit vim.

I started using it nearly 30 years ago now and there is still no end in sight. I’m pretty much convinced it’s just not possible at this point.

k310 17 hours ago

https://theadamcolton.github.io/can-ai-exit-vim/

is 404

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection