Back to browse
GitHub Repository

Claude CLI integration for Vim, enabling AI-powered coding workflows.

60 starsVim Script

Vim-Claude-code – Claude CLI integration for AI workflows inside Vim

by rishi-hn·Mar 2, 2026·1 point·0 comments

AI Analysis

●●SolidSolve My ProblemCozyShip It

22 Claude commands in Vim—good execution, but Cursor, Copilot already integrate better.

Strengths
  • 22 sub-commands covering real workflows (commit, refactor, test, explain) is comprehensive
  • Selection-aware with automatic function detection reduces context copy-paste friction
  • Modular architecture (git, workflow, terminal modules) shows thoughtful design for maintainability
Weaknesses
  • Direct competitor to Cursor and Continue plugin—both have native IDE integration and debugging
  • Terminal-based stdin/stdout limits interactive features like follow-up questions mid-edit
Target Audience

Vim/Neovim users, terminal-first developers, engineers already using Claude code assistant

Similar To

Continue (VS Code) · Cursor · Copilot Vim extension

Post Description

Hi HN,

I built vim-claude-code, a Vim/Neovim plugin that integrates Claude CLI directly into the editor to enable AI-assisted development workflows without leaving Vim.

The goal was not to build “chat inside Vim,” but to enhance real workflows developers already use.

Current features:

Generate and improve Git commit messages from diffs

Refactor selected code

Generate tests

Summarize code blocks

Send visual selections directly to Claude

Terminal-based integration (no background daemons)

Technically, the plugin follows standard Vim plugin architecture:

Lightweight plugin/ bootstrap

Lazy-loaded autoload/ modules

Modular command dispatcher

Terminal bridge to Claude CLI

Configurable keymaps

Separation of Git, workflow, and terminal logic

It works with both Vim and Neovim.

I’d appreciate feedback from the Vim community — especially around workflow improvements and architecture decisions.

Repo: https://github.com/rishi-opensource/vim-claude-code

Happy to answer questions.

Similar Projects