I have some long text on Yank var e.g. "Hello all how are you ?"
I have a rectangular selection between abc and ABC /a llC-vjj
a A
b B
C C
And I want to past my long text without having to type it
To get this:
a Hello all how are you ? A
b Hello all how are you ? B
c Hello all how are you ? C
From @christian-Brabandt I select (|
is where my cursor is) not the line but characters like this:
|Hello how are you ?
vllllllllllllllllllly
then I put the cursor on 'a'
a A
b B
C C
and press 'p'
I got
aHello how are you ? A
b B
C C
So with this method I have to add a space with i <ESC>
, go on b
type pi <ESC> go on
c` ...
Not optimal because not using the block selection ;(
p
." But I guess that is not what you want. Could you please provide a example of the result you want to achieve?blockwise
orcharacterwise
before pasting, e.g. like this (assuming your yanked text is in registera
:call setreg("a", getreg("a"), 'v')