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
Igor Támara 856427a842
helix: add example to open multiple files and tutorial (#14675)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2024-11-06 19:56:21 +01:00

37 lines
798 B
Markdown

# helix
> 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>.
- 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`):
`helix --tutor`
- Change the Helix theme:
`:theme {{theme_name}}`
- Save and Quit:
`:wq<Enter>`
- Force-quit without saving:
`:q!<Enter>`
- Undo the last operation:
`u`
- Search for a pattern in the file (press `n`/`N` to go to next/previous match):
`/{{search_pattern}}<Enter>`