Skip to content

Commit af4cbc1

Browse files
committed
docs(vim): add code auto completion docs
1 parent fffb055 commit af4cbc1

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,69 @@ pressing `,f` will jump the cursor to the placeholder and delete it at the same
11331133
11341134
### <a name="VimNeovim-Plugins"></a>Vim/Neovim Plugins [](#VimNeovim)
11351135

1136+
#### <a name="Code-AutoCompletion"></a>Code AutoCompletion [](#VimNeovim)
1137+
1138+
##### <a name="neoclidecoc.nvim"></a>[neoclide/coc.nvim](https://github.com/neoclide/coc.nvim) [](#Code-AutoCompletion)
1139+
1140+
###### 1. Symbol description of the completion menu
1141+
1142+
```text
1143+
[LS] Language Server
1144+
[S] Snippets
1145+
[US] UltiSnips
1146+
[TN] TabNine
1147+
[GOC] Gocode
1148+
[NEC] Neco-vim
1149+
[A] Around
1150+
[B] Buffer
1151+
[F] File
1152+
M Module
1153+
I Interface
1154+
S Struct
1155+
f func
1156+
```
1157+
1158+
###### 2. Key bindings
1159+
1160+
- `:C` : Open ~/.vim/coc-settings.json
1161+
- `[`/`]` `g` : Navigate chunks of current buffer
1162+
- `[`/`]` `c` : Navigate conflicts of current buffer
1163+
- `,` `gd` : Show chunk diff at current position
1164+
- `,` `gc` : Show commit contains current position
1165+
- `<tab>` : Use tab for trigger completion with characters ahead and navigate
1166+
- `g` `l` : Go to definition position by create new tab way
1167+
- `g` `y` : Go to type definition
1168+
- `g` `i` : Go to implementation position
1169+
- `g` `r` : Show related items in location list, and select one to go to
1170+
- `K` : Use K to show documentation in preview window
1171+
- `,` `rn` : Symbol renaming
1172+
- `Ctrl` `f`/`b`: Scroll float windows/popups
1173+
- `<Space>` `e` : Show all coc extensions
1174+
- `<Space>` `c` : Show all coc commands
1175+
- `<Space>` `s` : Show all completion sources of the current file type
1176+
- `<Space>` `p` : Resume latest coc list
1177+
1178+
##### <a name="SirVerultisnips"></a>[SirVer/ultisnips](https://github.com/SirVer/ultisnips) [](#Code-AutoCompletion)
1179+
1180+
UltiSnips is the ultimate solution for snippets in Vim.
1181+
1182+
##### <a name="honzavim-snippets"></a>[honza/vim-snippets](https://github.com/honza/vim-snippets) [](#Code-AutoCompletion)
1183+
1184+
- `snippets/*` : snippets using snipMate format
1185+
- `UltiSnips/*` : snippets using UltiSnips format
1186+
1187+
##### <a name="Shougoneco-vim"></a>[Shougo/neco-vim](https://github.com/Shougo/neco-vim) [](#Code-AutoCompletion)
1188+
1189+
The Vim Script completion source.
1190+
1191+
##### <a name="neoclidecoc-neco"></a>[neoclide/coc-neco](https://github.com/neoclide/coc-neco) [](#Code-AutoCompletion)
1192+
1193+
Vim completon source for coc.nvim using [neco-vim](https://github.com/Shougo/neco-vim).
1194+
1195+
##### <a name="RaimondidelimitMate"></a>[Raimondi/delimitMate](https://github.com/Raimondi/delimitMate) [](#Code-AutoCompletion)
1196+
1197+
Provides insert mode auto-completion for quotes, parens, brackets, etc.
1198+
11361199
### <a name="Put-Your-Own-Customization"></a>Put Your Own Customization [](#VimNeovim)
11371200

11381201
#### <a name="Add-More-Plugins"></a>Add More Plugins [](#Put-your-own-customization)

0 commit comments

Comments
 (0)