hjkl-vim
Vim modal state types and grammar primitives for the hjkl editor stack. Pre-1.0 churn.
Part of the hjkl monorepo — a vim-modal editor in Rust.
Provides the Mode enum used as the mode discriminator in hjkl-keymap's
generic Keymap<A, M>. Phase 2+ will land the vim FSM (transitions,
operator-pending resolution, count accumulation) here. For now the crate is pure
plumbing: a stable extraction point so the rest of the stack can depend on a
versioned crate rather than an in-tree enum.
Usage
[]
= "0.1"
use Mode;
// Mode satisfies hjkl_keymap::Mode via the blanket impl for
// Copy + Eq + Hash + Debug types.
let mode = Normal;
Documentation
Contributing
See the monorepo CONTRIBUTING guide.
License
MIT — see LICENSE.