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: VIM
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home