From owner-freebsd-questions@freebsd.org Tue May 26 16:48:07 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 53BB62CDBCF for ; Tue, 26 May 2020 16:48:07 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49WfzC1WkGz4Wgc for ; Tue, 26 May 2020 16:48:07 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: matthew/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 10313106A6 for ; Tue, 26 May 2020 16:48:07 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from PD0786.local (unknown [IPv6:2001:8b0:151:1:830:f9fc:c1c:9a54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 40C4F1B1D4 for ; Tue, 26 May 2020 16:48:05 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/40C4F1B1D4; dkim=none; dkim-atps=neutral Subject: Re: nvi expandtab - tabs to spaces To: freebsd-questions@freebsd.org References: <0c30ebf7-e5b1-6fcb-d81e-2a039415f8a1@chezmarcotte.ca> From: matthew@FreeBSD.org Message-ID: Date: Tue, 26 May 2020 17:48:02 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2020 16:48:07 -0000 On 26/05/2020 17:42, Ottavio Caruso via freebsd-questions wrote: > On Tue, 26 May 2020 at 17:21, Einar Indridason wrote: >> >> On Tue, May 26, 2020 at 4:17 PM Derek (freebsd lists) < >> 482254ac@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@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