Latest indent request
Peter da Silva
peter at ficc.uu.net
Sat Dec 10 02:52:37 AEST 1988
In article <80360 at sun.uucp>, lm at snafu.Sun.COM (Larry McVoy) writes:
> In article <9149 at ihlpb.ATT.COM> gregg at ihlpb.ATT.COM (Wonderly) writes:
> >One of the most frustrating things for me is that so many people insist
> >on using a mixture of spaces and tabs for indentation. It seems obvious
> >that editors like vi(1) have commands like ":set tabs=4 sw=4" for some
> >reason!
> sw=4 is cool. ts=4 is not. What happens when I do "lpr $.c" after
> some boy genius has missused the ts=4 feature? Yeah, I know about expand,
> but that is a hack and screws up other code.
The idea that I think the original poster is getting at is that if you
set your indent to a single tabstop you can dynamically change the indent
level at your leisure. If I like 4-char indents, I can edit it that way.
If you like 8 char indents, you can edit it that way. If the code is nested
too deeply, it can be much more pleasant to work with after setting "ts"
and "sw" to 1 or 2... but it will still print pretty.
If I find a program that's got indentations less than a tabstop, it goes
through 'cb' first thing... and to hell with the pretty comments.
--
Peter da Silva `-_-' Ferranti International Controls Corporation
"Have you hugged U your wolf today?" uunet.uu.net!ficc!peter
Disclaimer: I accept full responsibility for my typos. peter at ficc.uu.net
More information about the Comp.unix.questions
mailing list