Skip to content

Commit ed5febf

Browse files
authored
doc: add example to disable arrow keys in insert mode (#4088)
1 parent 581fe5c commit ed5febf

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
@@ -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

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

0 commit comments

Comments
 (0)