Debian Codegraph @

book/src/usage.md

raw symbols SCIP
1 # Using Helix
2
3 For a full interactive introduction to Helix, refer to the
4 [tutor](https://github.com/helix-editor/helix/blob/master/runtime/tutor) which
5 can be accessed via the command `hx --tutor` or `:tutor`.
6
7 > 💡 Currently, not all functionality is fully documented, please refer to the
8 > [key mappings](./keymap.md) list.
9
10 ## Modes
11
12 Helix is a modal editor, meaning it has different modes for different tasks. The main modes are:
13
14 * [Normal mode](./keymap.md#normal-mode): For navigation and editing commands. This is the default mode.
15 * [Insert mode](./keymap.md#insert-mode): For typing text directly into the document. Access by typing `i` in normal mode.
16 * [Select/extend mode](./keymap.md#select--extend-mode): For making selections and performing operations on them. Access by typing `v` in normal mode.
17
18 ## Buffers
19
20 Buffers are in-memory representations of files. You can have multiple buffers open at once. Use [pickers](./pickers.md) or commands like `:buffer-next` and `:buffer-previous` to open buffers or switch between them.
21
22 ## Selection-first editing
23
24 Inspired by [Kakoune](http://kakoune.org/), Helix follows the `selection → action` model. This means that whatever you are going to act on (a word, a paragraph, a line, etc.) is selected first and the action itself (delete, change, yank, etc.) comes second. A cursor is simply a single width selection.
25
26 ## Multiple selections
27
28 Also inspired by Kakoune, multiple selections are a core mode of interaction in Helix. For example, the standard way of replacing multiple instances of a word is to first select all instances (so there is one selection per instance) and then use the change action (`c`) to edit them all at the same time.
29
30 ## Motions
31
32 Motions are commands that move the cursor or modify selections. They're used for navigation and text manipulation. Examples include `w` to move to the next word, or `f` to find a character. See the [Movement](./keymap.md#movement) section of the keymap for more motions.
33