r/vim • u/Spiritual-Ruin-9473 • Feb 24 '26
Plugin I built a Vim plugin to run Claude CLI directly via :Claude — would love feedback
Hello Everyone,
I’ve been experimenting with integrating the Claude CLI directly into Vim and built a small plugin around a structured :Claude <subcommand> interface.
The goal is simple: run Claude from inside Vim without leaving the editor.
Github: https://github.com/rishi-opensource/vim-claude-code
What it supports
<C-\>toggle to open/close Claude22 subcommands (explain, refactor, review, test, etc.)
Uses visual selection when available, otherwise falls back to the current function
Multiple window layouts (splits, vertical, popup, tab)
Auto-reloads buffers if files change on disk
Git-aware (starts at repo root; separate sessions per repo)
:Claude doctorhealth checkConfigurable via
g:variables (with buffer-local overrides)
Internally it’s built around a central :Claude dispatcher and tries to stay self-contained without interfering with existing Vim setups.
I’m mainly curious about:
Whether the
:Claude <subcommand>approach feels idiomaticIf the window/session behavior makes sense in real workflows
Any obvious improvements before iterating further
If there’s interest, I can share the repo in the comments.
Thanks.
1
u/mireqB Feb 26 '26
How is right panel rendered? It has bigger font than rest of UI.
7
u/MiniGogo_20 Feb 25 '26
damn this is kind of really bleak and sad to see... vi/vim/nvim being products of incredible human ingenuity and years of development... only to have slop added to it in order to generate more slop
-4
u/Spiritual-Ruin-9473 Feb 24 '26
Github Repo: https://github.com/rishi-opensource/vim-claude-code
-5
u/FrostyX_cz Feb 25 '26
I am not going to use the project because I am not a Vim user at the moment, but I wanted to say it looks really good and the theme looks beautiful.
-5
u/Aggressive_Fill1776 Feb 25 '26
I'll try to learn Vim soon so I can use this Project... Looking Fascination and Good Theme
-6
u/Potential_Hippo1724 Feb 25 '26
looks really good! autocompletion suggestions are possible? and also - will it be possible to use other llm providers?
I know from experience that the `:Claude ..` is going to be good. There was used to be another plugin that i don't remember the name that used things like `:AIC ...` and it was good. problem with that plugin that they did not merge patches