Vim registers - how to use Vim multiple clipboards feature
Using registers in Vim is like having a [large] number of clipboards where you can copy and paste from whenever you want. Here is how to use that feature.
Just prepend "[register_name]
to your regular copy/paste command. A register_name
could be anything (any letter or number).
Examples:
- Vim copy current line to the register
w
"wyy
- Vim paste from
w
register
"wp
-
Vim copy selection to the register
w
. First select some text in e.g. visual mode."wy