@@ -316,7 +316,7 @@ Mappings in the style of [vim-unimpaired](https://github.com/tpope/vim-unimpaire
316
316
| ` [space ` | Add newline above | ` add_newline_above ` |
317
317
| ` ]space ` | Add newline below | ` add_newline_below ` |
318
318
319
- ## Insert Mode
319
+ ## Insert mode
320
320
321
321
Insert mode bindings are somewhat minimal by default. Helix is designed to
322
322
be a modal editor, and this is reflected in the user experience and internal
@@ -325,45 +325,33 @@ escaping from insert mode to normal mode. For this reason, new users are
325
325
strongly encouraged to learn the modal editing paradigm to get the smoothest
326
326
experience.
327
327
328
- | Key | Description | Command |
329
- | ----- | ----------- | ------- |
330
- | ` Escape ` | Switch to normal mode | ` normal_mode ` |
331
- | ` Ctrl-x ` | Autocomplete | ` completion ` |
332
- | ` Ctrl-r ` | Insert a register content | ` insert_register ` |
333
- | ` Ctrl-w ` , ` Alt-Backspace ` , ` Ctrl-Backspace ` | Delete previous word | ` delete_word_backward ` |
334
- | ` Alt-d ` , ` Alt-Delete ` , ` Ctrl-Delete ` | Delete next word | ` delete_word_forward ` |
335
- | ` Ctrl-u ` | Delete to start of line | ` kill_to_line_start ` |
336
- | ` Ctrl-k ` | Delete to end of line | ` kill_to_line_end ` |
337
- | ` Ctrl-j ` , ` Enter ` | Insert new line | ` insert_newline ` |
338
- | ` Backspace ` , ` Ctrl-h ` | Delete previous char | ` delete_char_backward ` |
339
- | ` Delete ` , ` Ctrl-d ` | Delete next char | ` delete_char_forward ` |
340
-
341
- However, if you really want navigation in insert mode, this is supported. An
342
- example config that gives the ability to use arrow keys while still in insert
343
- mode:
344
-
345
- ``` toml
346
- [keys .insert ]
347
- "up" = " move_line_up"
348
- "down" = " move_line_down"
349
- "left" = " move_char_left"
350
- "right" = " move_char_right"
351
- "C-b" = " move_char_left"
352
- "C-f" = " move_char_right"
353
- "A-b" = " move_prev_word_end"
354
- "C-left" = " move_prev_word_end"
355
- "A-f" = " move_next_word_start"
356
- "C-right" = " move_next_word_start"
357
- "A-<" = " goto_file_start"
358
- "A->" = " goto_file_end"
359
- "pageup" = " page_up"
360
- "pagedown" = " page_down"
361
- "home" = " goto_line_start"
362
- "C-a" = " goto_line_start"
363
- "end" = " goto_line_end_newline"
364
- "C-e" = " goto_line_end_newline"
365
- "A-left" = " goto_line_start"
366
- ```
328
+ | Key | Description | Command |
329
+ | ----- | ----------- | ------- |
330
+ | ` Escape ` | Switch to normal mode | ` normal_mode ` |
331
+ | ` Ctrl-s ` | Commit undo checkpoint | ` commit_undo_checkpoint ` |
332
+ | ` Ctrl-x ` | Autocomplete | ` completion ` |
333
+ | ` Ctrl-r ` | Insert a register content | ` insert_register ` |
334
+ | ` Ctrl-w ` , ` Alt-Backspace ` | Delete previous word | ` delete_word_backward ` |
335
+ | ` Alt-d ` , ` Alt-Delete ` | Delete next word | ` delete_word_forward ` |
336
+ | ` Ctrl-u ` | Delete to start of line | ` kill_to_line_start ` |
337
+ | ` Ctrl-k ` | Delete to end of line | ` kill_to_line_end ` |
338
+ | ` Ctrl-h ` , ` Backspace ` | Delete previous char | ` delete_char_backward ` |
339
+ | ` Ctrl-d ` , ` Delete ` | Delete next char | ` delete_char_forward ` |
340
+ | ` Ctrl-j ` , ` Enter ` | Insert new line | ` insert_newline ` |
341
+
342
+ These keys are not recommended, but are included for new users less familiar
343
+ with modal editors.
344
+
345
+ | Key | Description | Command |
346
+ | ----- | ----------- | ------- |
347
+ | ` Up ` | Move to previous line | ` move_line_up ` |
348
+ | ` Down ` | Move to next line | ` move_line_down ` |
349
+ | ` Left ` | Backward a char | ` move_char_left ` |
350
+ | ` Right ` | Forward a char | ` move_char_right ` |
351
+ | ` PageUp ` | Move one page up | ` page_up ` |
352
+ | ` PageDown ` | Move one page down | ` page_down ` |
353
+ | ` Home ` | Move to line start | ` goto_line_start ` |
354
+ | ` End ` | Move to line end | ` goto_line_end_newline ` |
367
355
368
356
## Select / extend mode
369
357
0 commit comments