r/vim • • 14d ago

Need Help Autocompletion plugin (codevium replacement)

Past two years I was happy user of windsurf.vim plugin for autocompletion. Few days ago it stopped working.

What is recommended replacement? I've tried llama.vim, but it is much worse and doesn't support LSP/RAG so suggestions are very limited.

I don't need any advanced AI functionality, just code autocomplete.

P.S. I'm using MacVim, but if some plugin require NVim will consider switching.

P.P.S. It will be nice if guys behind codeium/windsurf/whatever consider open-sourcing their infrastructure for autocompletion if it has no business value for them.

10 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/JetSetIlly 13d ago

Does this work with llama.cpp too?

2

u/RewardOwn4479 13d ago

It should, by using an OpenAI API endpoint. You would need a local model (like codestral, qwen coder, and others) that supports fill in the middle (FIM). I tried to support as many prompt variables as possible (check the README).

1

u/reddotr 9d ago

Thanks for sharing your work! Does your plugin support partial accepts (only one word, only one line) and cycling thru completion variants. Or do you have plans to implement it?

2

u/RewardOwn4479 9d ago

Different suggestions, yes, you can request a new completion. Partial accepts, no, I had some issues when testing with different models, and the best I could do was accept until the end of a statement with some heuristics (looking for new lines, semicolons, etc.), but it could be a good addition. I simply focused on having a functional version.

1

u/TheGratitudeBot 9d ago

Thanks for such a wonderful reply! TheGratitudeBot has been reading millions of comments in the past few weeks, and you’ve just made the list of some of the most grateful redditors this week!