Skip to content

About

Vim and Neovim integration for the Nodecode AI coding agent CLI - https://nodecode.ai

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodecode.vim

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.

Features

  • 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/file or visual @path/to/file#L10-L24 references 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): verify nodecode --version and terminal capability in one command.

Prerequisites

Install the Nodecode CLI:

Linux and macOS:

curl -fsSL https://nodecode.ai/install.sh | sh

Windows (PowerShell):

irm https://nodecode.ai/install.ps1 | iex

Nodecode 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.

Installation

Vim 8+ native packages

git clone https://github.com/nodecode-ai/nodecode-vim ~/.vim/pack/plugins/start/nodecode-vim

Then run :helptags ~/.vim/pack/plugins/start/nodecode-vim/doc.

vim-plug

Plug 'nodecode-ai/nodecode-vim'

lazy.nvim

{ "nodecode-ai/nodecode-vim" }

Vim.org archive

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.

Configuration

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.

Running Tests

vim --clean -Nu NONE -es -S tests/run_tests.vim
nvim --clean --headless -S tests/run_tests.vim

Links

License

MIT License - Copyright (c) 2026 Foresight Labs.

About

Vim and Neovim integration for the Nodecode AI coding agent CLI - https://nodecode.ai

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages