sponsor Vim development Vim logo Vim Book Ad

ollama-fim.vim : A Vim plugin for inline FIM code completions powered by Ollama models.

 script karma  Rating 0/0, Downloaded by 3  Comments, bugs, improvements  Vim wiki

created by
Mauricio Andrade
 
script type
utility
 
description
ollama-fim.vim

A Vim plugin for inline FIM (fill-in-the-middle) code completions powered by Ollama models. It is heavily inspired by the UX of copilot.vim — ghost text suggestions appear as you type and can be accepted with Tab — but it uses your own Ollama instance and the same FIM prompt engineering from the ollama-fim VS Code extension https://marketplace.visualstudio.com/items?itemName=guzmandrade-dev.ollama-fim.
 
install details
Using Vim's built-in packages

mkdir -p ~/.vim/pack/plugins/start
cd ~/.vim/pack/plugins/start
git clone https://github.com/guzmandrade-dev/ollama-fim.vim.git

Using vim-plug

Plug 'guzmandrade-dev/ollama-fim.vim', { 'rtp': 'vim' }
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ollama-fim.vim.zip 1.0.1 2026-06-22 9.0 Mauricio Andrade prefer popup_atcursor for ghost text

- Prioritize using `popup_atcursor` for rendering suggestions
- Move `textprop` to a fallback mechanism
- Remove redundant fallback function logic
ip used for rating: 216.73.216.170

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github