Which one to choose for development? Advantages & disadvantages of each?

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

    I use Emacs and have been since around 1986. If you’re big on extensibility, Emacs has the elisp programming language built in. Vim used to be more performant than Emacs, but with today’s processor speeds, it is hardly an issue. Emacs can emulate other editors, and as someone else mention Doom Emacs gives you the best of both worlds.

    If you are on a Mac, all the text boxes already use Emacs keystrokes. Ctrl-a = Beginning of Line, ctrl-e = End of Line, ctrl-k = Kill to End of Line, ctrl-d = Delete Character, etc.

  • MrJay@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    I would say the same as most it really depends on what you are doing, I program in Lisp a lot so Emacs is a natural fit. Vi/Vim/Neovim are in my opinion Technically better they are smaller and simpler however Emacs is a much bigger and more versatile. I ended up choosing Emacs specifically because it was bigger and more versatile. I do plan on giving Vim a try again sometime to see if it fits my needs better, once learning Vim Keybinds/Motions I find it relatively easy to switch between them, except when it comes to the editor specific apps like Org Mode.

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

    If you love hacking/customizing your system and willing to spend time on it, go with Emacs. If you want something lightweight and fast with moderate customizability go with Neovim.

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

    I use Neovim with a custom config, personally - Though I do currently have “look into Doom Emacs” on my personal todo list … So it really depends on what you’re after honestly.

  • choroalp@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Used to be a huge Emacs nut (ı still like it) but i converted to neovim because its more practical in a modern sense but helix is slowly taking me over. especially due to its speed and still looking very beatiful by default

  • lascapi@jlai.lu
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I don’t have the solution.

    I just want to say that I try helix since few weeks and it’s nice!

  • PaperDevil@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Very interesting question indeed, one that is often debated among programmers.

    It ultimately comes down to what suits your personal style and requirements.

    Mostly, both have strengths and weaknesses, so it’s hard to universally recommend one over the other.

    • nous@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I used to be on the vim side of things. But recently have switched to helix. It is a modal editor similar (but a bit different from vim) but with most of the things you need plugins for built in, so no need to spend hours finding plugins and configuring things.

      But whichever you like is really a personal preference. I have seen far more people use vim in the wild than Emacs. And you can configure Emacs with vi input mode.

      If you work with servers knowing basic vi is a must as it is often the only editor installed on the system.

  • syl@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Sublime text! Neovim and the likes just stop being performsnt enough once you start adding extensions and I sort of need a good GUI. Sublime is still unbeatable, sadly.

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

      Interesting, I’ve got plenty of plugins in my Neovim setup and I have zero performance problems. That includes auto completion, tree sitter, surround… I’m curious what plugins you were using that made it slow down

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

          Now you’ve got me curious how big of a project that was - I’ve not really had any slowdowns or speed issues at all with Neovim, even paired with an LSP in some of my team’s biggest projects. Few hundred thousand files not counting vendor libs, that sort of thing.

          I think the only thing I’ve ever seen really slow down was Telescope, and that’s because I have it showing previews of the selected file.

          • andnekon@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            Few hundred thousand files

            My definition of “really big” is changed. I was talking about around 10k files of source code.

            The project is in java, the machine has 8 Gb ram, and when I open a different file it sometimes catches brief freezes - not to the point where it stops “being performant enough”, but still noticeable. Also, sometimes nvim-tree is slow when I expand directory, which is annoying

            • Hexarei@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              Hmm. I’m not super familiar with Java’s LSP setup and such, but my instinct is that it might be something to do with the performance of its syntax highlighting. The person I am, I can’t help but wonder what plugins you were using, but I won’t push to try and help you get it solved necessarily. Hope you’ve found a good solution with your current editor though!