From owner-freebsd-questions@freebsd.org Wed May 27 04:10:26 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 D803B2FD7A9 for ; Wed, 27 May 2020 04:10:26 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mail.foucry.net (fournil.foucry.net [95.217.83.231]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49Wy6T4tBgz4XPw for ; Wed, 27 May 2020 04:10:25 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mithril.localdomain (dontpanic.foucry.net [80.67.176.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.foucry.net (Postfix) with ESMTPSA id AC9D92D3C0 for ; Wed, 27 May 2020 04:10:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foucry.net; s=dkim; t=1590552609; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DXM4F1SU91ZXv4Mqja1aGJXkGby+sWlDK298K7YMfdE=; b=P+s/giU1EUeuaUDyhnVR0FTc/wdB2O3mO6u1UhBl9fAFrrlKLKE8lE0bS/qA/MWKmyoQ3r tgiGRvA6MN35ToCH1SHGvjSgtePLLn1KTkXIqqPP2z+3aZrS193UWmcqph+kpgwCBbafAC NijY1KCINCKjEy6GPPYuzGmZYSSfq6A= Received: from mithril (localhost [127.0.0.1]) by mithril.localdomain (Postfix) with ESMTP id 8A6DE11A38 for ; Wed, 27 May 2020 06:10:08 +0200 (CEST) Date: Wed, 27 May 2020 06:10:08 +0200 From: Jacques Foucry To: freebsd-questions@freebsd.org Subject: Re: nvi expandtab - tabs to spaces Message-ID: <20200527041008.GD95043@mithril> Mail-Followup-To: freebsd-questions@freebsd.org References: <0c30ebf7-e5b1-6fcb-d81e-2a039415f8a1@chezmarcotte.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=0.40 X-Rspamd-Server: mail.foucry.net X-Spam-Score: 0.40 X-Rspamd-Queue-Id: 49Wy6T4tBgz4XPw X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=foucry.net header.s=dkim header.b=P+s/giU1; dmarc=pass (policy=none) header.from=foucry.net; spf=pass (mx1.freebsd.org: domain of jacques@foucry.net designates 95.217.83.231 as permitted sender) smtp.mailfrom=jacques@foucry.net X-Spamd-Result: default: False [-2.87 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[foucry.net:s=dkim]; NEURAL_HAM_MEDIUM(-1.03)[-1.026]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.997]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_NOT_FQDN(0.50)[]; DKIM_TRACE(0.00)[foucry.net:+]; DMARC_POLICY_ALLOW(-0.50)[foucry.net,none]; NEURAL_HAM_SHORT(-0.35)[-0.350]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:95.217.0.0/16, country:DE]; TAGGED_FROM(0.00)[freebsd] 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: Wed, 27 May 2020 04:10:26 -0000 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@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. Octavio want to switch tab to spaces in it's sources files. 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: :expantab :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. -- Jacques Foucry