On Fri, Jul 18, 2025 at 01:58:12PM -0700, Bakul Shah wrote:
On Jul 18, 2025, at 3:09???AM, Larry McVoy
<lm(a)mcvoy.com> wrote:
In vim, you just have a split view of the same
file. Changes in
either window will show up in the other window. For example
vim foo.c # foo.c exists and has a 100 lines
:sp
In nvi
:E
now you have both windows looking at the same
file
Ditto
start changing something and it is done in both
windows.
In nvi changes don't show up right away in the other window
but show up once you switch to it. So not as good as vim but
in practice it doesn't matter much since usually you show
*different* parts in two windows pointing at the same file.
Hmm, when I tried nvi I don't think it had :E or I missed it. I read
release notes so it's strange I didn't catch it. Or maybe it was added
later because Keith was pretty focussed on 100% vi compat and I never
saw :E in vi either.
Whatever, you are happy with nvi, I'm happy with vim, so be it. Though
I'm teaching my kid vim because I strongly suspect vim is much more
widely used. This is starting to feel like a BSD vs Linux argument and
we know how that turned out.