When we yank or delete text it is stored in a register where we can put/paste it later by pressing P or p.
In insert mode we can put/paste text from the default register by pressing control+r and then "
We can yank into registers a - z
To yank in word to register a press "ayiw
To put from register a press "ap
To put from register a in insert mode press control+r a
To yank text into register b from visual mode, go into visual mode (with control+v) and select the text you would like to yank. Then press "by
To paste from register b in visual mode, go into visual mode (with control+v) select text and press the lower case c (for change) and paste from register b from insert mode with "bp
Append text in a register by yanking/deleting text into the upper case letter, replace text in a register by yanking/deleting into the lower case letter
See the complete Vim playlist at:
https://www.youtube.com/watch?v=1lzXr-MztOU
See the complete Vim playlist in a single video at:
https://www.youtube.com/watch?v=3G6kAEvbv2A
Website link:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10002
11 Comments