HOW DO I MAKE VI'S AUTOINDENT NOT USE TABS?

Andy Behrens finn at eleazar.dartmouth.edu
Thu Jun 23 08:56:03 AEST 1988


In article <3493 at ut-emx.UUCP> jjr at 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 at dartmouth.EDU



More information about the Comp.unix.questions mailing list