indent comments

Gavin Sinclair gsinclair at
Sun Oct 19 10:18:28 EDT 2003

On Saturday, October 18, 2003, 12:58:42 AM, Guoliang wrote:

> Hi,

> I'm using vim 6.2 + vim-ruby (the stable version) to indent ruby files. It
> works great except that:

> 1) comments start with "#" are not indented;
> 2) doesn't work if "{" is in the middle of a line and "}" is not in the same line;
> 3) continuation lines cause problems; here is one
>       ,TkDefaults::GUI['GoMatch.label.color'].update('text'=>$user+':')).grid(
>                                                                                          'column'=>0,'row'=>3,'sticky'=>'ew')
> 4) has problem with the attached file.

> Are those fixed in the latest code?

Hi Cao,

Sorry for the late reply; my Internet was on the blink all of
yesterday.  I indented your code with the latest code and it seemed to
work fine; it's worth your time to try it.  You can grab the ultra
latest via public CVS or you can download a CVS snapshot.


More information about the vim-ruby-devel mailing list