vim

by Erick Fuga · ★ 0 · updated 3 days ago

BandsPromptvalidates

0

A vim command line for Claude Code: :w and :e keep a draft per session, :q quits (! to force), and any other name runs that slash command, with Tab completion. Opened by the focus chord for the area above the prompt; drawn in the statusline mod's bar.

install vim

Install

/plugin marketplace add thefuga/claude-x
/plugin install vim@claude-x

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startclassic.SessionStartclassic.UserPromptSubmitturn.startturn.completeui.renderui.focus
API calls
$.clock.after$.clock.every$.clock.sleep$.command.list$.command.run$.prompt.fill$.prompt.read$.session.id$.session.root$.session.turns$.state.get$.state.set$.store.delete$.store.get$.store.set$.turn.abort$.ui.focus$.ui.log$.ui.resolve
Draws
AbovePrompt
Can see
classic hooks
Reach
level 2 of 3 other: $.prompt.readother: $.state.getother: $.state.setdrives Claudewrites the prompt boxpersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/thefuga/claude-x
Path in repo
mods/vim
Source commit
bd85bac the exact code the scan read
Author
Erick Fuga @thefuga
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from thefuga/claude-x

attachments

thefuga/claude-x

The draft's attachments as chips above the prompt: each pasted picture, pasted text, @-mentioned file or folder and, with the issues mod, @# issue, with a glyph for its type, its path and what it is, and a × to take it out of the draft.

★ 0Bands

issues

thefuga/claude-x

Finds the repository's GitHub issues as @# is typed in the prompt, as opencode.vim does: a list above the prompt filtered by number or title, picked with a click or Ctrl+X Tab, and each @#N sent with the issue for the model to read.

★ 0BandsPrompt

statusline

thefuga/claude-x

A vim-style status bar in the Claude Code footer: editor mode, permission mode, model, effort, git state, usage and cursor; numbers the draft's lines and keeps the prompt box taller.

★ 0BandsStatus lineReskins

stfu

thefuga/claude-x

Drops the whimsical word from the line that runs while Claude works and from the one that closes a turn, leaving the elapsed time, tokens and duration where Claude Code draws them.

★ 0Reskins

syntax

thefuga/claude-x

Colors the prompt's draft as it is typed: its markdown, the code in its fences, and in shell mode the command.

★ 0Prompt