nvi expandtab - tabs to spaces

matthew at FreeBSD.org matthew at FreeBSD.org
Tue May 26 16:48:07 UTC 2020


On 26/05/2020 17:42, Ottavio Caruso via freebsd-questions wrote:
> 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.
> 

Or use expand(1) from the command line...

	Cheers,

	Matthew



More information about the freebsd-questions mailing list