Skills2026年4月11日·1 分钟阅读

Helix — A Post-Modern Modal Text Editor

Helix is a post-modern modal text editor inspired by Kakoune. Written in Rust with batteries-included defaults: Tree-sitter, LSP, multi-cursor, selection-first editing, and beautiful themes. Zero-config replacement for Vim for most users.

Agent 就绪

先审查再安装

这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。

Needs Confirmation · 66/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
step-1.md
先审查命令
npx -y tokrepo@latest install 6ed079cf-35cb-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run,确认写入项后再运行此命令。

TL;DR
Helix is a Rust modal editor with Tree-sitter, LSP, and multi-cursor editing out of the box.
§01

What it is

Helix is a post-modern modal text editor inspired by Kakoune. Written in Rust with batteries-included defaults: Tree-sitter for syntax highlighting and structural editing, LSP for code intelligence, multi-cursor editing, and a selection-first editing model.

Helix targets developers who want a terminal-based editor with modern features but without the plugin management overhead of Vim or Neovim. It works on Linux, macOS, and Windows with zero configuration needed for most programming languages.

§02

How it saves time or tokens

Helix eliminates the setup time that Vim and Neovim require. Tree-sitter grammars and LSP configurations ship with the editor. You get syntax highlighting, code completion, go-to-definition, and diagnostics immediately after installing. The selection-first model (select text, then act on it) provides visual feedback before making changes, reducing edit errors. Multi-cursor support handles repetitive edits that would require macros in Vim.

§03

How to use

  1. Install Helix:
brew install helix              # macOS
sudo apt install helix           # Debian/Ubuntu
cargo install --locked helix-term  # From source
  1. Open a file:
hx file.rs
  1. Configure in ~/.config/helix/config.toml:
theme = 'onedark'

[editor]
line-number = 'relative'
cursorline = true
auto-format = true

[editor.cursor-shape]
insert = 'bar'
normal = 'block'
select = 'underline'
§04

Example

Common Helix keybindings compared to Vim:

# Selection-first editing model
# In Vim: d3w (delete 3 words) - action first
# In Helix: 3w then d (select 3 words, then delete) - select first

# Multi-cursor workflow
C         # Add cursor below
Alt-C     # Add cursor above
s         # Select matches within selection
&         # Align cursors

# Structural editing with Tree-sitter
Alt-o     # Expand selection to parent syntax node
Alt-i     # Shrink selection to child syntax node
Alt-n     # Select next sibling syntax node
Alt-p     # Select previous sibling syntax node

# LSP actions (zero config needed)
space-a   # Code actions
gd        # Go to definition
space-r   # Rename symbol
space-k   # Hover documentation
§05

Related on TokRepo

§06

Common pitfalls

  • Muscle memory from Vim does not transfer directly. Helix uses a selection-first model (select then act) instead of Vim's action-first model (act then motion). Give yourself a few days to adapt.
  • Not all LSP servers auto-install. Check hx --health to see which languages have LSP support configured and install missing language servers manually.
  • Helix does not support a plugin system yet. If you rely on specific Vim plugins, evaluate whether Helix's built-in features cover your needs before switching.

常见问题

How does Helix differ from Vim?+

Helix uses a selection-first editing model inspired by Kakoune: you select text first, then apply an action. Vim uses action-first: you specify the action, then the motion. Helix also ships with Tree-sitter and LSP built in, while Vim requires plugins.

Does Helix support plugins?+

Not yet. Helix includes many features that require plugins in other editors (Tree-sitter, LSP, multi-cursor, file picker, fuzzy finder). A plugin system is planned but not implemented as of the current version.

What languages does Helix support out of the box?+

Helix ships with Tree-sitter grammars for 150+ languages and LSP configuration for most popular languages. Run hx --health to check support status for specific languages.

Can Helix replace Neovim?+

For many users, yes. Helix provides syntax highlighting, code intelligence, multi-cursor, and a file picker without any configuration. If you rely heavily on Neovim plugins (telescope, nvim-cmp, etc.), evaluate whether Helix's built-ins cover your workflow.

Is Helix fast?+

Yes. Written in Rust, Helix starts instantly and handles large files efficiently. Tree-sitter provides incremental parsing, so syntax highlighting stays fast even in files with thousands of lines.

引用来源 (3)

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产