Index | Thread | Search

From:
Christian Schulte <cs@schulte.it>
Subject:
Re: Another vi(1) paste improvement (Rationale)
To:
obsd@mulh.net, tech@openbsd.org
Date:
Wed, 3 Sep 2025 22:58:24 +0200

Download raw body.

Thread
Am 03.09.2025 um 06:22 schrieb obsd@mulh.net:
> After you yanked severl lines with for example  3yy
> paste multiple copies with  pPPPP  (or p4P if you need five copies)
> The lines pasted should be how you want  123 123 123 123 123
> 

And that's exactly how it is.

vi test
i
1RET
2RET
3RET
ESC
3^b
3yy
3^d
pPPPP (or p4P)

Result:
1
2
3
 1
^ Cursor keeps the position *you* moved it to. Not a bug.
2
3
1
2
3
1
2
3
1
2
3
1
2
3

-- 
Christian