Live data from Hacker News

Helix: Post-Modern Text Editor

helix-editor.com

21–30 of 169 posts

Re: Helix: Post-Modern Text Editor

#21
I'm a long time user of vim/nvim and have learnt so many great techniques from "practical vim". Helix looks good, and the speed is impressive.

It does seem very code-centric though, movements seem based with this in mind. I also find it inconsistent that some movements cannot be combined with actions but others can.

Having said that, there are certainly some ways that vim could be reimagined. I find beginning and end of line movements awkwardly placed by default, as is moving up and down by half and whole pages.

I have a feeling that movement-action paradigm as opposed to action-movement paradigm of vim will have some tradeoffs with visualisation being a plus, and more advanced repetitions bring a negative, but I haven't totally thought this through.

Re: Helix: Post-Modern Text Editor

#22
I really like helix. So much that I've switched from jetbrains to neovim.

I think hx is way more "discoverable" than vim with it's "whichkey" by default functionality and it's motion-first structure is way more attractive to me.

As someone used to an IDE, I just really want git integration and other things. As soon as they land on a plugin system, maybe it will be viable.

Re: Helix: Post-Modern Text Editor

#23
Started using helix as my $EDITOR a few weeks ago and so far I love it.

Especially 'hx --health' and its built-in ability to use many language LSP's.

My helix config file is literally 3 lines long, and with that I get full language support.

    theme = "autumn"
    [editor]
    rulers = [80, 120]

Re: Helix: Post-Modern Text Editor

#25
post #20

For anyone who's used to fd/jk/kj/jj/jf or the like in Vim as an alias to ESC to exit insert mode, it looks like Helix is not too usable as of today: https://github.com/helix-editor/helix/issues/2612 I would've considered exploring Helix myself if it wasn't for this.

Remap capslock to CTRL when held and ESC when tapped. Good idea for vim too

Re: Helix: Post-Modern Text Editor

#26
post #20

For anyone who's used to fd/jk/kj/jj/jf or the like in Vim as an alias to ESC to exit insert mode, it looks like Helix is not too usable as of today: https://github.com/helix-editor/helix/issues/2612 I would've considered exploring Helix myself if it wasn't for this.

no alt-l...?

Re: Helix: Post-Modern Text Editor

#27
post #20

For anyone who's used to fd/jk/kj/jj/jf or the like in Vim as an alias to ESC to exit insert mode, it looks like Helix is not too usable as of today: https://github.com/helix-editor/helix/issues/2612 I would've considered exploring Helix myself if it wasn't for this.

Damn, I never thought of doing that!

Re: Helix: Post-Modern Text Editor

#28
post #21

I'm a long time user of vim/nvim and have learnt so many great techniques from "practical vim". Helix looks good, and the speed is impressive. It does seem very code-centric though, movements seem based with this in mind. I also find it inconsistent that some movements cannot be combined with actions but others can. Having said that, there are certainly some ways that vim could be reimagined. I find beginning and end…

In my experience, as another longtime user of vim and now using helix as my daily driver, it does take a bit of getting used to. But once you grok the whole idea of "selection first, then action", it becomes a bit easier to deal with. Honestly I think Helix is a better editor for those who are looking for the features of Vim but don't want to learn its esoteric syntax. I had to learn Vi/Vim in order to work with FreeBSD machines back in the day, and I had a whole book to reference its commands, so for me it's kinda second-nature. But for new users, I can imagine Vim not being the easiest thing to figure out.

I chose to take the plunge and start using Helix most of the time because:

1. It's like Vim/NeoVim enough that I didn't constantly get stuck. Most of the modal commands are similar to Vim, and you can always fall back to mouse-based selection and using normal commands like Ctrl/Cmd+V and Ctrl/Cmd+C if you don't want to get into the registers just yet.

2. Built-in support for the stuff I actually care about. LSP, fuzzy file picking, inline docs, IDE-like features like "go to definition", it's all included. And unlike NeoVim, it doesn't crash half the time when I'm working on TypeScript files (thanks Rust!). Haven't needed CTags at all since I started using Helix.

3. It's fast. Like, way faster than NeoVim or Vim unless you don't use any plugins. And without plugins, it looks great. Tons of themes to choose from, easy to switch them in the config, etc.

> I have a feeling that movement-action paradigm as opposed to action-movement paradigm of vim will have some tradeoffs with visualisation being a plus, and more advanced repetitions bring a negative, but I haven't totally thought this through.

I think the "advanced repetition" side of this is just going to look different, more like Emacs or Sublime Text in its functionality IMO. For example, the "Migrating from Vim" guide mentions global replace (https://github.com/helix-editor/helix/wiki/Migrating-from-Vi...). This doesn't really go into how it looks, but what happens looks a lot more like NeoVim than Vim. It's still just as fast as Vim to write these commands, albeit a different syntax that you have to get used to, but the benefit is being able to see what is happening to your file while it's happening, rather than after the fact or having to jump through every instance and "confirm" it (which is problematic on large files). In other words, I think this will be/is possible to do in Helix, but it will just look a little different than in Vim.

Re: Helix: Post-Modern Text Editor

#29
post #18
post #15

Earlier quoted context omitted.

Look at Nicolas Rougier’s GitHub if you want to see what a “modern” Emacs looks like.

I assume you mean https://github.com/rougier/nano-emacs#readme

Yes. Also https://github.com/rougier/elegant-emacs and pretty much everything else in his Emacs section.

Re: Helix: Post-Modern Text Editor

#30
Long-time Vim/NeoVim user here...about 20 or so years with it being my daily driver for the last 8. As soon as I found Helix, I was unsure whether it would become my new editor, but I've been using it every day for a few months and haven't really looked back. The only thing I still use Vim for is `vimdiff` with Git, but I don't think I need to, just been lazy about configuring Helix to do the same thing.

Helix does everything I need, nothing I don't, and I don't have to learn a bunch of esoteric syntax. It's a great editor for people new to the world of shell editing, and I highly suggest trying it out.

Post reply on HN