From owner-freebsd-questions Mon Aug 13 19:30:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc24.worldnet.att.net (mtiwmhc24.worldnet.att.net [204.127.131.49]) by hub.freebsd.org (Postfix) with ESMTP id 7EAC137B408 for ; Mon, 13 Aug 2001 19:30:42 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.100.199.162]) by mtiwmhc24.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010814023040.UCO3707.mtiwmhc24.worldnet.att.net@worldnet.att.net>; Tue, 14 Aug 2001 02:30:40 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id 1809750D30; Mon, 13 Aug 2001 22:30:37 -0400 (EDT) Date: Mon, 13 Aug 2001 22:30:36 -0400 From: parv To: John Fox Cc: freebsd-questions@freebsd.org Subject: Re: Expanding tabs to spaces within nvi Message-ID: <20010813223036.A60454@moo.holy.cow> Mail-Followup-To: John Fox , freebsd-questions@freebsd.org References: <20010813135928.I10559@mind.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010813135928.I10559@mind.net>; from jjf@mind.net on Mon, Aug 13, 2001 at 01:59:28PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG this was, on the fateful occasion around Aug 13 16:59 -0400, sent by John Fox > > Hello, Listers, > > I was just reading some indentation tips on the vim homepage, > and ran across a setting that causes vim to expand a tab into > a sequence of spaces. This is spiffy to me, because I like > tabstops of 4, but when anybody else gets my code in an editor, > it looks funky till they change their tabstop setting to match > the original. > > Does anybody know if nvi can be made to do this? I've just > finished reading the nvi manpage, and it appears to me that > the answer to my question is "No", but I wanted to be sure. if you only want to change tabstops to, say, 8, then you can do... set ts=8 ...either in command mode, or in ~/.exrc, or as EXINIT environment variable. if you want to change tabs to spaces, this may help you... perl -pi -e 's#\t# #g' ...or, you may prefer similar substitution inside nvi. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message