Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2020 09:23:56 +0100
From:      Ottavio Caruso <ottavio2006-usenet2012@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   OT: vim, was: nvi expandtab - tabs to spaces
Message-ID:  <CAEJNuHwkj325k7wVeb4NMv8k3hgYX-n=3NCBE7%2B7LQnscQj%2BEw@mail.gmail.com>
In-Reply-To: <20200527041008.GD95043@mithril>
References:  <0c30ebf7-e5b1-6fcb-d81e-2a039415f8a1@chezmarcotte.ca> <CAEJNuHy=5TvqDSo880na%2B0my5T_y1fmtF4ebtp_%2Br0UB0J24MQ@mail.gmail.com> <20200527041008.GD95043@mithril>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 27 May 2020 at 05:10, Jacques Foucry <jacques+freebsd@foucry.net> w=
rote:
>
> Le mardi 26 mai 2020 =C3=A0 21:54:10 (+0100), Ottavio Caruso via freebsd-=
questions =C3=A0 =C3=A9crit:
>
>
> Hello friends,
>
> > On Tue, 26 May 2020 at 14:48, Derek (freebsd lists)
> > <482254ac@razorfever.net> wrote:
> > >
> > > Hiya,
> > >
> > > After all these years, I'm finally wanting to switch tabs to spaces f=
or
> > > certain documents (yaml comes to mind, python another), but I'm findi=
ng
> > > the FreeBSD nvi lacks expandtab, yet OpenBSD's (as of 6.7) supports t=
his
> > > option.
> > >
> > > What is the canonical way to use space indentation in FreeBSD's nvi?
> > >
> > > Is there any appetite (from committers) for a patch/import of the
> > > feature from OpenBSD?
> >
> > After careful checking, the expandtab option was introduced to NetBSD f=
irst:
> > http://mail-index.netbsd.org/tech-userlevel/2008/12/10/msg001482.html
> >
> > by Luke Mewburn and probably backported to OpenBSD later. This has
> > never gone (I think) into FreeBSD base. If one wants to make a port
> > out of it, they can look at the pkgsrc port:
> > https://pkgsrc.se/editors/nvi
> >
> > and adjust Makefile, etc.
> >
> > Note that the $HOMEPAGE is 404 and the distfile is cached somewhere on
> > the NetBSD servers.
>
> Not sure to =E3=84=A9nderstand the problem.

Yes, because you need to read the thread from the start.

>
> Octavio want to switch tab to spaces in it's sources files.

Actually, it's a NetBSD patch.

> He use nvi (I
> don't, I use vim) and expandtab seems to not work.
>
> I =D8=A5ad the same issur with vim and discover the :retab command which =
actually
> does visualy the expandtab job.
>
> The sequesce is:
> <esc>:expantab
> <esc>:retab

I use the latest vim and I don't have retab:
: set retab?
E518: Unknown option: retab?

>
> Again I don't use nvi but I thingk that's could be =C3=A6 solution.
>
> Please execuse me if I am out of goal and my intervention is not in the
> subjet.

As above ^.

--=20
Ottavio Caruso



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEJNuHwkj325k7wVeb4NMv8k3hgYX-n=3NCBE7%2B7LQnscQj%2BEw>