• Anna
    link
    fedilink
    0
    edit-2
    2 months ago

    Is no one gonna talk about neovim or are we all just like set the alias and forgot that we are inside neovim and not vim or vi

  • Black Xanthus
    link
    fedilink
    English
    02 months ago

    The comments on this post went exactly like they have over the past 20 years, with one exception.

    Emacs is all but forgoten.

    Vim wins.

    • @sunshine@lemmy.ml
      link
      fedilink
      02 months ago

      I don’t know, I used vim for like 6 years and then discovered, thanks to the power of evil and doom, how much better the vi experience is inside the context of emacs. With all the utilities and packages, it’s worth the small additional burden of troubleshooting that it imposes.

    • Drew
      link
      fedilink
      02 months ago

      you have offended all 6 of us, prepare for retribution

    • @AnarchistArtificer@slrpnk.net
      link
      fedilink
      English
      02 months ago

      Recently, I recommended to a friend that basic vim/vi is worth learning because it’s a baseline that you can always trust will be there across different Linux systems.

      They asked me what I used most on my home system, and the answer was emacs, but I was very clear that I was not recommending it. It’s a particular kind of person who finds themselves at home in emacs, and for everyone besides those people, selling them on emacs would feel like persuading them to do hard drugs.

    • @enumerator4829@sh.itjust.works
      link
      fedilink
      English
      02 months ago

      Be real fukin careful now. You’ll tear my enacs from my cold dead hands

      (But yeah, I use evil-mode. Also I edit files on remote servers with vim. I’m a traitor…)

    • @frezik@midwest.social
      link
      fedilink
      0
      edit-2
      2 months ago

      I think there’s a good reason for that. If you’re not as concerned about resource consumption (Emacs used to be called “Eight Megabytes and Constantly Swapping”, back when 8MB was a lot), then there’s no reason to avoid even more complex and resource intensive IDEs. People who wanted a complex editor, but in a relatively small footprint, stuck with some variant of vi.

      Thus, vi found a stable evolutionary niche. It’s a tardigrade.

    • Anna
      link
      fedilink
      0
      edit-2
      2 months ago

      You write Ansible playbooks to automate infrastructure management. But calling it a coding language might be a stretch it is just yaml

    • @smeg@feddit.uk
      link
      fedilink
      English
      02 months ago

      I use whatever the machine gives me when I type vi, I assume it’s usually vim

      • @communism@lemmy.ml
        link
        fedilink
        02 months ago

        Huh, vi for me has always been actual vi, not vim. Didn’t know some systems symlink vi to vim.

        • @Xanza@lemm.ee
          link
          fedilink
          English
          02 months ago

          Vim is the preferred experience, so it’s for end users. Unless you have a system with no real addons and classic *nix environment, you’re almost always going to be using Vim. Alpine linux is a good example of a stripped down environment that still uses Vi.

        • lime!
          link
          fedilink
          English
          02 months ago

          vim has a limited “vi-mode” that it uses if you call it as vi. so it could still be vim.

          • @communism@lemmy.ml
            link
            fedilink
            02 months ago

            Ohh that makes more sense. Yeah perhaps, although come to think of it I still need to install vim from the package manager even if vi works fresh out of the box so maybe not?

            • lime!
              link
              fedilink
              English
              02 months ago

              i think there’s also a vim-mini that gets installed by default in some debian-based distros.

    • @Xanza@lemm.ee
      link
      fedilink
      English
      02 months ago

      Not to imply that Vi is perfect, but Vi is perfect. What do you need an update for? /s

      • @corsicanguppy@lemmy.ca
        link
        fedilink
        English
        02 months ago

        you’ll be able to say you use vi

        I haven’t wanted to say that in the 32 years I’ve had the choice.

        • @festnt@sh.itjust.works
          link
          fedilink
          02 months ago

          oh ok then link the emacs command to vi and you’ll be able to keep saying you use emacs while using a better text editor 👍

          (please dont kill me this is a joke i dont even use vi please have mercy please spare me please please please)

    • nickwitha_k (he/him)
      link
      fedilink
      02 months ago

      Emacs

      It’s a sound choice. I don’t like to use it, personally, because I want to use something that uses same motions and syntax as editors on servers that I don’t own (ex. customers). And, I’m not a fan of Lisp. It’s a great and (self-)extensible text editor/lisp interpreter, though.

    • Amon
      link
      fedilink
      02 months ago

      Emacs is what the unified linux desktop should be

      • @coldsideofyourpillow@lemmy.cafe
        link
        fedilink
        English
        02 months ago

        I dislike Evil, and would never recommend it to anyone looking for a modal editing solution for Emacs. I would rather break my pinky with the modifiers than use Evil.

        • Evil is SLOOWWW: its startup time is 10x longer than other modal editing packages.
        • It has high cost of integration with other packages; editing-related packages rarely play well with Evil unless specifically designed for it.
        • We can do better than vi. Nowadays, there are some more modern alternatives to vi, like Kakoune that fix some of the fundamental problems with vi. One such problem is the fact that you cannot know what you are acting on until after the command completes: Kakoune solves this by having a unique noun verb syntax rather than vi’s verb noun syntax. This means that you get constant feedback about what you’re acting on before you act on it, since objects are always highlighted.

        Instead, for anyone looking for a serious and actually good modal editing, I would suggest them to try out meow. It fixes all of the problems I mentioned above, and makes more improvements to the vi experience that I didn’t mention.

      • Radioactive Butthole
        link
        fedilink
        English
        02 months ago

        It isn’t as dumb as it sounds, honestly! I used to use DBeaver and it is a fantastic project, but I really wanted Vim keybinds to construct my queries as they can sometimes be quite large. There used to be a plugin that added the functionality but it stopped working on my machine. This Vim plugin is essentially a wrapper for the CLI SQL client (psql in my case), so using it actually kind of makes sense, I think.

        The biggest issue I faced was exporting the results, but I just created a function in my ~/.vimrc that copies all the text of the results to a new tab and formats it however I want. CSV, HTML, JSON, XML, Markdown, whatever I need is all there and predefined. All I have to do is call :ExportToMarkdown and off I go.

  • TimeSquirrel
    link
    fedilink
    02 months ago

    VI is life

    If you don’t have one to begin with, sure, I guess. For everyone else, there’s Nano.

    • @frezik@midwest.social
      link
      fedilink
      02 months ago

      SVG, unironically yes. There’s a few times where I found a library or WYSIWYG editor making some strange choices for its SVG output, and I had to fix it manually.

  • @festnt@sh.itjust.works
    link
    fedilink
    02 months ago

    in highschool my physics teacher used vim to write stuff, like most times when checking if everyone was in class he’d just open vim and type people’s name in there