doc: add example to disable arrow keys in insert mode (#4088)
commited5febf4b35071b988f8999f841e05f1f26e8811
authorPoliorcetics <poliorcetics@users.noreply.github.com>
dateTue 4 Oct 2022, 16:40 (4 years ago)
parent581fe5c
book/src/keymap.md+15
@@ -351,6 +351,21 @@ with modal editors.
351351| `Home` | Move to line start | `goto_line_start` |
352352| `End` | Move to line end | `goto_line_end_newline` |
353353
354+If you want to disable them in insert mode as you become more comfortable with modal editing, you can use
355+the following in your `config.toml`:
356+
357+```toml
358+[keys.insert]
359+up = "no_op"
360+down = "no_op"
361+left = "no_op"
362+right = "no_op"
363+pageup = "no_op"
364+pagedown = "no_op"
365+home = "no_op"
366+end = "no_op"
367+```
368+
354369## Select / extend mode
355370
356371This mode echoes Normal mode, but changes any movements to extend