• Xanza@lemm.eeEnglish
        15·
        5 months ago

        bro tryin’ to summon a demon… /s

    • Amon@lemmy.world
      18·
      5 months ago

      Emacs is what the unified linux desktop should be

      • coldsideofyourpillow@lemmy.cafeEnglish
        3·
        5 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.

    • festnt@sh.itjust.works
      5·
      5 months ago

      link the vi command to emacs, and you’ll be able to say you use vi

      • corsicanguppy@lemmy.caEnglish
        5·
        5 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
          2·
          5 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)@lemmy.sdf.org
      3·
      5 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.

  • AntY@lemmy.world
    401·
    5 months ago

    Vi hasn’t been updated since 2005. Aren’t everyone just using vim or neovim?

    • smeg@feddit.ukEnglish
      37·
      5 months ago

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

      • communism@lemmy.ml
        18·
        5 months ago

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

        • toynbee@lemmy.world
          24·
          5 months ago

          A long time ago, someone posted advocating symlinking vi to emacs. Evil, but entertaining.

        • lime!@feddit.nuEnglish
          11·
          5 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
            4·
            5 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!@feddit.nuEnglish
              3·
              5 months ago

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

              • mexicancartel@lemmy.dbzer0.comEnglish
                1·
                5 months ago

                I had to make an alias vim=vim.tiny in raspberry pi since standard vim is not installed by default

        • Xanza@lemm.eeEnglish
          7·
          5 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.

    • Xanza@lemm.eeEnglish
      10·
      5 months ago

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

  • mogoh@lemmy.ml
    30·
    5 months ago

    Java? vi!
    COBOL? vi!
    SVG? Believe it or not, vi!

    /s

    • pivot_root@lemmy.world
      8·
      5 months ago

      BMP? vi and control-v!
      WAV? There’s probably a plugin for that!

    • frezik@midwest.social
      7·
      5 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.

  • kata1yst@sh.itjust.works
    29·
    5 months ago

    Everyone at work is using Cursor these days, except for me using neovim and my emacs loving coworker. When we present during pair programming our coworkers go nuts over watching our workflows and trying to figure out if they can do similar things in Cursor lol.

      • kata1yst@sh.itjust.works
        11·
        5 months ago

        It’s a version of VSCode with deep AI integration. I’ll say, it’s pretty good from a workflow perspective. But I just use Avante to similar effect.

    • Possibly linux@lemmy.zipEnglish
      114·
      5 months ago

      Neovim and emacs are both incredibly heavy. I would rather just use something like VScodium.

      Nano and Vim are small and quick.

      • Drew@sopuli.xyz
        10·
        5 months ago

        I would like you to open the same file in neovim, Emacs, and vscodium and see the ram usage.

        Matter of fact I’ve done this for you (230 line json):

        heavily customised emacs: 34 MB
        heavily customised neovim: 32 MB
        Newly installed vscodium: 300 MB+

        both emacs and neovim have syntax highlighting, completion, mouse support, terminal support, window management, and so on

  • Black Xanthus@lemmy.worldEnglish
    251·
    5 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.

    • AnarchistArtificer@slrpnk.netEnglish
      17·
      5 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.

        • AbsentBird@lemm.eeEnglish
          3·
          5 months ago

          Basically every Unix-derived OS comes with vi. Emacs came out in 1976, macs didn’t exist until 1984.

        • Rusty@lemmy.caEnglish
          2·
          5 months ago

          Yes and it’s better than TextEdit that is bundled with MacOs

    • enumerator4829@sh.itjust.worksEnglish
      8·
      5 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…)

    • sunshine@lemmy.ml
      7·
      5 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@sopuli.xyz
      7·
      5 months ago

      you have offended all 6 of us, prepare for retribution

    • frezik@midwest.social
      61·
      5 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.

    • geoff@lemm.ee
      5·
      5 months ago

      When people are free to choose the best editor for them, we ALL win.

      • mvirts@lemmy.world
        5·
        5 months ago

        Unless it happens to be Ms word, in which case we all lose

    • Black Xanthus@lemmy.worldEnglish
      1·
      5 months ago

      There we are. Now all is right with the world.

      What would an editor discuss be without those that support Emacs?

      I noticed we even got some doom evil advocates! Lemmy truly has come off age!

      (Note: as tone is hard on text: I’m genuinely pleased, and agree that the joy of Linux/Unix is it’s variety. Thank you everyone)

    • hylobates@jlai.luOP
      6·
      5 months ago

      Ah, nice one! Didn’t realize it could even be done.

      • Radioactive Butthole@reddthat.comEnglish
        5·
        5 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.

    • gwilikers@lemmy.ml
      6·
      5 months ago

      Vi is actually a predecessor to Vim but many people, myself included, will alias Nvim or Vim to Vi. And I’ve seen people use Vi as a catch all too.

    • sunshine@lemmy.ml
      31·
      5 months ago

      I usually refer to im as “vi” just to make people think I’m old school and cool save time typing that last character.

      But Obsidian??

          • SynopsisTantilize@lemm.ee
            1·
            5 months ago

            Obsidian the note taking program, I use it for storing my code, and also a KB at work. It’s made for note taking, but I use it like it’s my git, and wiki for an IT team.

  • NocturnalMorning@lemmy.world
    2314·
    5 months ago

    I know this is supposed to be a joke. But, VI is awful, and i can’t believe anybody would use that over a modern editor. But, I know some people who like it.

    • LastYearsIrritant@sopuli.xyzEnglish
      381·
      5 months ago

      Literally the only thing I code in at work. Have done so for decades.

      Can’t stop, won’t stop.

      • Jumuta@sh.itjust.works
        83·
        5 months ago

        how do you tolerate the 0 and $ to jump to the ends? it’s so painfully inconvenient and made me switch to helix where it’s g->h and g->l. do you not use the default keymap?

        • LastYearsIrritant@sopuli.xyzEnglish
          14·
          5 months ago

          Shift-A and Shift-I to append at the end or insert at the start.

          Once you know the system, it’s much easier to do everything without having to take your hands off the keyboard to use a mouse.

            • hinterlufer@lemmy.world
              61·
              5 months ago

              Most nvim users I know have their setup very much customized. That takes time, effort and is a pita. But afterwards you have a tool that just works like you want it to work, and is super fast (at least compared to VSCode).

              • KeenFlame@feddit.nu
                2·
                5 months ago

                I don’t understand why you compare it to vs code, it’s not a text editor and besides, it has vim too?

                • hinterlufer@lemmy.world
                  2·
                  5 months ago

                  They’re both code/text editors, or what would you call VSCode instead? An IDE? you can make an IDE out of nvim if you want.

                  Yes, there is a vim mode in VSCode, but in some cases it can be very slow (like editing a few thousand columns at once), and is not as tightly integrated.

        • notabot@lemm.ee
          6·
          5 months ago

          Muscle memory mostly. I miss vim keybinding when I have to type in anything else, including Lemmy.

          • FauxLiving@lemmy.world
            1·
            5 months ago

            There’s a CLI Lemmy app, no idea if it uses vim keys but it would surprise me if it wasn’t an option.

        • Radioactive Butthole@reddthat.comEnglish
          4·
          5 months ago

          You could also do I or A followed by esc for the same effect.

          Most often though I use / or ? to just go specifically where I want.

        • someacnt@sh.itjust.worksEnglish
          2·
          5 months ago

          For me, it’s that it is shorter to type 0. Also I cannot somehow recall 2 letter commands

        • Petter1@lemm.ee
          101·
          5 months ago

          Imagine thinking modern IDE are more efficient than vi 😯

          Curser is more intuitive, I agree, but you will never win a code race against similar skilled coder on vi…

          • NocturnalMorning@lemmy.world
            61·
            5 months ago

            Coding isn’t a race, it’s a team sport. And if you think its not, you’re in the wrong profession.

            • Petter1@lemm.ee
              71·
              5 months ago

              Umm, there are regularly coding race events here where I live…

              Coding can be hobby as well, you know.

              Not all of this world is pure capitalism, some have some free time doing stuff they want how they want.

              Coding is not my profession (right now)

              • KeenFlame@feddit.nu
                2·
                5 months ago

                If you value it as a hobby, don’t make it that again :)

                • Petter1@lemm.ee
                  1·
                  5 months ago

                  😄 why would someone not make his hobby his profession?

                  I have never coded as major part of profession, yet, but I am on the way there.

              • NocturnalMorning@lemmy.world
                1·
                5 months ago

                Coding is a team sport bcz it takes a lot of people to maintain large complex systems, has nothing to do with capitalism. Hell, I make video games in my spare time, and can barely manage a half asked attempt at a game for fun when working alon (unless I want to spend a lot of time on it). Alternatively, I can make a decently playable game with a few more people helping me. Coding is just a lot of work if you want to make anything substantial, just how it is.

    • dohpaz42@lemmy.worldEnglish
      21·
      5 months ago

      Modern “vi” is typically a symlink to vim, and as long as compatibility is disabled it’s very useful; especially when working over ssh or quick and dirty config editing that doesn’t warrant a full blown ide to be started up.

        • Possibly linux@lemmy.zipEnglish
          7·
          5 months ago

          It is a pain for larger files. It small and light but doesn’t have the same featureset.

        • Petter1@lemm.ee
          62·
          5 months ago

          Nano is for people that are too lazy to learn vi if they much time (ergo not needing it)or have too less time to learn it (even tho, they would get so much time back in return, if they would learn vi)

          This applies only to people that regularly work with GUIless headless machines

          • hemko@lemmy.dbzer0.comEnglish
            3·
            5 months ago

            Okay I kinda get it if you regularly write scripts or configs on headless machines, though even then I’d think using just vscode remote development plugin would be my tool of choice.

            Usually I use nano if I just need to do a quick change to a file, or even on my personal device if it requires sudo (such as apt sources or fstab) and I do it just once so don’t bother thinking how to use sed for it

          • Overshoot2648@lemm.ee
            2·
            5 months ago

            Micro is the best. I work with servers all the time and it’s so nice to just be able to use my mouse and normal shortcuts.

    • andros_rex@lemmy.world
      15·
      5 months ago

      I prefer vim, but vi is nice too. (I miss Vimperator for Firefox)

      It’s just so fast when you get it down. It works well with a cli-only work flow. Why use mouse when type very fast?

      There’s immense pleasure and honor in writing C the way our ancestors did.

    • vrighter@discuss.tchncs.de
      8·
      5 months ago

      it’s not everyone’s cup of tea, and that’s fine. It’s not awful though. Arcane, yes. very powerful? also yes.

  • festnt@sh.itjust.works
    9·
    5 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

  • Anna@lemmy.ml
    5·
    5 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