• devfuuu@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 years ago

    Been using it on all my machines for many months now. Replaced all my basic usage that I had of vim/neovim and all the attempted and failed customisations and plugins I had tried to install. It works very well for console editing any file I need to reach without being overwhelming with weird short cuts I’ll never be able to learn and with nice enough UI/UX that guides and teaches. Even better the integration with lsp allows to launch some project files and have the basics like go to definition kinda work.

    Tried to learn vim for many years without being succefull in doing much more than just moving around and inserting/deleting text with the most basic commands.

    It’s great for anyone that doesn’t want to go the vim route but still get a powerful editor to learn.

    • leo85811nardo@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 years ago

      While I totally understand the struggle of learning Vim, I would still recommend it over Helix for the fact that most popular IDE support “vim mode” or “vim plugin”, making vim not only a text editor but also a popular workflow across development environments. I would totally try out Helix if the key memory isn’t only restricted to the Helix program

  • zygo_histo_morpheus@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 years ago

    I sometimes play around with Helix and I almost always have a good time, but there are too many vim features that I have integrated in my workflow that there isn’t any good equivalent to in Helix. I use ex commands, the quickfix list, snippets, the fugitive plugin and just little custom commands and mappings that I’ve accumulated. I don’t see myself switching to any editor full time that doesn’t have a replacement for most of these features, but Helix is very nice and fun to use occasionally.

    • nous@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      ex commands

      Are these for scripting outside of vim (but using vim)? If so you can probably still use these with vim and helix for interactive editing. Unless I am misunderstanding what you mean by that feature.

      quickfix list

      <space>d (current file) and <space>D open a window of issues as reported by the current LSP which you can use to jump to the selected issue (with fuzzy filtering).

      snippets

      Looks like there is some basic support for lsp snippets which looks like you can add your own but a wider issue for better snippet support is being tracked here. So not ideal yet, but will hopefully improve over time.

      fugitive plugin

      It does have git gutter support and the :reset-diff-change command currently. And you can run git commands with :sh git ... though that experience could be improved. Staging changes is still pending here as is diffing changes here which look like there is work slowly being done on these.


      So there are some workarounds for some of the things you need - and improvements being made to those that are missing. Might take some time for these areas to improve though and it depends on how you use those features as if/when things are good enough for your usecase.

      • zygo_histo_morpheus@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        There are many cases I actually prefer the quickfix list to an interactive picker:

        • When working on a very large project, such as my $DAYJOB, interactiveness gets in the way more than it helps if you’re running a slow command (like greping a large number of files)
        • You can use :Cfilter to filter things matched in the quickfix list and :colder/:cnewer to navigate the history of the quickfix list without having to rerun the command
        • You can run ex commands on the items in the quickfix list, like :cdo norm gcc to comment the matched lines (with the vim-commentary plugin), run a macro with :cdo norm @q, or :cdo yank A to put all the matched lines in the a register for example. You can also do stuff like :cdo -10,+10g/re/p to print all lines matching some regular expression re within the range of 10 lines before to 10 lines after the match.
        • You can put more things in the quickfix list than you can with interactive pickers, like :Git diftool to get diffs. Vim also has support for parsing the output of many compilers and linting tools so you can use e.g. :compiler cargo followed by :make to build the current project with cargo and get any build errors in the quickfix list.

        In short, interactive pickers are better for browsing, but the quickfix list is better for scipting and holding on to data for longer without having to rerun commands, and can with some basic scripting be used for more things.

        Afaik helix doesn’t have diff capabilities which is also a major thing missing from my git workflow.

        I expect some of these things to make it into helix eventually, particularly git stuff, but I would be surprised if they add support for more weird janky vim stuff like the quickfix list and ex commands, which is a valid design decision, but they are also very useful tools once you get your head around them.

  • acabjones@lemmygrad.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 years ago

    I’ve been trying helix and the built in LSP integration is excellent. Out of the box it’s capable of a lot when paired up with a good language server. The equivalent LSP integration on neovim takes some fat plugins.

    I will say helix seems immature in a few areas. I noticed it’s missing tab layouts present in vim. Also might it not be impossible to resize splits? There’s also no linewise selection mode.

    Helix out of the boz is close to my 15 years of accumulated vim config, but it seems like it’s not quite there yet.

  • Louis Dureuil@lemmyrs.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 years ago

    I love the treesitter based movement (allows to move to beginning/end of a function), and the jump list (list of the locations where the cursor went, cross files and easy to navigate… Vscode really misses this).

    I miss a debugging experience at least comparable to Vscode’s with rust analyzer (ability to start the debugger on a single test case without having to look for the executable’s path) to be able to use it day to day. To be honest, competing with vscode is always going to be difficult

  • diggredditlemmy@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    I downloaded it and it’s pretty good, but even as someone who only uses vim / nvim on a needs basis I’m not sure I have the willpower to learn these new shortcuts.

  • hunte@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    3 years ago

    I kinda like Helix, I just don’t really know what’s the point of it. Some of the Kakoune bindings are marginally better than the vim default but any efficency I might get with it I instantly lose when trying to re-learn things or getting confused when I hop on a vim terminal on an other machine.

    Kind of the same with the editor, it’s like a ‘batteries included vim’ but I can just get that with a really light vim config and not mess up my workflow.

    I guess it’s might be cool if you are getting into it as your first modal editor but even then, if you want to use other stuff or need to use some different tools getting a vim extension will probably be easier than getting a Kakoune one.