• JoYo@lemmy.ml
    link
    fedilink
    English
    arrow-up
    40
    ·
    22 days ago

    ive never had to think about clipboard buffers until i used a modal editor.

    now i spend %60 of my time trying to figure out where the copied symbol went.

    • evatronic@lemm.ee
      link
      fedilink
      English
      arrow-up
      7
      ·
      22 days ago

      I don’t have the name handy, but there’s at least one plugin for vim that shows buffer previews in a popup. I’ve got it mapped to leader-sb (for “show buffer”).

    • unhinge@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      22 days ago

      You can see all registers in use with :registers, to paste from a register say "2 in insert mode use key combination <ctrl-r>2 or in normal mode "2p. You can check out more in :help registers. Unnamed register or "" is the system clipboard I think. To copy texts in a register you can prepend yank (/delete/cut, etc.) with that register "_ (for black hole register[1]) This is for neovim. Have keybinds for them and there saved you a plugin :D


      1. Text yanked in this register is gone, i.e. it’s not saved in any register. ↩︎

    • whats_all_this_then@programming.devOP
      link
      fedilink
      arrow-up
      6
      ·
      22 days ago

      So far I haven’t been brave enough for that feature. It’s either “that main place yank goes”, “system clipboard”, or “that place that makes it disappear” for me