Vim plugin for AI pair programming with LLM integration
Top 74.9% on sourcepulse
This plugin integrates Anthropic's Claude LLM into Vim and Neovim for AI-assisted pair programming. It targets developers seeking a chat-centric, collaborative coding experience within their editor, offering direct code modification and contextual understanding of open buffers, unlike traditional code completion tools.
How It Works
The plugin provides two primary interaction modes: ClaudeImplement
for targeted code modifications and ClaudeChat
for general discussion and instruction. ClaudeImplement
allows users to select code blocks and issue instructions, with Claude proposing changes via Vim's diff mode for review. ClaudeChat
enables freeform conversation, with Claude having access to all open buffers. Claude can execute tools, including shell commands and Python expressions, and browse the web for information, all with user consent and review.
Quick Start & Requirements
~/.vim/pack/pasky/start/claude.vim
or ~/.config/nvim/pack/pasky/start/claude.vim
).elinks
or felinks
for web access.g:claude_api_key
in your .vimrc
.Highlighted Details
Maintenance & Community
pasky
) and Twitter/X (@xpasky
).Licensing & Compatibility
Limitations & Caveats
This is early alpha software and is expected to evolve rapidly and potentially with breaking changes. The README notes that Claude Sonnet 3.5 may not be sufficient for completely autonomous complex tasks, requiring user oversight and feedback. Full chat history and buffer content are sent with each interaction, potentially consuming tokens rapidly and hitting daily limits.
2 months ago
1 day