Run a command provided by coc.nvim or contributed by extensions; use <tab> for name completion. Opens coc-list-commands when {name} isn't provided.
Reference Matrix
All 396 documented Vim commands, actions, mappings, functions, variables, autocmd events, and highlight groups from the current coc.nvim help file.
Source snapshot: coc.txt at 555f5cec · generated 2026-08-24
| Type | Identifier & Syntax | Description | Help Tag | Action |
|---|---|---|---|---|
| Command | :CocCommand [{name}] [{args}] ... | Run a command provided by coc.nvim or contributed by extensions; use <tab> for name completion. Opens coc-list-commands when {name} isn't provided. | :h :CocCommand | |
| Command | :CocConfig | Edit the user config file coc-settings.json in coc#util#get_config_home(). | :h :CocConfig | |
| Command | :CocDiagnostics [height] | Open Vim's location-list with diagnostics of the current buffer. The location list is automatically updated by default. When multiple location lists are opened for one buffer, only the first is automatically updated. | :h :CocDiagnostics | |
| Command | :CocDisable | Disable handling of Vim events; useful for debugging performance issues. | :h :CocDisable | |
| Command | :CocEnable | Enable handling of Vim events. | :h :CocEnable | |
| Command | Invoke default action for first item in the last {name} list. | :h :CocFirst | ||
| Command | Show version and log information in a split window; useful for submitting a bug report. | :h :CocInfo | ||
| Command | :CocInstall [{option}] {name} ... | Install one or more coc extensions. | :h :CocInstall | |
| Command | Invoke default action for last item in the last {name} list. | :h :CocLast | ||
| Command | Open the coc list of {source} (for the current jump locations). Example: `:CocList --normal location`. | :h :CocList | ||
| Command | :CocListCancel | Close the list; useful when the list isn't the current window. | :h :CocListCancel | |
| Command | :CocListResume [{name}] | Reopen the last opened list; input and cursor position are preserved. | :h :CocListResume | |
| Command | :CocLocalConfig | Edit or create .vim/coc-settings.json in current workspace folder. | :h :CocLocalConfig | |
| Command | Invoke the default action for the next item in the last {name} list. | :h :CocNext | ||
| Command | :CocOpenLog | Open log file of coc.nvim. | :h :CocOpenLog | |
| Command | :CocOutline | Invoke CocAction('showOutline') by notification. | :h :CocOutline | |
| Command | Invoke the default action for the previous item in the last {name} list. | :h :CocPrev | ||
| Command | :CocPrintErrors | Show errors from stderr of NodeJS process in a split window. | :h :CocPrintErrors | |
| Command | :CocRestart | Restart coc.nvim service. | :h :CocRestart | |
| Command | :CocSearch | Perform a search with ripgrep project page and open coc-refactor-buffer with the search results. | :h :CocSearch | |
| Command | Start the coc.nvim server; does nothing if the server is already started. | :h :CocStart | ||
| Command | :CocUninstall {name} | Uninstall an extension; use <tab> to complete the extension name. | :h :CocUninstall | |
| Command | :CocUpdate | Update all coc extensions to the latest version. | :h :CocUpdate | |
| Command | :CocUpdateSync | Blocking version of :CocUpdate for coc extensions. | :h :CocUpdateSync | |
| Command | Watch the loaded [extension] for reload on file change; use <tab> to complete the extension id. | :h :CocWatch |
Edit the user config file coc-settings.json in coc#util#get_config_home().
Open Vim's location-list with diagnostics of the current buffer. The location list is automatically updated by default. When multiple location lists are opened for one buffer, only the first is automatically updated.
Disable handling of Vim events; useful for debugging performance issues.
Enable handling of Vim events.
Invoke default action for first item in the last {name} list.
Show version and log information in a split window; useful for submitting a bug report.
Install one or more coc extensions.
Invoke default action for last item in the last {name} list.
Open the coc list of {source} (for the current jump locations). Example: `:CocList --normal location`.
Close the list; useful when the list isn't the current window.
Reopen the last opened list; input and cursor position are preserved.
Edit or create .vim/coc-settings.json in current workspace folder.
Invoke the default action for the next item in the last {name} list.
Open log file of coc.nvim.
Invoke CocAction('showOutline') by notification.
Invoke the default action for the previous item in the last {name} list.
Show errors from stderr of NodeJS process in a split window.
Restart coc.nvim service.
Perform a search with ripgrep project page and open coc-refactor-buffer with the search results.
Start the coc.nvim server; does nothing if the server is already started.
Uninstall an extension; use <tab> to complete the extension name.
Update all coc extensions to the latest version.
Blocking version of :CocUpdate for coc extensions.
Watch the loaded [extension] for reload on file change; use <tab> to complete the extension id.