# codeium-vim
**Repository Path**: mirrors/codeium-vim
## Basic Information
- **Project Name**: codeium-vim
- **Description**: codeium.vim 是适用于 Vim 和 Neovim 的 AI 编程助手,可作为 GitHub Copilot 的免费替代方案
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: https://www.oschina.net/p/codeium-vim
- **GVP Project**: No
## Statistics
- **Stars**: 6
- **Forks**: 1
- **Created**: 2023-05-23
- **Last Updated**: 2025-10-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
---
[](https://discord.gg/3XFf78nAx5)
[](https://twitter.com/intent/follow?screen_name=windsurf_ai)

[](https://docs.windsurf.com)
[](https://windsurf.canny.io/feature-requests/)
[](https://windsurf.com?repo_name=exafunction%2Fwindsurf.vim)
[](https://marketplace.visualstudio.com/items?itemName=Codeium.codeium)
[](https://plugins.jetbrains.com/plugin/20540-codeium/)
[](https://open-vsx.org/extension/Codeium/codeium)
[](https://chrome.google.com/webstore/detail/codeium/hobjkcpmjhlegmobgonaagepfckjkceh)
# windsurf.vim
_Free, ultrafast Copilot alternative for Vim and Neovim_
Windsurf autocompletes your code with AI in all major IDEs. We [launched](https://www.windsurf.com/blog/codeium-copilot-alternative-in-vim) this implementation of the Windsurf plugin for Vim and Neovim to bring this modern coding superpower to more developers. Check out our [playground](https://www.windsurf.com/playground) if you want to quickly try out Windsurf online.
Contributions are welcome! Feel free to submit pull requests and issues related to the plugin.

## 🚀 Getting started
1. Install [Vim](https://github.com/vim/vim) (at least 9.0.0185) or [Neovim](https://github.com/neovim/neovim/releases/latest) (at
least 0.6)
2. Install `Exafunction/windsurf.vim` using your vim plugin manager of
choice, or manually. See [Installation Options](#-installation-options) below.
3. Run `:Codeium Auth` to set up the plugin and start using Windsurf.
You can run `:help codeium` for a full list of commands and configuration
options, or see [this guide](https://www.windsurf.com/vim_tutorial) for a quick tutorial on how to use Windsurf.
## 🛠️ Configuration
For a full list of configuration options you can run `:help codeium`.
A few of the most popular options are highlighted below.
### ⌨️ Keybindings
Windsurf provides the following functions to control suggestions:
| Action | Function | Default Binding |
| --------------------------- | ------------------------------ | --------------- |
| Clear current suggestion | `codeium#Clear()` | `` |
| Next suggestion | `codeium#CycleCompletions(1)` | `` |
| Previous suggestion | `codeium#CycleCompletions(-1)` | `` |
| Insert suggestion | `codeium#Accept()` | `` |
| Manually trigger suggestion | `codeium#Complete()` | `` |
| Accept word from suggestion | `codeium#AcceptNextWord()` | `` |
| Accept line from suggestion | `codeium#AcceptNextLine()` | `` |
Windsurf's default keybindings can be disabled by setting
```vim
let g:codeium_disable_bindings = 1
```
or in Neovim:
```lua
vim.g.codeium_disable_bindings = 1
```
If you'd like to just disable the `` binding, you can alternatively
use the `g:codeium_no_map_tab` option.
If you'd like to bind the actions above to different keys, this might look something like the following in Vim:
```vim
imap