• olafurp@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I’m sorry but your wife won’t be impressed by basic vim motions. You need to learn some more advanced motions to get her wet.

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    “See if you just learn these 87 simple keyboard shortcuts, you won’t need to simply drag with the mouse and cut and paste at all!”

  • Voroxpete@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    Deep down, every Vim user just wants one person to tell them that the countless hours they spent leaning to use it weren’t a total waste of time.

    • Thrashy@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      3 months ago

      Look, some of us old farts started on Linux back before nano was included by default, and your options for text editing on the command line were either:

      1. vi/vim, a perfectly competent text editor with arcane and unintuitive key combos for commands
      2. emacs, a ludicrously overcomplicated kitchen-sink program that had reasonable text-editing functionality wedged in between the universal woodchuck remote control and the birdcall translation system

      Given those options, most of us chose to learn how to key-chord our way around vim, and old habits die hard.

  • humdrumgentleman@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    There is simply no plugin to replace that functionality. Emacs users would tell you otherwise, but you have to remember that it’s all about the curves for those Lisp folks. I think this is probably a new software worth learning even if it lacks interoperability with some of your existing toolkit.

  • tiredofsametab@kbin.run
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    As someone who’s been a software developer for over a decade and in IT even longer, I still don’t use vi/vim for anything other than when crontabs have it set as the editor.

    • Hexarei@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      Honestly if you don’t use vim motions in your ide of choice, you’re missing out big time. Being able to do things like “Delete everything inside these parentheses”. di( or “wrap this line and the two lines below r in a pair of {}” ys2j{ , or “swap this parameter with the next one” cxia]a. with a single shortcut is game changing.

      Even just being able to repeat an action a number of times is ridiculously useful. I use relative line numbers, so I can see how many lines away a target is and just go “I need to move down 17 lines” and hit 17j.

      Absolutely insane how much quicker it is too do stuff with vim motions than ctrl-shift-arrows and the like

      • oce 🐆@jlai.lu
        link
        fedilink
        arrow-up
        0
        ·
        3 months ago

        Absolutely insane how much quicker it is too do stuff with vim motions than ctrl-shift-arrows and the like

        Those tasks are a very small part of work time, so most people don’t feel the need to optimize it.

      • tiredofsametab@kbin.run
        link
        fedilink
        arrow-up
        0
        ·
        3 months ago

        That’s really neat, but I don’t think I do that often enough to really make the performance hit of learning a whole new thing and memorizing keyboard shortcuts and commands worth it. I don’t find myself refactoring code a ton, especially after moving to a more TDD-like model.

        • Hexarei@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          3 months ago

          It’s less about refactoring and more about navigation of your code while editing. Ever wanted to delete a single word? daw deletes the word your cursor is currently in. How about "copy everything up to (but not including) the nearest “D” on the current line? yfD.

          The whole point is that editing code in the middle of writing it, not just refactoring it, is immensely faster.

  • sik0fewl@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    You might’ve moved around too quickly. Stick to motion in the home row to start - hjkl. There are several ways to enter insert mode but DO NOT attempt it before she’s familiar with the basic motions.