From: Gavin Sinclair Date: 2002-08-13T10:18:42+09:00 Subject: Re: Style question > On 2002.08.13, Gavin Sinclair wrote: >> Two points: >> >> 1. You can use :scr[iptnames] to find out which scripts/plugins have >> been sourced. > > Thanks. > > Interestingly, :scr shows that $VIMRUNTIME/indent.vim isn't loaded. > Adding "so $VIMRUNTIME/indent.vim" now properly loads > $VIMRUNTIME/indent/ruby.vim for me. Make sure you have "filetype indent on" (and "filetype plugin on") in your .vimrc. The rest will follow automatically. The online help explains these, but I just take them on faith as commands that make stuff work. >> 2. I've become the maintainter of the ruby indent file, unless anyone >> disagrees ;) I'm no good at writing indent rules yet. Any bug >> reports/solutions much appreciated. At the moment there are two that >> I'm aware of (the follwing are vim-indented) >> >> def cartesianProduct(denumerable, &productBlock) #finite,finite is >> broken :-( d = self.class.new >> end > > Well, you didn't put a URL to the "latest" indent/ruby.vim file, so > here's a patch off the one I've currently got: > > [snip] > > I don't know if this Does The Right Thing for all other cases, > but it seems to do the right thing with the test case you provided. Thanks a million; I'll investigate today. For those interested, I'm keeping "the latest" at www/soyabean.com.au/gavin/vim/index.html. (ftplugin/ruby.vim is there as well.) There's no change to the vim6.1 version yet. I'll post here when there is (which should be soon once I incorporate Dossy's patch. > > -- Dossy > Gavin