opensourceprojects.dev

A broadsheet for software that doesn't ask for your email

Windsurf's free AI autocomplete plugin for Vim and Neovim
GitHub RepoImpressions3

Project Description

View on GitHub

Give Your Vim a Copilot: Windsurf's Free AI Autocomplete Plugin

You've probably seen teammates in VS Code or JetBrains getting AI suggestions as they type, and you've wondered why your trusty Vim setup can't do the same. The good news is that it can—you just need to install the right plugin. Windsurf (formerly Codeium) offers a free, ultrafast AI autocomplete plugin for Vim and Neovim, and it's surprisingly easy to get running.

What It Does

Windsurf is an AI-powered autocomplete tool that suggests code as you type, right inside your editor. This particular repository, windsurf.vim, is the official implementation for Vim and Neovim. It connects your editor to Windsurf's AI models, which analyze your code context and generate completions on the fly.

The plugin requires Vim 9.0.0185 or later, or Neovim 0.6 or later. It's built to work with your existing plugin manager—whether that's vim-plug, Packer, or something else—and it integrates directly into your editor's native completion workflow rather than trying to replace it.

Under the hood, it's a fairly lightweight client that handles authentication, sends your code context to Windsurf's servers, and renders suggestions inline. You authenticate once with :Codeium Auth, and from there it just works in the background.

Why It's Cool

What makes this worth your attention isn't just that it exists—it's how well it fits into the Vim philosophy.

  • It's free. Not freemium, not a trial. The README is explicit: "Free, ultrafast Copilot alternative." For developers who've been priced out of other AI tools, that's a significant difference.

  • It respects your keybindings. The plugin provides functions for controlling suggestions, and you can remap them however you like. The defaults are sensible too: <Tab> to accept, <C-]> to clear, <M-]> and <M-[> to cycle through suggestions, and <C-k>/<C-l> to accept just the next word or line. That granular control—accepting a single word versus a whole line—is something you don't always get with other AI tools.

  • You can disable it entirely. Set g:codeium_disable_bindings = 1 and the plugin won't touch your keybindings at all. You can then bind only the functions you actually want. That's a level of control that respects your existing muscle memory.

  • It's not just for Vim. The README shows download badges for Visual Studio, JetBrains, Open VSX, and Chrome. So if you ever switch editors or work in a mixed environment, your AI assistant follows you.

  • The docs are solid. There's a full :help codeium page inside the editor, plus a dedicated tutorial on the Windsurf site. You don't need to go hunting through blog posts to figure out configuration options.

How to Try It

Getting started takes about two minutes. First, make sure you have a recent enough version of Vim or Neovim installed. Then install the plugin using your preferred plugin manager.

If you use vim-plug, add this to your config:

Plug 'Exafunction/windsurf.vim'

For Neovim with packer:

use 'Exafunction/windsurf.vim'

After installing, run this command in Vim or Neovim:

:Codeium Auth

That will walk you through authentication. Once that's done, you're ready to go. You can run :help codeium anytime to see the full list of commands and configuration options, or check out the tutorial for a quick walkthrough.

If you want to customize the keybindings, you can disable the defaults and set your own:

let g:codeium_disable_bindings = 1
nnoremap <C-a> :call codeium#Accept()<CR>

Or in Neovim's Lua config:

vim.g.codeium_disable_bindings = 1
vim.api.nvim_set_keymap('i', '<C-a>', "codeium#Accept()", {expr = true})

The repository is at github.com/exafunction/codeium.vim, and contributions are welcome if you run into issues or want to improve the plugin.

Final Thoughts

If you've been holding off on AI autocomplete because you didn't want to leave Vim or pay a subscription, this is worth a shot. It's free, it integrates cleanly with your existing setup, and it gives you fine-grained control over how suggestions appear and are accepted. The plugin isn't trying to reinvent your editor—it's just adding a capability that fits naturally into your workflow. Give it an afternoon, remap the keys to your liking, and see if it sticks. You might find that the future of coding works just fine in your terminal.


Follow @githubprojects for more developer tools and open source projects.

Back to Projects
Project ID: ce48eab5-0721-43f2-b02c-e4b2db69b597Last updated: August 31, 2026 at 02:45 AM