Chapter 10Copy and Paste
Vim’s cut, copy, and paste functionality differs from what you may be used to. For a start, the terminology is different, as we’ll see in Vim’s Terminology Versus the World. In Tip 59, we’ll learn how to use Vim’s delete, yank, and put commands for a handful of common cases.
Instead of dealing with a single system-wide clipboard, Vim provides a couple of dozen registers where we can store regions of text. We’ll learn more about Vim’s registers in Tip 60. Vim’s put command is smart about how it treats line-wise and character-wise text, as we’ll see in Tip 62. The put command has some interesting quirks when used from Visual mode, as we’ll discover in Tip 61.
Finally, in Tip 63, we’ll learn about how to use the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access