1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/helix.md

38 lines
823 B
Markdown
Raw Normal View History

# helix
2021-10-07 09:41:05 +02:00
> Helix, A post-modern text editor, provides several modes for different kinds of text manipulation.
> Pressing `<i>` enters insert mode. `<Esc>` enters normal mode, which enables the use of Helix commands.
> More information: <https://helix-editor.com>.
2021-10-07 09:41:05 +02:00
- Open a file:
`helix {{path/to/file}}`
- Open files and show them one next each other:
`helix --vsplit {{path/to/file1 path/to/file2}}`
- Show the tutorial to learn Helix (or access it within Helix by pressing `<Esc>` and typing `<:>tutor<Enter>`):
`helix --tutor`
2021-10-07 09:41:05 +02:00
- Change the Helix theme:
`<:>theme {{theme_name}}`
2021-10-07 09:41:05 +02:00
- Save and Quit:
`<:>wq<Enter>`
2021-10-07 09:41:05 +02:00
- Force-quit without saving:
`<:>q!<Enter>`
2021-10-07 09:41:05 +02:00
- Undo the last operation:
`<u>`
2021-10-07 09:41:05 +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
`</>{{search_pattern}}<Enter>`