I know not everyone likes using vim but I thought those who do could share a good reason to get into it. For me its the repetition of the last change with the push of the dot key. Replace the current word with another and move the cursor to the next word you wish to replace. It makes the editor so versatile and feels very satisfying.

  • udon@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I think these two talks by Chris Toomey sum up pretty well everything that is nice about vim:

    1. https://www.youtube.com/watch?v=wlR5gYd6um0
    2. https://www.youtube.com/watch?v=lwD8G1P52Sk

    If you’ve used vim for a while now and feel a bit stuck, they bring you to the next level and are pretty straightforward.

    That said, other editors also have their pros and I’ve become a bit tired of looking for the most efficient one or so. It really doesn’t matter in my job if I need x hours or y hours to write something (although vim probably scores well there). I use it nowadays mostly because it works well for me, it feels kind of fun, it doesn’t eat my computing resources, and it’s here to stay (free).

    • tlf@feddit.deOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Thank you for the resources, I’ll try them once I get the chance to work on a project for awhile again. The reasons why you like it are great to hear, as many videos tend to focus on speed over other aspects. If speed was my only concern I could have stayed with an IDE which I knew how to use. For me vim is both exciting to learn as a skill and convenient because of it’s server friendly interface.

  • mekkagodzilla@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I use vim macros all the time. For example, you have a bunch of lines that need the same 3 operations done:

    • insert " at the beginning of the line
    • insert ", at the end on the line
    • indent

    Press qa, do what you need to do on one line and go one line below, press q again to stop recording the macro, then you can do it 50 times with 50@a.