Index | Thread | Search

From:
NilsOla Nilsson <nilsola@abc.se>
Subject:
Re: Improvement for vi(1) paste comand (updated diff)
To:
Walter Alejandro Iglesias <wai@roquesor.com>
Cc:
tech@openbsd.org
Date:
Thu, 19 Feb 2026 12:10:17 +0100

Download raw body.

Thread
On Thu, Feb 19, 2026 at 09:19:00AM +0100, Walter Alejandro Iglesias wrote:
> > 
> > The use cases are not necessarily the same for line
> > mode as for cursor mode.
> 
> What I find useful is to get *coherence* in a implementation, since this
> helps to deduce, reducing the need to memorize.

What is more important, at least for me, is that it is
the same for different editors, e.g. vi, nvi, vis, vim,
nvim, vile etc which it is for line mode.
> 
> Of course, a same behaviour doesn't fit all cases, but as far as I
> understand, depending of whatever you need to do after pasting the text,
> it could be just as convenient the cursor to land on the first or the
> last line.  Am I wrong to assume that the probability is fifty-fifty?

To paste the same set of lines in a sequence seems
uncommon, I don’t see that in text anywhere.


-- 
Nils Ola Nilsson, 🐞 nilsola@abc.se, 🦗 +46-70-862 26 96