How to use vim registers
Old style cut/copy/paste uses only one clipboard. Vim can do much better. By using multiple clipboards (called registers) you can hold multiple code fragments in memory and paste the one you need.
Here's the short how-to:
Precede any yank/cut/paste command with "[register] to have the command performed on the named register.
### Examples:
Copy a line to register a
"ayy
(you can replace a with any letter from a-z)
Paste from register a
"ap
More Info
For the full documentation on using registers, type in vim:
:help registers
Written by Ynon Perek
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#