• @NocturnalMorning@lemmy.world
    link
    fedilink
    102 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.

      • @Jumuta@sh.itjust.works
        link
        fedilink
        52 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.xyz
          link
          fedilink
          English
          142 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
              link
              fedilink
              52 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
                link
                fedilink
                22 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
                  link
                  fedilink
                  22 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
          link
          fedilink
          62 months ago

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

        • Radioactive Butthole
          link
          fedilink
          English
          42 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.

        • @Petter1@lemm.ee
          link
          fedilink
          92 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…

            • @Petter1@lemm.ee
              link
              fedilink
              62 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)

                • @Petter1@lemm.ee
                  link
                  fedilink
                  12 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.

                  • @KeenFlame@feddit.nu
                    link
                    fedilink
                    22 months ago

                    I did it. Stopped being a hobby because after work you will be tired of it, it’s not healthy to code more. All you are doing is giving up what you code for money, and that’s sweet, but eventually it is eroding to be told how and what to code which kills the fun, especially if you adhere to efficiency frameworks and work really hard

              • @NocturnalMorning@lemmy.world
                link
                fedilink
                12 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
      link
      fedilink
      English
      222 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
          link
          fedilink
          English
          72 months ago

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

        • @Petter1@lemm.ee
          link
          fedilink
          42 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.com
            link
            fedilink
            English
            3
            edit-2
            2 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
            link
            fedilink
            22 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
      link
      fedilink
      152 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.