Skip to content

Commit dd8fcd7

Browse files
poliorceticsShekhinah Memmel
authored and
Shekhinah Memmel
committed
doc: add example to disable arrow keys in insert mode (helix-editor#4088)
1 parent d027361 commit dd8fcd7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

book/src/keymap.md

+15
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,21 @@ with modal editors.
353353
| `Home` | Move to line start | `goto_line_start` |
354354
| `End` | Move to line end | `goto_line_end_newline` |
355355

356+
If you want to disable them in insert mode as you become more comfortable with modal editing, you can use
357+
the following in your `config.toml`:
358+
359+
```toml
360+
[keys.insert]
361+
up = "no_op"
362+
down = "no_op"
363+
left = "no_op"
364+
right = "no_op"
365+
pageup = "no_op"
366+
pagedown = "no_op"
367+
home = "no_op"
368+
end = "no_op"
369+
```
370+
356371
## Select / extend mode
357372

358373
This mode echoes Normal mode, but changes any movements to extend

0 commit comments

Comments
 (0)