diff options
author | Clément Delafargue | 2023-01-16 10:13:03 +0000 |
---|---|---|
committer | Michael Davis | 2023-01-16 16:02:15 +0000 |
commit | 425d7e5f1b67d2c1748b4b30091d88d1446aecc7 (patch) | |
tree | d19570cc0063b082c26da7763b4918d72d5cf28c /book | |
parent | 6f6334f3c65f66f72867e6500b3c4a76ed017dfe (diff) |
doc: add a note about nested bindings in key remapping
It was not clear (to me) that minor modes were configurable in the
keymap configuration.
Diffstat (limited to 'book')
-rw-r--r-- | book/src/remapping.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/book/src/remapping.md b/book/src/remapping.md index e89c6611..2eac8846 100644 --- a/book/src/remapping.md +++ b/book/src/remapping.md @@ -25,6 +25,9 @@ j = { k = "normal_mode" } # Maps `jk` to exit insert mode ``` > NOTE: Typable commands can also be remapped, remember to keep the `:` prefix to indicate it's a typable command. +> NOTE: Bindings can be nested, to create (or edit) minor modes: `g = { a = "code_action"}` adds a new entry to +> the `goto` mode. + Ctrl, Shift and Alt modifiers are encoded respectively with the prefixes `C-`, `S-` and `A-`. Special keys are encoded as follows: |