Skip to content

Commit 4ade97b

Browse files
authored
Merge branch 'Exafunction:main' into main
2 parents 9e16363 + 272c6e2 commit 4ade97b

File tree

12 files changed

+189
-133
lines changed

12 files changed

+189
-133
lines changed

README.md

Lines changed: 45 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
<p align="center">
2-
<img width="300" alt="Codeium" src="codeium.svg"/>
2+
<img width="300" alt="Windsurf" src="windsurf.png"/>
33
</p>
44

55
---
66

77
[![Discord](https://img.shields.io/discord/1027685395649015980?label=community&color=5865F2&logo=discord&logoColor=FFFFFF)](https://discord.gg/3XFf78nAx5)
8-
[![Twitter Follow](https://img.shields.io/badge/style--blue?style=social&logo=twitter&label=Follow%20%40codeiumdev)](https://twitter.com/intent/follow?screen_name=codeiumdev)
9-
![License](https://img.shields.io/github/license/Exafunction/codeium.vim)
10-
[![built with Codeium](https://codeium.com/badges/main)](https://codeium.com?repo_name=exafunction%2Fcodeium.vim)
8+
[![Twitter Follow](https://img.shields.io/badge/style--blue?style=social&logo=twitter&label=Follow%20%40windsurf_ai)](https://twitter.com/intent/follow?screen_name=windsurf_ai)
9+
![License](https://img.shields.io/github/license/Exafunction/windsurf.vim)
10+
[![Docs](https://img.shields.io/badge/Windsurf%20Docs-09B6A2)](https://docs.windsurf.com)
11+
[![Canny Board](https://img.shields.io/badge/Feature%20Requests-6b69ff)](https://windsurf.canny.io/feature-requests/)
12+
[![built with Windsurf](https://windsurf.com/badges/main)](https://windsurf.com?repo_name=exafunction%2Fwindsurf.vim)
1113

1214
[![Visual Studio](https://img.shields.io/visual-studio-marketplace/i/Codeium.codeium?label=Visual%20Studio&logo=visualstudio)](https://marketplace.visualstudio.com/items?itemName=Codeium.codeium)
1315
[![JetBrains](https://img.shields.io/jetbrains/plugin/d/20540?label=JetBrains)](https://plugins.jetbrains.com/plugin/20540-codeium/)
1416
[![Open VSX](https://img.shields.io/open-vsx/dt/Codeium/codeium?label=Open%20VSX)](https://open-vsx.org/extension/Codeium/codeium)
1517
[![Google Chrome](https://img.shields.io/chrome-web-store/users/hobjkcpmjhlegmobgonaagepfckjkceh?label=Google%20Chrome&logo=googlechrome&logoColor=FFFFFF)](https://chrome.google.com/webstore/detail/codeium/hobjkcpmjhlegmobgonaagepfckjkceh)
1618

17-
# codeium.vim
19+
# windsurf.vim
1820

1921
_Free, ultrafast Copilot alternative for Vim and Neovim_
2022

21-
Codeium autocompletes your code with AI in all major IDEs. We [launched](https://www.codeium.com/blog/codeium-copilot-alternative-in-vim) this implementation of the Codeium plugin for Vim and Neovim to bring this modern coding superpower to more developers. Check out our [playground](https://www.codeium.com/playground) if you want to quickly try out Codeium online.
23+
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.
2224

2325
Contributions are welcome! Feel free to submit pull requests and issues related to the plugin.
2426

@@ -33,13 +35,13 @@ Contributions are welcome! Feel free to submit pull requests and issues related
3335
1. Install [Vim](https://github.com/vim/vim) (at least 9.0.0185) or [Neovim](https://github.com/neovim/neovim/releases/latest) (at
3436
least 0.6)
3537

36-
2. Install `Exafunction/codeium.vim` using your vim plugin manager of
38+
2. Install `Exafunction/windsurf.vim` using your vim plugin manager of
3739
choice, or manually. See [Installation Options](#-installation-options) below.
3840

39-
3. Run `:Codeium Auth` to set up the plugin and start using Codeium.
41+
3. Run `:Codeium Auth` to set up the plugin and start using Windsurf.
4042

4143
You can run `:help codeium` for a full list of commands and configuration
42-
options, or see [this guide](https://www.codeium.com/vim_tutorial) for a quick tutorial on how to use Codeium.
44+
options, or see [this guide](https://www.windsurf.com/vim_tutorial) for a quick tutorial on how to use Windsurf.
4345

4446
## 🛠️ Configuration
4547

@@ -48,17 +50,19 @@ A few of the most popular options are highlighted below.
4850

4951
### ⌨️ Keybindings
5052

51-
Codeium provides the following functions to control suggestions:
53+
Windsurf provides the following functions to control suggestions:
5254

53-
| Action | Function | Default Binding |
54-
| --------------------------- | ------------------------------ | --------------- |
55-
| Clear current suggestion | `codeium#Clear()` | `<C-]>` |
56-
| Next suggestion | `codeium#CycleCompletions(1)` | `<M-]>` |
57-
| Previous suggestion | `codeium#CycleCompletions(-1)` | `<M-[>` |
58-
| Insert suggestion | `codeium#Accept()` | `<Tab>` |
59-
| Manually trigger suggestion | `codeium#Complete()` | `<M-Bslash>` |
55+
| Action | Function | Default Binding |
56+
| --------------------------- | ------------------------------ | --------------- |
57+
| Clear current suggestion | `codeium#Clear()` | `<C-]>` |
58+
| Next suggestion | `codeium#CycleCompletions(1)` | `<M-]>` |
59+
| Previous suggestion | `codeium#CycleCompletions(-1)` | `<M-[>` |
60+
| Insert suggestion | `codeium#Accept()` | `<Tab>` |
61+
| Manually trigger suggestion | `codeium#Complete()` | `<M-Bslash>` |
62+
| Accept word from suggestion | `codeium#AcceptNextWord()` | `<C-k>` |
63+
| Accept line from suggestion | `codeium#AcceptNextLine()` | `<C-l>` |
6064

61-
Codeium's default keybindings can be disabled by setting
65+
Windsurf's default keybindings can be disabled by setting
6266

6367
```vim
6468
let g:codeium_disable_bindings = 1
@@ -77,6 +81,8 @@ If you'd like to bind the actions above to different keys, this might look somet
7781

7882
```vim
7983
imap <script><silent><nowait><expr> <C-g> codeium#Accept()
84+
imap <script><silent><nowait><expr> <C-h> codeium#AcceptNextWord()
85+
imap <script><silent><nowait><expr> <C-j> codeium#AcceptNextLine()
8086
imap <C-;> <Cmd>call codeium#CycleCompletions(1)<CR>
8187
imap <C-,> <Cmd>call codeium#CycleCompletions(-1)<CR>
8288
imap <C-x> <Cmd>call codeium#Clear()<CR>
@@ -87,7 +93,7 @@ Or in Neovim (using [wbthomason/packer.nvim](https://github.com/wbthomason/packe
8793
```lua
8894
-- Remove the `use` here if you're using folke/lazy.nvim.
8995
use {
90-
'Exafunction/codeium.vim',
96+
'Exafunction/windsurf.vim',
9197
config = function ()
9298
-- Change '<C-g>' here to any keycode you like.
9399
vim.keymap.set('i', '<C-g>', function () return vim.fn['codeium#Accept']() end, { expr = true, silent = true })
@@ -100,9 +106,9 @@ use {
100106

101107
(Make sure that you ran `:Codeium Auth` after installation.)
102108

103-
### ⛔ Disabling Codeium
109+
### ⛔ Disabling Windsurf
104110

105-
Codeium can be disabled for particular filetypes by setting the
111+
Windsurf can be disabled for particular filetypes by setting the
106112
`g:codeium_filetypes` variable in your vim config file (vimrc/init.vim):
107113

108114
```vim
@@ -112,7 +118,7 @@ let g:codeium_filetypes = {
112118
\ }
113119
```
114120

115-
Codeium is enabled by default for most filetypes.
121+
Windsurf is enabled by default for most filetypes.
116122

117123
You can also _disable_ codeium by default with the `g:codeium_enabled` variable,
118124
and enable it manually per buffer by running `:CodeiumEnable`:
@@ -157,37 +163,38 @@ To disable automatic text rendering of suggestions (the gray text that appears f
157163
let g:codeium_render = v:false
158164
```
159165

160-
### Show Codeium status in statusline
166+
### Show Windsurf status in statusline
161167

162-
Codeium status can be generated by calling the `codeium#GetStatusString()` function. In
168+
Windsurf status can be generated by calling the `codeium#GetStatusString()` function. In
163169
Neovim, you can use `vim.api.nvim_call_function("codeium#GetStatusString", {})` instead.
164-
It produces a 3 char long string with Codeium status:
170+
It produces a 3 char long string with Windsurf status:
165171

166172
- `'3/8'` - third suggestion out of 8
167-
- `'0'` - Codeium returned no suggestions
168-
- `'*'` - waiting for Codeium response
173+
- `'0'` - Windsurf returned no suggestions
174+
- `'*'` - waiting for Windsurf response
169175

170-
In normal mode, status shows if Codeium is enabled or disabled by showing
176+
In normal mode, status shows if Windsurf is enabled or disabled by showing
171177
`'ON'` or `'OFF'`.
172178

173179
In order to show it in status line add following line to your `.vimrc`:
174180

175181
```set statusline+=\{…\}%3{codeium#GetStatusString()}```
176182

177-
Shorter variant without Codeium logo:
183+
Shorter variant without Windsurf logo:
178184

179185
```set statusline+=%3{codeium#GetStatusString()}```
180186

181187
Please check `:help statusline` for further information about building statusline in VIM.
182188

183-
vim-airline supports Codeium out-of-the-box since commit [3854429d](https://github.com/vim-airline/vim-airline/commit/3854429d99c8a2fb555a9837b155f33c957a2202).
189+
vim-airline supports Windsurf out-of-the-box since commit [3854429d](https://github.com/vim-airline/vim-airline/commit/3854429d99c8a2fb555a9837b155f33c957a2202).
184190

185-
### Launching Codeium Chat
191+
### Launching Windsurf Chat
186192

187-
Calling the `codeium#Chat()` function will enable search and indexing in the current project and launch Codeium Chat in a new browser window.
193+
Calling the `codeium#Chat()` function or using the `Codeium Chat` command will enable search and indexing in the current project and launch Codeium Chat in a new browser window.
188194

189195
```vim
190196
:call codeium#Chat()
197+
:Codeium Chat
191198
```
192199

193200
The project root is determined by looking in Vim's current working directory for some specific files or directories to be present and goes up to parent directories until one is found. This list of hints is user-configurable and the default value is:
@@ -202,27 +209,27 @@ Note that launching chat enables telemetry.
202209

203210
```lua
204211
{
205-
'Exafunction/codeium.vim',
212+
'Exafunction/windsurf.vim',
206213
event = 'BufEnter'
207214
}
208215
```
209216

210217
### 🔌 vim-plug
211218

212219
```vim
213-
Plug 'Exafunction/codeium.vim', { 'branch': 'main' }
220+
Plug 'Exafunction/windsurf.vim', { 'branch': 'main' }
214221
```
215222

216223
### 📦 Vundle
217224

218225
```vim
219-
Plugin 'Exafunction/codeium.vim'
226+
Plugin 'Exafunction/windsurf.vim'
220227
```
221228

222229
### 📦 packer.nvim:
223230

224231
```vim
225-
use 'Exafunction/codeium.vim'
232+
use 'Exafunction/windsurf.vim'
226233
```
227234

228235
### 💪 Manual
@@ -233,7 +240,7 @@ Run the following. On windows, you can replace `~/.vim` with
233240
`$HOME/vimfiles`:
234241

235242
```bash
236-
git clone https://github.com/Exafunction/codeium.vim ~/.vim/pack/Exafunction/start/codeium.vim
243+
git clone https://github.com/Exafunction/windsurf.vim ~/.vim/pack/Exafunction/start/windsurf.vim
237244
```
238245

239246
#### 💻 Neovim
@@ -242,5 +249,5 @@ Run the following. On windows, you can replace `~/.config` with
242249
`$HOME/AppData/Local`:
243250

244251
```bash
245-
git clone https://github.com/Exafunction/codeium.vim ~/.config/nvim/pack/Exafunction/start/codeium.vim
252+
git clone https://github.com/Exafunction/windsurf.vim ~/.config/nvim/pack/Exafunction/start/windsurf.vim
246253
```

assets/codeium_logo.svg

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)