logoalt Hacker News

guerrillayesterday at 5:54 PM6 repliesview on HN

I agree and I know what you're saying, but I'm pretty curious: how are people using AI with vim? I've seen some scripts for ollama but what are most people doing?


Replies

troyvityesterday at 10:00 PM

I don't use it this way yet, but aider has a watch mode that would be fun with vim:

https://aider.chat/docs/usage/watch.html

I imagine with vim, from the document you're editing, you'd go:

:ter

to get a terminal. Fire up aider with --watch-files in the terminal. Hop back up to the file and start telling it what to do. Hit L when it's done to see the changes.

That's just a guess but after writing it out I kinda want to try it.

When I use aider it's via its chat interface and then I load the file with vim in another terminal tab to follow along but I think --watch-files with vim would be fun.

flexagoonyesterday at 7:03 PM

At least for Neovim, there are many official or community-made AI autocomplete plugins, and a bunch of chat interfaces as well

era86yesterday at 6:05 PM

tmux + vim + Claude Code

show 2 replies
Carrokyesterday at 5:59 PM

The copilot plugin works well

show 1 reply
qsortyesterday at 6:26 PM

AI makes advanced IDE features less relevant (or, more precisely, much easier to ignore or work without.)

I still have PyCharm, especially for working with data which I do a lot it helps quite a bit, but by default I'm back to a very vanilla Vim setup. Others have mentioned tmux which is great and I'd use anyway especially over ssh, but even just terminal tabs for instances of agents are fine frankly.

drawnwrenyesterday at 7:07 PM

Avante.nvim is quite active