• puppy
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    11 months ago

    Buffers are great. Comes very handy when creating macros in vim.

    • unhinge@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      11 months ago

      I think you mean registers not buffers. buffers are file(s) loaded in memory while registers contain text yanked/deleted/last command/last search, etc.

      • puppy
        link
        fedilink
        arrow-up
        3
        ·
        11 months ago

        What do you mean by regular target? I am either yanking from the OS buffer or yanking things from 2 different buffers. Or I have 2 macros where they yank from different buffers.

    • chonglibloodsport
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      What’s annoying about them is that there isn’t a simple way to clear a register which means you have to use both “r and “R in macros.