this post was submitted on 20 May 2024
65 points (98.5% liked)

Programming

17313 readers
543 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

Some of you may have come across Helix - a very fast editor/IDE. Unfortunately, Helix has its own set of keybindings, modeled after Kakoune.

This was the one problem holding me back from using this excellent editor, so I soft-forked the peoject to add Vim keybindings. Now, two years later, I realize this might interest others as well, so here we go:

https://github.com/usagi-flow/evil-helix

I‘d be happy to polish the fork - which I carefully keep up-to-date with Helix‘s master branch for now. So let me know what you think!

And yes, I‘m also looking for a more original name.

top 18 comments
sorted by: hot top controversial new old
[–] [email protected] 17 points 6 months ago (1 children)

Nice! I started using helix before vim and often I find the helix bindings more logical (like shift for the reverse action e.g. u for undo and U for redo). However often the vim bindings feel quicker (c-i-w vs m-i-w-c). Will definitely give it a go!

[–] [email protected] 3 points 6 months ago (1 children)
[–] [email protected] 1 points 6 months ago

Unhinged behavior

[–] [email protected] 10 points 6 months ago (1 children)

At first I liked the new bindings, but later realised the Vim bindings felt more reliable and dropped helix even though I really liked the editor itself. This might make me try it again. Thanks!

[–] [email protected] 1 points 6 months ago

Cool! Let me know should you find anything missing. :)

[–] sandalbucket 8 points 6 months ago (1 children)

Helix + vim => Helim => Helium?

Vim + helix => velix / vimix / vix / velimix?

[–] [email protected] 6 points 6 months ago* (last edited 6 months ago) (2 children)

Hmm, helium would‘ve been amazing, but that‘d be an SEO nightmare. My wife told me „velimix“ sounds like a kitchen appliance. Not sure if that’s a good thing haha…

[–] Solemarc 3 points 6 months ago

I feel like helium works as well as helix. When I search Helix I don't get the editor but if I search Helix Editor I will get what I'm looking for.

When I search Helium editor I don't get any exact matches, but of course SEO is a dark and mystical art so your mileage may vary.

[–] [email protected] 1 points 6 months ago

I would suggest Helvix or Helvim

[–] [email protected] 6 points 6 months ago (1 children)

Neither project allows to set keybindings by a simple json or yaml file? Yet, these are highly customizable editors! That's a surprise.

[–] [email protected] 5 points 6 months ago (1 children)

As someone that never really clicked with Vim, but has been enjoying Helix, I've been looking for the opposite: something that makes Neovim follow the selection-action paradigm, along with all of the Helix keybindings.

[–] scrawdaddy 2 points 6 months ago* (last edited 6 months ago) (1 children)

I feel the same way. I’ve been using helix for about a month now and really like its paradigm. But I’m missing some of the neovim features. And I’ve run into some lsp issues that I don’t think are present in neovim

[–] [email protected] 2 points 6 months ago (1 children)

Yeah. I hope as Helix grows more popular, our problems will solve themselves in both directions: where Helix can address them directly, and people start hacking Neovim to work more like it.

Out of curiosity: what issues with the LSP are you having and what distro do you run? I've found that most of my issues could be resolved by running Helix's health checks and making sure that the binaries needed by the LSP are available in $PATH.

Unfortunately, I did start having issues with Go where it seems like the LSP might be crashing and I've yet to resolve that one for myself.

[–] scrawdaddy 1 points 6 months ago

I may have been wrong about helix being the cause of my LSP issues. One large typescript project I have will have performance issues but it may just be that project. I just found the same issue in neovim. Vscode is the only editor that doesn’t seem to have any problem with it.

I was originally hoping it would be resolved by this PR https://github.com/helix-editor/helix/pull/10539

[–] [email protected] 4 points 6 months ago (1 children)

I love you. That's exactly what I was looking for. Long live Hevilix !

[–] [email protected] 2 points 6 months ago

Thank you! \o/

[–] [email protected] 2 points 6 months ago

I just published evil-helix-bin to the AUR, for those of you who Use Arch Btw. :)