|
Re: Style question: msg#01161lang.ruby.general
> On 2002.08.13, Gavin Sinclair <gsinclair@xxxxxxxxxxxxxxx> 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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: class === class often false?, dblack |
|---|---|
| Next by Date: | Re: class === class often false?, Gavin Sinclair |
| Previous by Thread: | Re: Style question, Dossy |
| Next by Thread: | Re: Style question, Holden Glova |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |