From owner-freebsd-questions@freebsd.org Wed May 27 08:27:34 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 56E4732B89C for ; Wed, 27 May 2020 08:27:34 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49X3q958mRz3fWV for ; Wed, 27 May 2020 08:27:33 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-io1-xd44.google.com with SMTP id r2so14697246ioo.4 for ; Wed, 27 May 2020 01:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fH5Af/ATiJ52VxXAsMj7ce2hiZRUMFqi8iSH5VfjQp0=; b=tquoyWKi37+WFgGLQ/i6t+zAgFwRE7+B+QSfXvvK1lG0TexY/I7EamgBkdC93LoXvA GkaJD6nPah54uRHm681r/4Scu556cDdTVoPUUBV7s3GKcCRiki53fUZb9AGEechyf50g DNQKXfKzZ4K6uPmcRAYWdqNgW9+q7Pp63wuxE9meTc1cuSstrwSBZPQFoiXtqyVD04Xu UmApWfkn69iXHfyUXeev+jHmJd5SZADv0b841MpxDcyYFl6sgZBsxbxnnj2frz4gu1H+ +3GqnaH30r55luQqSyHxt5YmA/vacUNnUN6SiyUgKJApF52o+7SKghvksZFx6ZlZLtkp UaXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fH5Af/ATiJ52VxXAsMj7ce2hiZRUMFqi8iSH5VfjQp0=; b=i+RHsPak/90cH7mOs5CfAKcY3OPeYIRNz/tkZ66l0x+/1Ed6ikImi7zTe5ZVwe7iLI jxu5gc6LRFmQURuToW4EUOIFnCXpNQxyzaz4sey8LVJ2FU9F3Ubp5v/0LODB2bNYg+Zq B0QsHVfJ3GiFMyPWYEMpBV4Z3eG7RujdezmqmhmEOoZz0ZN+O0BkaifqsV5BmaLmZ+HB SVw7yvRXc1GlDAlPS+9vwIRGjgRz5iRd9qMCED+bC1GVmXLoD0EaWBmANaMUEHmLYOyN Hb8qD6z4DvMHfgE0NR10lt74m4Viu+g+Yw8/JnIT+Nb3CIJUE4lhNZcAcTy9RDlpS/5/ kLTA== X-Gm-Message-State: AOAM530DilSVN2SGoXvjSMKD+2IES768FC0hT2M/ADlbjE+2O4w9Ibgt GQWz6rBUqIQA6ShBSYCAdX0uDtHlPz3VE57+zoM= X-Google-Smtp-Source: ABdhPJx7p5DtnlZ0X0VdCupaammKiFfAnMiBr12xU5Btod8/gcdXzgyatYPeSrXhWOjnXqqqQI8jFy+Udw/VedrowAE= X-Received: by 2002:a5d:8c95:: with SMTP id g21mr20019503ion.72.1590568052885; Wed, 27 May 2020 01:27:32 -0700 (PDT) MIME-Version: 1.0 References: <0c30ebf7-e5b1-6fcb-d81e-2a039415f8a1@chezmarcotte.ca> <20200527041008.GD95043@mithril> In-Reply-To: From: Michael Schuster Date: Wed, 27 May 2020 10:27:21 +0200 Message-ID: Subject: Re: OT: vim, was: nvi expandtab - tabs to spaces To: Ottavio Caruso Cc: freeBSD Mailing List X-Rspamd-Queue-Id: 49X3q958mRz3fWV X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=tquoyWKi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::d44 as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com X-Spamd-Result: default: False [-3.42 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.025]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_LONG(-0.98)[-0.980]; NEURAL_HAM_SHORT(-0.41)[-0.413]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d44:from]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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 08:27:34 -0000 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@freebsd.org> wrote: > On Wed, 27 May 2020 at 05:10, Jacques Foucry > wrote: > > > > 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 > 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 o= n > > > 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 whic= h > actually > > does visualy the expandtab job. > > > > The sequesce is: > > :expantab > > :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 ^. > > -- > Ottavio Caruso > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > --=20 Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'