`zy` and `zp` in recent vim
This task is very common for manipulating the column
Set 1:
|of lines.
|different lengths.
|now together.
Set 2:
My blocks
All have
But are
Result:
My blocks|of lines.
All have|different lengths.
But are|now together.
The steps as follows:
- Use
c-v
andD
to copy the line in column from Set 2. - Go the the first line of Set 1 and paste with
zP