• by nequo on 7/13/2022, 9:36:33 PM

    I agree with this sentiment. Line editing is to ASTs as a 4-speed automatic transmission is to a CVT. It is limited only by historical baggage and the power of habit.

    > Of course I can install tree-sitter and setup structual editing based bindings but am I really using VIM at this point?

    Why would this mean that you are not using Vim?

    You are using Vim with a Vim extension that gives you better keybindings. That extension happens to pull in Tree-sitter, in the same way as Atom would. But your setup is faster and consumes much less memory.

    Or to put it differently: Vim and Emacs both link to libpcre for regular expression parsing, but that doesn't mean that if you use regular expressions in Vim, you are using Emacs.

  • by cookiengineer on 7/5/2022, 4:41:03 AM

    As a long time VIM user, I tend to agree with you in your points. VIM and its concept was built at a time when text was green, and when you had maybe 30 lines of code in front of you.

    My hopes for NeoVIM were that they changed the concept in the sense to find a new grammar that is based on the AST (sentences could be statements, for example). Sadly NeoVIM kind of underdelivered, syntax highlighting and AST/linters were always completely broken for me when I tried them out.

    No idea why, there might be still some issues from me there that were closed due to inactivity (as if time would fix bugs magically).

    I kind of hope that the LSP revolution will lead to better IDE concepts that can bridge the gap between navigation and repetition efficiency and the code's AST insights.

  • by linsomniac on 7/5/2022, 2:40:40 AM

    LunarVim might get you closer, I haven't explored any enhanced structural editing features with it, but it does have TreeSitter integrated and has a lot more IDE features integrated. The idea of structured editing seems interesting, but I've never really been able to wrap my mind around what that would realistically look like.

    https://www.lunarvim.org/

  • by samwestdev on 7/5/2022, 2:51:38 AM

    What's `Structural editing`?

  • by gigatexal on 7/5/2022, 2:09:43 AM

    The point and power of vim or neovim and the others is plugins in my opinion. It can be customized to make you faster at what you do. I love my setup. It works great for me. I can’t use a full IDE, I’m broken in that way.

  • by swah on 7/5/2022, 10:24:08 AM

    So you want the up and down arrows actions to move to the next statement instead of line?