1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:42:07 +02:00
tldr/pages/common/helix.md
Axel Navarro ad38933fbb
helix: fix command name, hx: add page (#8242)
* helix: fix command name

* Update helix.md

* Create hx.md
2022-07-24 00:23:58 +08:00

33 lines
608 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}}`
- 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>`
- Format the file:
`:format`