It took me very long time to realize that putting (pasting) something with p
or P
which visual-block selects with ctrl+v
and yanked (copied) with y
, preserves the manner before, so that, when the copied text was being in the middle of lines, it will then be copied among middle of other text whenever possible.
On the contrary, select-line with V
does not paste the copied line among other text, but starting on another line.
For instance, suppose I have by now:
12/12: Avocado. Apple.
12/13: Bean. Banana.
12/14: Cherry. Citron.
12/15:
12/16:
12/17:
When I want to cut Avocado
and Bean
and Cherry
, by selecting (selection represented as _
)
12/12: ________ Apple.
12/13: ________ Banana.
12/14: ________ Citron.
12/15:
12/16:
12/17:
and pressing y
, and move cursor to the following line (cursor represented as _
),
12/12: Avocado. Apple.
12/13: Bean. Banana.
12/14: Cherry. Citron.
_2/15:
12/16:
12/17:
and press P
. It results:
12/12: Avocado. Apple.
12/13: Bean. Banana.
12/14: Cherry. Citron.
Avocado.12/15:
Bean. 12/16:
Cherry. 12/17:
But what I wished was:
12/12: Avocado. Apple.
12/13: Bean. Banana.
12/14: Cherry. Citron.
Avocado.
Bean.
Cherry.
12/15:
12/16:
12/17:
This confused me every time, until I realized that because they were copied in the middle of line, they were thus pasted in the middle of line, mimicking the way they were.
It seems the best way to paste something starting on another line, is moving cursor to the beginning with 0
, and down 3 lines, to the new place;
and entering insert mode with i
, and pressing <return>
3 times, and move cursor back 6 lines, and right, back to the original place;
and copying, and again move to the new place, and paste, as I did above.
Can I save a few strokes? Or what do you usually do?
(Edit: What's said above was how I understood it the moment I asked this. See those answers for correct explanation : )