nvi expandtab - tabs to spaces
Ottavio Caruso
ottavio2006-usenet2012 at yahoo.com
Tue May 26 16:42:53 UTC 2020
On Tue, 26 May 2020 at 17:21, Einar Indridason <einar.indrida at gmail.com> wrote:
>
> On Tue, May 26, 2020 at 4:17 PM Derek (freebsd lists) <
> 482254ac at razorfever.net> wrote:
>
> > On 2020-05-26 11:08 a.m., Ottavio Caruso via freebsd-questions wrote:
> > > On Tue, 26 May 2020 at 14:48, Derek (freebsd lists)
> > > <482254ac at razorfever.net> wrote:
> > >> Is there any appetite (from committers) for a patch/import of the
> > >> feature from OpenBSD?
> > >
> > > What version of vi is on OpenBSD 6.7? On my 6.6 [Version 1.79
> > > (10/23/96)] the expandtab is not available, but on NetBSD 9.0 [Version
> > > (1.81.6-2013-11-20nb4], it is.
> > >
> > > Be careful importing features from the 1.xx branch to the 2.x.x., the
> > > one in FreeBSD.
> > >
> >
> > Yeah, I'm not sure. I'm not even going to start to bark up that tree,
> > without some support.
> >
> > Thanks
> >
>
> There is also 'vim' (and you could always do :set compatible to make vim
> behave more like vanilla vi)
Not the OP, but that is not good. Vim, with or without compatibility
mode, will not behave exactly like vi. Apart from using vim, which is
probably the best solution, an alternative would be having a port from
a different nvi tree. The issue gets even more complicated by the fact
that there are multiple vi forks and all of them are slightly
incompatible with each other.
--
Ottavio Caruso
More information about the freebsd-questions
mailing list