How I'm using Helix editor

rushter.com

154 points by f311a 6 hours ago


wilkystyle - 4 hours ago

I've recently been on a little side quest to rebuild my editor configurations (20 year Emacs user, 15 year Vim user—in parallel with Emacs because I can't seem to pick a favorite). The goal is to see how quickly I can get to a daily-driving complete setup for enterprise-grade software work largely in Python. My goal for the rebuild is to see how much I can drop as far as reliance on third-party extensions and still have the functionality that I need (or which makes me unreasonably more productive).

My Neovim configuration[0] is currently the best it's been IMO, but I ended up having a few more plugins than I thought I would need.

I am earlier along in my Emacs rebuild, but what is really interesting to me is that there are a lot of improvements in modern versions of Emacs (30+) that dramatically reduce my dependence on third party plug-ins. Eglot has been fantastic for me, as a former long-time lsp-mode user. Completion preview mode is not quite a replacement for corfu, but it's pretty darn good and only going to get better.

So far my list of must have plug-ins for Emacs:

- Magit - Expreg (teeesitter expand region) - Multiple cursors - dape (debugging in coordination with Eglot)

Thinking I will probably end up adding Consult + orderless, too, as that is a search/navigation superpower.

[0] https://github.com/wilkystyle/nvim

edit to add nvim repo link

netshade - 3 hours ago

I'm an Emacs -> VS Code -> Helix convert, have enjoyed using it thus far. I've tried to internalize all the existing keybindings and use thus far rather than configuring it much ( I've wanted to have the least amount of config necessary to be effective with it )

One thing I've struggled with is simply remembering everything it can do. I made a Desktop Mat[0] to help remind me ( literally just finished it so will see how helpful it is when the printed version arrives ).

[0] https://git.sr.ht/~netshade/helix-deskmat

bkrein - 2 hours ago

I've been using emacs for the last 10 years or so (used Sublime Text before that). I use vim as well from time to time for quick file edits here and there or on remote servers and thought it's fine for that purpose, but I didn't really see the need to use vim exclusively. I'm pretty well settled on emacs now and have my own carefully written modules and functions to get the right setup for me.

I tried helix last month and was immediately hit by how simple it is to get started. It still doesn't come naturally to me, but I managed to quickly get used to the basics: jumping around code, search, yanking/pasting stuff, and switching buffers and windows. I have no idea about its history, but Helix is a very well designed piece of software. Global search is particularly nice, lsp integration just works, it's also exceptionally fast. It feels very nice and comfortable when a software has sane, coherent, and actually-helpful defaults.

I'm definitley going to keep using it and getting myself more accustomed to this way of editing, I will keep emacs as my default, but helix is just so fast it might become my go-to over time for editing code.

bitbasher - an hour ago

At this rate, why not use vim? Half of the configuration is re-creating vim inside Helix. Not to mention, Helix has many dependencies (you just don't see them the way you do in neovim). I think I could make a case that my vim setup is more supply chain safe than Helix.

My current vim8 setup is very simple and has served me well for 8+ years. I'm currently using vim8 because it's what is available within my LTS distribution.

I only use one automatically loaded plugin (`vim-tmux-navigator` to simplify moving between vim splits and tmux splits, it's a passive plugin). I have reviewed the code for the plugin and I don't update it.

I only use two "optional" plugins (you can enable them using vim's built in package manager with :packadd!). I use `ale` (lsp, diagnostics and automatic formatting on save) and `vim-fugitive` (git workflow inside vim).

Why use ale? Because it works with vim8 and doesn't require any other dependencies like nodejs or python. I have reviewed the code and I'm happy with it. Install it and use it, don't update it without a reason.

Why vim-fugitive? It's a productivity booster. You install it once and forget about it. Tim Pope is the man.

I don't automatically load plugins (besides tmux-navigator) for a few reasons. Most of the time when I'm using vim it's for quick editing where I don't need the heavy tooling (like git integration or an lsp). If I am working on a project with a long term session I will enable git and lsp.

There's no need to automatically run code unless you need it.

ramon156 - 4 hours ago

For people who use helix and want a TUI, why choose this over neovim? I like the defaults in helix until I don't, and then have to change stuff.

For people who use helix and want the full IDE experience, why not Zed, or maye even VSC/JetBraind IDE (come to think of it, how's fleet doing?).

If i need something simple I fall back to nvim, and if I'm missing features I sometimes boot up WebStorm (or if a colleague wants to navigate through something)

ngruhn - an hour ago

Nice! I didn't know about:

    :reset-diff-change
I've been using

    git checkout -p 
But doing this inside Helix is much more convenient.
scuff3d - 4 hours ago

I still prefer Neovim but I'm glad to see Helix getting some love recently. Hopefully it continues to do well.

Last I checked they still don't have a plugin system., I bet they'll see a jump in popularity when that gets going.

rfmoz - an hour ago

For those looking beyond Helix, Kakoune and Neovim, Vis is a lightweight and elegant option, worth a look.

dannyfritz07 - 4 hours ago

Interesting. What happens when you open a file in the yazi pop-up? Does it create a buffer in Helix?

jiehong - 2 hours ago

I'm really not well experience in Vim vs Helix, but could one say that Helix is more like if Vim was in visual mode by default, and stayed in it even after an action?

And so, could (Neo)Vim be configured to work more like Helix?

aidenn0 - 3 hours ago

Still haven't found a way to delete the current line in Helix (even if the current line is blank; "xd" will delete the current non-empty line, but will delete two lines if the current line is empty).

heldrida - 4 hours ago

Interesting that every time Helix comes up, someone just has to mention Neovim. You never see Emacs or Helix users do that the other way around. Almost as if they’re personally offended.