I’ve tried vim on and off during college but never really had the time to fully get working with it. As it turns out the stress of two degrees is not conducive to “fun activities”. Now that I have a real job ™️, I’ve decided to finally try and use it this week full stop and I genuinely feel like a programming chad. There’s still a lot I’ll need to learn and probably overtime I’ll discover some inefficiency in how I’m using it now but it really does just feel good. I understand the hype now.

  • Mr. Satan@lemmy.zip
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    So I keep trying vim and now neovim, I kind of like it as a good allrounder for one off syntax highlighted editing. It’s just that for me, quick and simple editor.

    For a true IDE I need proper symbol navigation. What I have in my JetBrains setup: ctrl+click - go to definition, ctrl+shift+click - search for references, alt+ctrl+click - go to implementation, alt+ctrl+shift+click go to declaration (specific to going to an interface). Then there’s symbol renaming and good multi carret / selection support with keyboard and mouse bindings (alt+up/down arrows, alt+single/double/tripple click). Also, multicarret copy pasting is a major feature.

    Let’s not forget about live static analysis and autocomplete with support for fuzzy search and documentation.

    I don’t even know where to start to make vim or neovim do all that. If it can’t do that seamlessly and just as well, vimlike editors will never be a replacement for a proper IDE. It’s fast, capable single file and small scope editor for me.


    I do also like all the alt and ctrl combinations with arrow keys to move lines, blocks and jump over words.

    • BartyDeCanter@lemmy.sdf.org
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      Give Helix a try. It comes with everything you are asking for built in, plus discovery for the commands, plus a selection first approach so you can see what you’re doing.

      • Mr. Satan@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I understand that they exist, the problem is they aren’t naturally discoverable. With normal IDEs and context menus, I see keyboard shortcuts as I look for functionality. Neovim doesn’t have that. Having to read docs or google for every little action I want to do is very unproductive and annoying. Features need to be discoverable through usage.

    • namingthingsiseasy@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I don’t even know where to start to make vim or neovim do all that. If it can’t do that seamlessly and just as well, vimlike editors will never be a replacement for a proper IDE. It’s fast, capable single file and small scope editor for me.

      If you’re interested in learning how to do it, I found this guide extremely helpful for getting started. it’s in both blog and video format, and it shows how to install Lazy (a package manager for vim), and which plugins to install to get LSP working (which is what would provide all the hotkeys that you were mentioning above).

      It’s definitely not a task for the faint of heart, but I found it very rewarding once I figured out how to work with the plugin systems because it’s so powerful and easy to customize. I found it helpful to just watch the video a few times to see everything working, then slowly started building up my own configuration (which was a bit more minimal than the linked guide I provided - I only installed about 30-40% of the plugins he listed on that page).

      Another alternative is Lazyvim, which provides an out-of-the-box configuration experience for you. It installs a lot of plugins and most things should work out of the box with very little configuration. It is a massive beast though, but still pretty good for a first start.

    • Gonzako@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      oh, you do have fuzzy search with neovims kick-start. I have go to def on g>r>d. The rest I use way less so I don’t remember offhand, the normal one button search just works for me so far.

      Yes, I will not say it doesn’t take extra effort but at least for me it has payed off.

      • Mr. Satan@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        The thing is I need to know before hand that there’s such capabilities. The editor has no way (besides docs) to surface stuff via usage. That makes the skill floor to productivity generate way too much friction.

        I love the mouse for navigation. If I’m jumping through references chances are I’m just reading and analyzing so I don’t need to shift from mouse to keyboard in that scenario.

    • AldinTheMage@ttrpg.network
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Do you use vim motions in your JetBrains IDE? We use Webstorm at work and I installed the vim motions plugin because I want to get more fluent with using Vim but I haven’t really given it a fair shot yet.