Journal > A Month With Helix
Posted 2023-08-03
As mentioned in last month’s dispatch, inspired by a post from Tim Hårek, I’ve been using Helix exclusively for the last month. I’m using it right now to write this! It rips!
I’ve been a Vim user since ~2010 after moving away from TextMate. I’m rather proficient in it, though it’s an incredibly deep tool and there’s always more to learn. I’ve become frustrated with my setup over the last few years, specifically around some conflicting plugins. I’ve intended to start from scratch with NeoVim, learn how to configure it with Lua, get the native language server stuff working properly, etc., but it’s a lot of setup.
Helix, on the other hand, is a new editor, inspired by Vim and written in Rust. It doesn’t support plugins and instead tries to be a fully-featured editor right out of the box. It has the same major modes as Vim (normal, insert, visual) but then also offers “minor modes” (e.g. hit g
in normal mode for “goto” mode). It’s cool, and it all works together well.
What I like:
- It’s easy to get started
- If you know Vim, you’re like 75% of the way to Helix fluency
- It has a nice tutorial
- The minor modes feature little pop-up cheat sheets that make learning the various keyboard combos easy
- Stuff just makes sense, whereas some Vim stuff always struck me as arcane
- e.g.
y
to yank;space + y
to yank to the system clipboard - or
:theme
followed by a space displays a list of all available themes (gruvbox
natch)
- e.g.
- Built-in language server support
hx --health
makes it pretty clear how to get your language servers set up
- The multi-cursor stuff is nice once you get the hang of it
- It is simultaneously quite polished + under active development; several times I went looking for how to do something and found an active GitHub PR where the feature is being developed
What I don’t like:
- It is very sensitive about external file changes; I switch git branches a lot, and if I’m working in one branch, then check out a different branch, and then switch back to the original branch, my next save is often rejected unless I remember to
w!
, which I often don’t (maybe fixed here?) - Can’t presently run multiple language servers for the same language
- I’d really like to run both
standardrb
andsolargraph
when I’m working in Ruby - You can run a separate language server and formatter, which works fine, but there’s a visible delay on save before the formatter kicks in, and you don’t get nice in-editor warnings about style violations
- It looks like this will be fixed in the next release
- I’d really like to run both
- Missing a couple key features from Vim plugins I’m quite fond of
- fugitive.vim’s
:Git blame
view - A file system explorer like NERDTree – the built-in fuzzy finder is awesome as long as you know the name of the file you’re looking for, which I occasionally don’t (some progress here)
- fugitive.vim’s
- I had to reconfigure how the option key works in iTerm and have lost my ability to type accented characters inside the terminal, which I’ve needed to do, I think, twice (more info)
Pull it down with Homebrew or similar, and give it a shot. Hint: you launch Helix with hx
– figuring that out might’ve been the hardest part of my Helix journey so far.