Replacing tabs in vi

andyb at dartvax.UUCP andyb at dartvax.UUCP
Sat Jan 17 03:34:31 AEST 1987


> Is there a way in vi to have spaces rather than tabs placed in the
> text.  

First convert any tabs that are already in the file to spaces.  Then
set tabstops to a fairly large number.  (It should be larger than
number of spaces at the front of the most deeply indented line you
expect to type).  I use ts=60.

The tab key on your keyboard will still insert tabs into the file, but
at the start of a line you can use ^T and ^D to indent or undent.

					Andy Behrens



More information about the Comp.unix.questions mailing list