Expand description
Core (non‑plugin) keymaps. Keymap helpers and expr RHS generators.
Provides keymaps.dict() offering bulk keymap setup (set_all) plus smart editing helpers.
Core mappings target Normal / Visual / Operator modes; failures in individual definitions are
logged without aborting subsequent mappings.
Constants§
- NORMAL_
ESC - RHS used for the normal-mode
<Esc>mapping (clear search + empty echo). - NVOP_
MODE 🔒 - NV_MODE 🔒
Functions§
- apply_
on_ 🔒current_ line_ or_ unwrap - Apply a closure to the current line or fall back to
default. - default_
opts - Build the default [
SetKeymapOpts]: silent + non-recursive. - dict
- [
Dictionary] of keymap helpers and expr RHS generators. - set
- Set a keymap for each provided [
Mode]. - set_all 🔒
- Sets the core (non‑plugin) keymaps ported from the Lua
M.setupfunction. - smart_
dd_ 🔒no_ yank_ empty_ line - Return the RHS for a smart
ddmapping that skips yanking blank lines. - smart_
ident_ 🔒on_ blank_ line - Return the RHS for a smart normal-mode
imapping. - visual_
esc 🔒 - Return the RHS for a visual-mode
<Esc>expr mapping that reselects the visual range (direction aware) and then appliesNORMAL_ESC.