on master help sign in
doc: add example to disable arrow keys in insert mode (#4088)
ed5febfPoliorcetics
book/src/keymap.md+15
@@ -351,6 +351,21 @@ with modal editors.
351| `Home` | Move to line start | `goto_line_start` |
351| `Home` | Move to line start | `goto_line_start` |
352| `End` | Move to line end | `goto_line_end_newline` |
352| `End` | Move to line end | `goto_line_end_newline` |
353
353
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+
354## Select / extend mode
369## Select / extend mode
355
370
356This mode echoes Normal mode, but changes any movements to extend
371This mode echoes Normal mode, but changes any movements to extend