AGENTS.md · VSCodeVim/Vim
AGENTS.md from VSCodeVim/Vim: 59 lines covering Build & Test, Architecture, Conventions, References.
Template by VSCodeVim
Chalk Labs
Need help deploying AGENTS.md · VSCodeVim/Vim?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/VSCodeVim/Vim/master/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documentation
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 59 lines
- File
AGENTS.md
Sections
- Build & Test
- Architecture
- Conventions
- References
First lines (shown under the repo's MIT license)
# VSCodeVim — Agent Instructions
VSCodeVim is a VS Code extension (TypeScript) that emulates Vim modal editing. It targets both desktop and web VS Code environments.
## Build & Test
```bash
yarn build-dev # Fast dev build
yarn build # Production build
yarn watch # Rebuild on file changes
yarn build-test && yarn test # Run tests locally (close all VS Code instances first)
npx gulp test # Run tests in Docker (preferred)
npx gulp test --grep <REGEX> # Run filtered tests in Docker
yarn lint # Check code style
yarn lint:fix # Auto-fix linting issues
yarn prettier # Format code
```
## Architecture
**Event flow:** Key press → `extension.ts` → `ModeHandler.handleKeyEvent()` → action matching → `runAction()` → `updateView()`
Key directories:
- `src/actions/` — All command/motion/operator implementations; large consolidated files (e.g. `insert.ts`, `search.ts`) are intentional
- `src/actions/plugins/` — Emulated Vim plugins (easymotion, surround, sneak, commentary, etc.)
- `src/mode/modeHandler.ts` — Central state machine; one instance per open editor
- `src/state/vimState.ts` — Per-editor state (cursor, registers, mode, history)
- `src/state/recordedState.ts` — Transient state for the current operation; resets after each action
- `src/cmd_line/` — Ex command (`:`) parsing and execution
- `src/configuration/` — Settings loading and validation
- `src/neovim/` — Optional Neovim process integration for Ex commands
- `src/platform/node/` and `src/platform/browser/` — Platform-specific abstractions
- `test/` — Mirrors `src/` structure; uses Mocha + Sinon + `@vscode/test-electron`
**Three action base classes:**
- `BaseMovement` — Updates cursor only; returns `Position` or `IMovement` (start+end for text objects)
- `BaseCommand` — Modifies `VimState` beyond cursor movement
- `BaseOperator` — Combines with a movement (e.g. `d{motion}`, `c{motion}`)
## Conventions
- TypeScript `strict: true` + `noImplicitOverride: true` — always use the `override` keyword when overriding parent methods
- `IMovement` interface (not just `Position`) is required when a motion needs to return a range (e.g. text objects like `aw`, `i{`)
- Platform abstraction via `/src/platform/` — never call Node.js APIs directly; use the abstraction layer so web VS Code works
- Settings precedence: Ex-commands → user/workspace VS Code settings → defaults
- `.vimrc` support is remaps-only — no full Vimscript execution
- Actions are registered by decorating classes; see existing action files for the pattern
## References
- [CONTRIBUTING.md](.github/CONTRIBUTING.md) — Setup, architecture deep-dive, release process
- [README.md](README.md) — All supported settings, emulated plugins, keybindings
- `gulpfile.js` — Build/test/release automation tasks
- `package.json` — Extension manifest, all configuration schema definitions (40+ settings)Signals
- Stars
- 15,226
- Forks
- 1,469
- Open issues
- 1,809
- Last commit (this folder)
- May 26, 2026 (5 months ago)
- Last release
- Dec 14, 2025 (10 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/VSCodeVim/Vim
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get AGENTS.md · VSCodeVim/Vim running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
AGENTS.md · VSCodeVim/Vim. Agent Mart. https://agentmart.dev/templates/vscodevim-vim-agents-md (last updated 2026-10-24)