Path: utzoo!attcan!uunet!husc6!bloom-beacon!bu-cs!dartvax!eleazar.dartmouth.edu!finn
From: finn@eleazar.dartmouth.edu (Andy Behrens)
Newsgroups: comp.unix.questions
Subject: Re: HOW DO I MAKE VI'S AUTOINDENT NOT USE TABS?
Message-ID: <8979@dartvax.Dartmouth.EDU>
Date: 22 Jun 88 22:56:03 GMT
References: <3493@ut-emx.UUCP>
Sender: news@dartvax.Dartmouth.EDU
Reply-To: andyb@burcoat.uucp (Andy Behrens)
Organization: Burlington Coat Factory Warehouse
Lines: 17

In article <3493@ut-emx.UUCP> jjr@ut-emx.UUCP (Jeff Rodriguez) writes:
> Vi's "set autoindent" option replaces every 8 spaces
> with a tab when indenting.
> Is there a way to make it use spaces instead?

First get rid of any tabs that are in the file, then ":set tabstop=60".
This will force vi not to use a tab unless the line is indented at
least 60 spaces.

You won't be able to use the tab key any more, but you can still use ^T
and ^D for indenting.  You might like to map the tab key to ^T if you
are used to it.  (:map ^V^V^I ^V^T).

					Andy Behrens

{astrovax,linus,harvard,decvax}!dartvax!burcoat!andyb
andyb%burcoat@dartmouth.EDU