aboutsummaryrefslogtreecommitdiff
path: root/book
diff options
context:
space:
mode:
authorPoliorcetics2022-10-04 14:40:51 +0000
committerGitHub2022-10-04 14:40:51 +0000
commited5febf4b35071b988f8999f841e05f1f26e8811 (patch)
tree3f60fc96d799720bde0eb652764b528bfc03e0b8 /book
parent581fe5c6754f7af4ad53f65227428bbbcd31be3c (diff)
doc: add example to disable arrow keys in insert mode (#4088)
Diffstat (limited to 'book')
-rw-r--r--book/src/keymap.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/book/src/keymap.md b/book/src/keymap.md
index 66602233..85110634 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -351,6 +351,21 @@ with modal editors.
| `Home` | Move to line start | `goto_line_start` |
| `End` | Move to line end | `goto_line_end_newline` |
+If you want to disable them in insert mode as you become more comfortable with modal editing, you can use
+the following in your `config.toml`:
+
+```toml
+[keys.insert]
+up = "no_op"
+down = "no_op"
+left = "no_op"
+right = "no_op"
+pageup = "no_op"
+pagedown = "no_op"
+home = "no_op"
+end = "no_op"
+```
+
## Select / extend mode
This mode echoes Normal mode, but changes any movements to extend