How kyx0r/nextvi works
Nextvi is a modal terminal text editor. The principal workflow starts with a user invoking vi on files, then uses the vi command loop for editing and ex commands, stores text and edit history in buffers, and renders the result through the terminal. The graph also preserves documented highlighting, macros, keymaps, and bidirectional UTF-8 support. The source index establishes vi.c’s dependencies; several finer-grained links rely on excerpts or README descriptions because much of the implementation was not sampled.
Main entry points: vi.c Vi command loop · ren.c Screen and syntax rendering · ex.c Ex commands · led.c Prompt and line rendering
Components 14
Editor interaction
- Vi command loop
vi.c - Ex commands
ex.c - Keymaps
kmap.h
Editing and files
- Options and highlighting rules
conf.c - Text buffers and history
lbuf.c - Regular expressions
regex.c
Display and text
Language support
Other components
- User
- Terminal
- Files
Connections 18
- User → Vi command loop: invokes
README - Vi command loop → Terminal input and output: reads and writes
vi.c - Terminal input and output → Terminal: communicates
- Vi command loop → Ex commands: dispatches commands
vi.c - Vi command loop → Text buffers and history: edits text
vi.c - Ex commands → Text buffers and history: reads and updates
ex.c - Ex commands → Files: reads and writes
ex.c - Vi command loop → Keymaps: uses mappings
- Vi command loop → Options and highlighting rules: uses options
vi.c - Vi command loop → Prompt and line rendering: prompts
vi.c - Vi command loop → Screen and syntax rendering: renders screen
vi.c - Prompt and line rendering → Screen and syntax rendering: renders text
led.c - Prompt and line rendering → Terminal input and output: reads input
led.c - Screen and syntax rendering → Regular expressions: matches highlight patterns
README - Screen and syntax rendering → Options and highlighting rules: uses highlight rules
conf.c - Screen and syntax rendering → Unicode handling: measures and shapes text
README - Vi command loop → Unicode handling: handles UTF-8
README - Shared editor definitions → Text buffers and history: declares buffer API
vi.h