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

38 lines
778 B
Markdown
Raw Normal View History

# helix
> Helix,一个后现代的文本编辑器,为不同类型的文本操作提供了几种模式。
> 按 `i` 进入插入模式。按 `<Esc>` 进入正常模式,并且可以使用 Helix 命令。
> 更多信息:<https://helix-editor.com>.
- 打开文件:
`helix {{路径/到/文件}}`
- 并排打开多个文件:
`helix --vsplit {{路径/到/文件1 路径/到/文件2}}`
- 显示 Helix 教程(也可以在 Helix 中按 `<Esc>` 后输入 `:tutor` 访问):
`helix --tutor`
- 更改 Helix 主题:
`:theme {{主题名称}}`
- 保存并退出:
`:wq<Enter>`
- 强制退出并不保存:
`:q!<Enter>`
- 撤销上次操作:
`u`
- 搜索文件中的关键字(按 `n`/`N` 前往下一个/上一个匹配):
`/{{搜索模式}}<Enter>`