1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 05:42:09 +02:00

helix: add page (#6653)

This commit is contained in:
Alwin Lohrie 2021-10-07 09:41:05 +02:00 committed by GitHub
parent d63065b882
commit 99f4a7f106
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

33
pages/common/helix.md Normal file
View file

@ -0,0 +1,33 @@
# vim
> 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`