vim named buffer
Example: copy / paste a block of text:
| Put cursor on the first character of the block and set marker 'm': mm Move cursor to the position right after the last character of the block. Now move to some other place and put the buffer after the cursor: |
mm
Move cursor to the position right after the last character of the block.
Yank from this position back to the marker 'm' into a named buffer 'b':
"bd`m
("b - defines a buffer, d - delete command, `m - moves to the marker)
Now move to some other place and put the buffer after the cursor:
"bp
Comments
Post a Comment