On Wed, 17 May 2000 12:06:41 +0100, Hugh Sasse Staff Elec Eng wrote: > On Wed, 17 May 2000, hipster wrote: > > > I've written a functional (but still incomplete) syntax-file for vim. > > > > http://www.xs4all.nl/~hipster/lib/ruby/ruby.vim > > > > Keywords and builtins are collected as of 1.4.3. I'll redo this once the > > next stable ruby comes out. > > This is of interest to me -- can it handle re-indenting of code? > Sometimes I get out of step and things don't line up properly.... > I know vim has cindent but don't know if the syntax files effect > this. no it cannot :\ Syntax files don't affect cindent operation, which is really only good for c-code. > Failing that, and to keep this on-topic :-), has anyone produced > a script to indent ruby code nicely? (wire such a script into vim using `equalprg', et voila) A pretty printer for ruby (appropriately configurable for every One True Brace Style[tm] ;) could probably be forked from the ruby grammar. Michel