Skip to content

Commit 8ecb962

Browse files
committed
Added docs
1 parent f28f654 commit 8ecb962

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

book/src/remapping.md

+18
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,23 @@ Ctrl, Shift and Alt modifiers are encoded respectively with the prefixes
7575

7676
Keys can be disabled by binding them to the `no_op` command.
7777

78+
To remove all default bindings, `unbind-default-keys = true` can be added to the top level configuration.
79+
80+
```toml
81+
unbind-default-keys = true
82+
83+
# Only these normal mode bindings will be used
84+
[keys.normal]
85+
n = "normal_mode"
86+
t = "goto_definition"
87+
88+
# remember to add bindings to return to normal mode
89+
[keys.select]
90+
esc = "normal_mode"
91+
92+
[keys.insert]
93+
esc = "normal_mode"
94+
```
95+
7896
A list of commands is available in the [Keymap](https://docs.helix-editor.com/keymap.html) documentation
7997
and in the source code at [`helix-term/src/commands.rs`](https://github.com/helix-editor/helix/blob/master/helix-term/src/commands.rs) at the invocation of `static_commands!` macro and the `TypableCommandList`.

0 commit comments

Comments
 (0)