Jan 'jast' Krueger wrote:
 > au BufRead,BufNewFile *.rb set sw=2,ts=2

Fantastic, been wondering how to do that for a while.
I needed to replace the 2nd comma with a space to avoid an
error message. I also use "sts" instead of "ts", so that
programs expecting 8-space tabs still do the right thing.

Clifford Heath.