Vim 8.1+ and Neovim 0.8+ integration for Nodecode, the open-source AI coding agent written in Common Lisp (SBCL).
Zero runtime dependencies beyond the nodecode CLI. Uses pure Vimscript with native terminal support (term_start in Vim, termopen in Neovim) and lazy-loaded autoload/ functions so editor startup stays instant.
- Toggleable terminal split (
:Nodecode,:NodecodeToggle): open, focus, hide, and reopen your live Nodecode session in a vertical split, horizontal split, tab, or current window. - Session continuity (
:NodecodeContinue,:NodecodeResume): jump back into the newest session in the current folder (nodecode -c) or pick from/sessions(nodecode resume). - File and line-range context (
:NodecodeSend,:NodecodeAsk): send@path/to/fileor visual@path/to/file#L10-L24references straight into your running Nodecode session (or launch a new session with@file -- prompt). - Quickfix diagnostics (
:NodecodeQuickfix): collect errors and warnings from Vim's quickfix or location list and hand them to Nodecode to fix. - Local Web UI (
:NodecodeWeb): open the running organism's local browser interface (nodecode web --print, loopback URL validated). - Environment check (
:NodecodeCheck): verifynodecode --versionand terminal capability in one command.
Install the Nodecode CLI:
Linux and macOS:
curl -fsSL https://nodecode.ai/install.sh | shWindows (PowerShell):
irm https://nodecode.ai/install.ps1 | iexNodecode works locally with your own API keys or local servers (Ollama, vLLM, llama.cpp), or optionally with Nodecode Cyber v1 with architectural Zero Data Retention.
git clone https://github.com/nodecode-ai/nodecode-vim ~/.vim/pack/plugins/start/nodecode-vimThen run :helptags ~/.vim/pack/plugins/start/nodecode-vim/doc.
Plug 'nodecode-ai/nodecode-vim'{ "nodecode-ai/nodecode-vim" }Download nodecode-vim-0.1.1.zip from vim.org (script #6233), extract it into ~/.vim/ (or ~/.vim/pack/plugins/start/nodecode-vim/), and run :helptags ~/.vim/doc.
All options are optional:
let g:nodecode_bin = 'nodecode'
let g:nodecode_profile = ''
let g:nodecode_provider = ''
let g:nodecode_model = '' " e.g. 'nodecode-cyber-v1'
let g:nodecode_effort = '' " e.g. 'high'
let g:nodecode_split = 'vertical' " 'vertical', 'horizontal', 'tab', 'current'
let g:nodecode_split_size = 0
let g:nodecode_extra_args = []
nmap <leader>nc <Plug>(nodecode-toggle)
nmap <leader>ns <Plug>(nodecode-send)
xmap <leader>ns <Plug>(nodecode-send)
nmap <leader>na <Plug>(nodecode-ask)
xmap <leader>na <Plug>(nodecode-ask)
nmap <leader>nq <Plug>(nodecode-quickfix)
nmap <leader>nr <Plug>(nodecode-continue)See :help nodecode for full command and option reference.
vim --clean -Nu NONE -es -S tests/run_tests.vim
nvim --clean --headless -S tests/run_tests.vim- Vim.org listing: vim.org (script #6233)
- Install guide: nodecode.ai/docs/install
- Homepage: nodecode.ai
- Documentation: nodecode.ai/docs
- Cyber v1 API: nodecode.ai/docs/cyber
- Zero Data Retention: nodecode.ai/zero-data-retention
- Core Agent (MIT): github.com/nodecode-ai/nodecode
MIT License - Copyright (c) 2026 Foresight Labs.