Vim Mode
Full vim-style editing in the terminal input.
Overview
A complete vim-mode state machine for the REPL input, supporting INSERT and NORMAL modes with operators, motions, text objects, count prefixes, and dot-repeat.
State Machine
Plain text
┌─────────────────────────────────────┐
│ INSERT MODE │
│ │
│ - Tracks inserted text (dot-repeat) │
│ - Normal typing │
│ - Press Escape → NORMAL MODE │
└──────────────┬──────────────────────┘
│ Escape
▼
┌─────────────────────────────────────┐
│ NORMAL MODE │
│ │
│ idle → operator → motion │
│ → text object │
│ → find motion │
└─────────────────────────────────────┘