Copying and pasting with Vim and YankRing
Yank and Pull

With the YankRing plugin, Vim's yank and pull features become even more powerful.
You can tell that Vim is an old text editor by its use of "yank" for "copy" and "pull" for "paste." However, never let the obsolete terminology fool you – in many ways, Vim's yank and pull are still more sophisticated than anything you can find on most modern desktops. Add the YankRing plugin [1], and Vim's yank and pull capacities become even more powerful.
For some users, unenhanced Vim may be enough for their needs. Anything pulled or deleted is stored, the most recent first, in a register – Vim's name for the buffer that serves as a clipboard. A register can contain up to nine items, which you can view with the command :reg
or :register
. If one register is not enough, you can have up to 26, each identified by a single lowercase letter.
A register is specified by prefacing a command with its name, so that ayw
copies a word and puts it in register a.
[...]
Buy this article as PDF
(incl. VAT)