Hacker News new | ask | show | jobs
by amdivia 102 days ago
I'm yet to find a satisfying vim AI integration. I want something that blends into my vim workflow, and does not require me to switch Windows and copy paste or reload my open buffers after AI agents edit my code.

For instance I would love for it to seamlessly melt into a "highlight comments/pseudo code" -> some keybind, then AI would expand those to actual code for instance, or I don't know.. but something not like what we have currently

2 comments

Try CodeCompanion if you're using neovim. I have a keybind set up and takes the highlighted region, prepends some context which says roughly "if you see a TODO comment, do it, if you see a WTF comment, try to explain it", and presents you an inline diff to accept/reject edits. It's great for tactical LLM use on small sections of code.

For strategic use on any larger codebase though, it's more productive to use something like plan mode in Claude code.

If I had to use AI with neovim I'd probably use https://github.com/ThePrimeagen/99 or one with a similar workflow.