Tab stops (Re: [prog] C and curly braces - question of style?)

John Stoneham lyric.programming at lyrically.net
Thu Aug 26 19:24:15 EST 2004


> I'm glad that my current work allows people to choose which editor they
> use.  One my previous employers mandated emacs because someone had set
> up emacs settings -- ugh!

The best way I've seen it done is to set up standards for the -end product-:
it must follow x coding standard, compile under y compiler, pass z tests. The
editor / IDE / shell you use don't matter as long as you produce compliant
product on schedule. A previous assignment forced everyone to use csh because
the development environment (environment variable setup, etc) was all written
in csh. That drove me crazy (and months later I still haven't broken the
habit of trying to hit Esc for tab-completion and Ctrl-D for a list of
alternatives...).

> I admit I haven't gone as far as writing vim functions; it tends to work
> well enough for me as it is.

I admit that I didn't write that one. I hunted it down because I was spending
too much time manually reindenting my code when I changed the nesting of bits
of it; emacs users were taunting me about the inadequacies of my editor (one
of them nicknamed me Dr. Indent...).

I recommend everyone who uses vim go to vim.org. You will be flabbergasted by
the Scripts and Tips sections...

- John


More information about the Programming mailing list