Bindable action reference
Development reference · View source
Every action name keys.bind accepts, the modes it may be bound in, and the
optional step fields it takes. How to write bindings with these names is in
Custom key bindings
; :help key-actions shows the
same tables inside the editor.
The four field columns say what each step field accepts for that action. A step that sets a field the action does not accept is rejected when the configuration loads:
| Column | Field | Values in the table |
|---|---|---|
count | count: inherit, none, or 1–999999 | repeats runs the action that many times; address or extent reads the count as a line, position, or size; — accepts no count. |
register | register: inherit, none, or a character | yes reads or writes the selected register; — uses none. |
extend | extend: true or false | yes is a motion that can extend from the anchor or move a caret for this step; — cannot. |
arg | {action: name, arg: text} | What the argument supplies: one or two operand characters, a search pattern, literal text, a delimiter, a path, a mode name, or palette text. — takes no argument. |
The extend column describes ordinary text buffers. Bindings under
directory-tree and session-manager reject extend, and media accepts it
only for the arrow motions (move-left, move-right, move-up, move-down,
media-move-up and media-move-down).
keep-count and keep-register apply only to mode-enter. See
Per-step count, register and extension
for how a step consumes or reuses the pending prefix, and the
Action contracts
table below for each action’s effects,
operands and buffer-type differences.
Regenerate the block below with cargo run --example action_reference.
Use these names in keys.bind. Modes are independent. Position is any when another
action may follow, last when none may, and last unless arg when an arg supplying the prompt input lifts that limit. Counts go to the first accepting step in every binding. If none accepts a count,
the count is dropped silently and the binding runs. Plugin bindings use plugins[].bindings.
In this section
- Application actions
- Editing actions
- Movement actions
- Selection actions
- Syntax actions
- Search actions
- View actions
- File actions
- Git actions
- Window actions
- Language actions
- Clipboard actions
- Register actions
- Configuration actions
- Terminal actions
- Help actions
- Colon commands
- Scoped actions
- Action contracts
- Condition contracts