Skip to content

Commit

Permalink
doc: add example to disable arrow keys in insert mode (helix-editor#4088
Browse files Browse the repository at this point in the history
)
  • Loading branch information
poliorcetics authored and pathwave committed Nov 4, 2022
1 parent 71c9ff0 commit 20c9ec3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions book/src/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,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
Expand Down

0 comments on commit 20c9ec3

Please sign in to comment.