[Gllug] vi indenting

tet at accucard.com tet at accucard.com
Fri Dec 21 00:39:24 UTC 2001


>Maybe when you've had to work on code that's indented by people with
>tabstop= set to 2, 3, 4, 8 and 10, using mixtures of spaces and tabs to
>line up some constructs (like switch statements), you'd realise what's
>wrong with a character which expands to an *unknown* number of spaces
>and affects the look of the code in unknown ways.

Nope. That's a problem with people mixing spaces and tabs (either
intentionally, or because the editor did it for them). It's not a
problem with the concept of using tabs.

>> Hmmm. In 14 years of using vi, I've yet to provoke it to do this. But
>> then, I can't recall ever meeting a vi that had optimize set by default,
>
>Every vi in a commercial Unix I've ever used had it on by default :(

A quick straw poll of the machines I have to hand here shows it to be
off by default for Solaris 7, Solaris 8, Tru64 5.1 and AIX 4, but on
for OpenBSD 2.9.

>> and I can't think why anyone would want to explicitly enable it, either.
>
>Because they are *desperately* short of disk space?

You've really got to be pretty deperate to resort to that! :-)

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list