• martinb@lemmy.sdf.org
    link
    fedilink
    arrow-up
    8
    ·
    21 hours ago

    It’s my go to editor wherever possible.

    Learn the keybindings, play a few vim games and install an opinionated suite of plugins like lazyvim.

    Before you know it, you too will curse every other editor in existence which doesn’t at least offer vim keybindings 😄

    • gandalf_der_12te@discuss.tchncs.de
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      17 hours ago

      the problem with custom keybindings i have is i work on a lot of different machines (i used 3 different desktop computers yesterday) and keybindings presumably only work on my machine.

      • expr@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        4 hours ago

        That’s why vim is so great: it has a ton of power built right into it without customizations, and it’s already installed on basically any unix-like system. Unlike, say, vscode, it can do a ton of stuff out of the box without any plugins at all.

      • 418_im_a_teapot@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        9 hours ago

        Just push your settings to a public github repo or gist and you can wget them. Hell, if you have a domain just setup an easy-to-remember page that redirects to the github link … domain.com/configs. There are so many options for handling this situation.

      • expr@programming.dev
        link
        fedilink
        arrow-up
        7
        ·
        20 hours ago

        It’s simply muscle memory. You think of the action and your fingers do it faster than you can consciously think of where they need to go. But I also use a split ergonomic keyboard (the Iris) and have symbols accessible from home row behind a layer. Though I can switch to a standard keyboard as needed too.

        • 418_im_a_teapot@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          9 hours ago

          I’ve long wanted a keyboard like that as someone who just writes code all day everyday. But my fear is that I’ll get stuck on a regular keyboard, like when I’m traveling, and just be completely helpless having forgotten how to type normally.

          • expr@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            8 hours ago

            It’s not as big of a deal as you might think. You still have a lot of your muscle memory from regular keyboards. It might take a little while to adjust when switching between the two, but it’s not that bad.

            If you switch between the two enough, you can actually type on both equally well.

        • pmk@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          16 hours ago

          I have a swedish keyboard because I am swedish, we have three extra letters compared to the english alphabet. Which means that the standard swedish keyboard layout had to tuck away some symbols into very awkward places using AltGr to type. Programming and using Vim is a bad experience with a swedish keyboard imho.

        • Jumuta@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          19 hours ago

          oh that’s cool, how do you do home row modifiers like that?

          do you use that for normal typing as well or is it just for symbols?

          • expr@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            16 hours ago

            A lot of mechanical keyboards these days are programmable using QMK Firmware. I actually use https://www.caniusevia.com/ instead though, which uses (a subset of) QMK under the hood but allows programming the keyboard via a Web app on the fly.

            For my layout, I have the standard QWERTY layout for the unmodified layer (layer 0, holding no keys). Then I can hold down a thumb key for switching to a different layer, which has things like symbols, F1-F12, Home, End, etc. The layout I use isn’t too far off the default Iris layout, just a few tweaks here and there (like one that allows me to hold a key for control, or tap that key for escape).