Download raw body.
Another vi(1) paste improvement (Rationale)
Am 03.09.2025 um 22:58 schrieb Christian Schulte: > 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 > Sorry for the noise. I will not disturb you again on this issue. There is not a single editor I know off, which would move the cursor automatically in such a situation. Just start some modern IDE. Eclipse, Netbeans, you name it. Select some text using the mouse. Hit CTRL-C. This will not move the cursor and everyone would freak out, if the cursor would magically move to some other location after that CTRL-C. I am not sure what issue he is trying to solve. Regards, -- Christian
Another vi(1) paste improvement (Rationale)