Google

Lubee's Blog--Digtial IC Fan's Home

WELCOME IC FANS' HOME! --ASIC/IC Design,Logical Design,STA,Digital IC Design,Synthesis, and so on.

2009-09-07

VIM -- Copy to a named buffer

VIM -- Copy to a named buffer

This is a tip that will work great with this previous tip to allow for copy & paste between files.

When yanking or deleting something, vim can to store a copy of it
to a named buffer. To utilize this, put the double " and a letter before your command.
Step one:

Yank current line into the named buffer a

"ayy

or Delete the current line into the named buffer b

"bdd

Step two:

Put the contents of the named buffer "a" below current line

"ap

Any of the 26 letters of the alphabet can be used yes as the named buffer

Labels: