Wynn Netherland changelog.com/posts

Yank Ring - yank history manager for Vim

Nice plugin to manage your “yank” history in Vim, like a clipboard history of sorts. Items get added to your yank ring as you yank, delete, and change text:

    yy - Adds the current line to the yankring.
    dd - Adds the current line to the yankring and deletes it.
   5yw - Adds 5 words to the yankring.
  "ade - Deletes the word, and puts it into both the yankring and the "a register.
    cw - Changes the word and stores the previous value in the yankring.
10"zyy - Places 10 lines into both the yankring and the "z register.
 :1,4YRYankRange   - Similar to 1,4y
 :3,$YRDeleteRange  - Similar to 3,$d

You can invoke the Yank Ring window with :YRShow to browse your history visually.

Yank Ring in action

Check out the README for detailed usage.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00