I’d like actual examples instead of “I work faster”, something like “I can move straight to the middle of the file with 7mv” or “I can keep 4 different text snippets in memory and paste each with a number+pt, like 2pt”, things that you actually use somewhat frequently instead of what you can do, but probably only did once.

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    4 months ago

    Ever had to make the same change on dozens of lines? Now you can do it in seconds.

    This would be a big advantage… except multiple cursors were invented so I can easily do that without having to memorize a whole new editing language.

    • Balinares@pawb.social
      link
      fedilink
      arrow-up
      7
      ·
      4 months ago

      Multiple cursors are fantastic for certain use cases, but will not help you when each line needs a different input – if you’re swapping arguments in function calls, if you’re replacing one bracket type with another around contents of arbitrary length, etc.

      Mind you, if your objective here is to not learn a new thing, then you can just go ahead and do that, you don’t need an excuse.

      • lad@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        4 months ago

        Yeah, I usually do that with regexp replacement in other editors, but sometimes it’s too hard to express as a regular expression

    • zagaberoo@beehaw.org
      link
      fedilink
      arrow-up
      2
      ·
      4 months ago

      That’s just one thing the editing language does, though. There’s no single feature you can point to as the smoking gun; it’s all the small advantages added together that make vi worthwhile.