Monday, June 25, 2012

VIM multiple clipboards(registers), without leaving insert model

To view your current registers type :reg. You'll notice that every register is prefixed with the symbol ".
How do you use these things? Let's say you want to copy a line into a specific register: "kyy will yank the current line into register "k. If you later want to paste register "k you can do this: "kp
If you want to put without leaving insert model:
ctrl-r follwed by the register lets you paste the contents of a register without leaving insert mode.
Ctrl + r" Put from the default register
Ctrl + rd Put from register d

No comments:

Post a Comment