OT: vim, was: nvi expandtab - tabs to spaces

Michael Schuster michaelsprivate at gmail.com
Wed May 27 08:27:34 UTC 2020


just one thing: it's not "set retab", but ":retab" (a command)

On Wed, May 27, 2020 at 10:24 AM Ottavio Caruso via freebsd-questions <
freebsd-questions at freebsd.org> wrote:

> On Wed, 27 May 2020 at 05:10, Jacques Foucry <jacques+freebsd at foucry.net>
> wrote:
> >
> > Le mardi 26 mai 2020 à 21:54:10 (+0100), Ottavio Caruso via
> freebsd-questions à écrit:
> >
> >
> > Hello friends,
> >
> > > On Tue, 26 May 2020 at 14:48, Derek (freebsd lists)
> > > <482254ac at razorfever.net> wrote:
> > > >
> > > > Hiya,
> > > >
> > > > After all these years, I'm finally wanting to switch tabs to spaces
> for
> > > > certain documents (yaml comes to mind, python another), but I'm
> finding
> > > > the FreeBSD nvi lacks expandtab, yet OpenBSD's (as of 6.7) supports
> this
> > > > 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
> first:
> > > 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 ㄩnderstand 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 إad 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 æ solution.
> >
> > Please execuse me if I am out of goal and my intervention is not in the
> > subjet.
>
> As above ^.
>
> --
> Ottavio Caruso
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>


-- 
Michael Schuster
http://recursiveramblings.wordpress.com/
recursion, n: see 'recursion'


More information about the freebsd-questions mailing list