Skip to main content

API Reference

Complete API reference for every duck-vim module.

Modules

duck-vim is split into independent modules. Each module has a single responsibility and can be imported separately.

ModuleImport pathDescription
Platform@gentleduck/vim/platformOS detection and Mod key resolution
Parser@gentleduck/vim/parserParse, normalize, and validate key binding strings
Matcher@gentleduck/vim/matcherMatch keyboard events against parsed bindings
Command@gentleduck/vim/commandRegistry and KeyHandler for managing shortcuts
Sequence@gentleduck/vim/sequenceMulti-step sequence matching
Recorder@gentleduck/vim/recorderRecord key combinations for settings UIs
Format@gentleduck/vim/formatFormat bindings for display
React@gentleduck/vim/reactProvider, hooks, and context