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.

  • abruptly8951@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    Ooh fun, these all take 2-3 key presses

    • Delete the contents inside a function delimiter by {
    • Delete the next nine words
    • Delete the contents inside long text quotes

    And these more/less key presses

    • Start a regex search with a single button
    • Perform the same edit 100 times in a jagged files (good luck not f’ing up your multi cursor)

    But it misses the point, of course every editor can do just about anything, but there is a lot more mouse involved and learning it is more difficult because the keybinds aren’t combinatorial

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      2 months ago
      1. Ctrl-shift-}
      2. How often do you want to delete exactly 9 words? It’s much easier if this is interactive.
      3. Not a common task IMO.
      4. Ctrl-F and click a button. This is rare enough that a button click is fine.
      5. Not sure what you mean by “jagger files” but I find multiple cursors are a lot easier to get right than e.g. regex replace because they give you instant feedback. Vim sequences are more like “oh you got it wrong, better start from scratch”.