2022-07-23 13:23:58 -03:00
|
|
|
# helix
|
2021-10-07 09:41:05 +02:00
|
|
|
|
|
|
|
> Helix, A post-modern text editor, provides several modes for different kinds of text manipulation.
|
2025-03-09 03:23:24 +02:00
|
|
|
> Pressing `<i>` enters insert mode. `<Esc>` enters normal mode, which enables the use of Helix commands.
|
2022-07-23 13:23:58 -03:00
|
|
|
> More information: <https://helix-editor.com>.
|
2021-10-07 09:41:05 +02:00
|
|
|
|
|
|
|
- Open a file:
|
|
|
|
|
|
|
|
`helix {{path/to/file}}`
|
|
|
|
|
2024-11-06 13:56:21 -05:00
|
|
|
- Open files and show them one next each other:
|
|
|
|
|
|
|
|
`helix --vsplit {{path/to/file1 path/to/file2}}`
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
- Show the tutorial to learn Helix (or access it within Helix by pressing `<Esc>` and typing `<:>tutor<Enter>`):
|
2024-11-06 13:56:21 -05:00
|
|
|
|
|
|
|
`helix --tutor`
|
|
|
|
|
2021-10-07 09:41:05 +02:00
|
|
|
- Change the Helix theme:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<:>theme {{theme_name}}`
|
2021-10-07 09:41:05 +02:00
|
|
|
|
|
|
|
- Save and Quit:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<:>wq<Enter>`
|
2021-10-07 09:41:05 +02:00
|
|
|
|
|
|
|
- Force-quit without saving:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<:>q!<Enter>`
|
2021-10-07 09:41:05 +02:00
|
|
|
|
|
|
|
- Undo the last operation:
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`<u>`
|
2021-10-07 09:41:05 +02:00
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
- Search for a pattern in the file (press `<n>`/`<N>` to go to next/previous match):
|
2021-10-07 09:41:05 +02:00
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
`</>{{search_pattern}}<Enter>`
|