Two points:
1. You can use :scr[iptnames] to find out which scripts/plugins have been
sourced.
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
p = proc {
$_ }
x = 1
The second case is hardly important as it's unusual code style, but the first
is *very* important. If an "inline" comment ends in ( or . or , or ...
probably some others, the next line can't be indented correctly. Again, any
help much appreciated.
Regards,
Gavin
----- Original Message -----
From: "Dossy" <dossy / panoptic.com>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Monday, August 12, 2002 11:39 PM
Subject: Re: Style question
> On 2002.08.12, Holden Glova <dsafari / paradise.net.nz> wrote:
> >
> > That is interesting. When I type :set I get a list of indentkeys and an
> > indentexpr. Here is what mine shows:
> >
> [...]
> > indentexpr=GetRubyIndent()
> > indentkeys=0{,0},:,0#,!^F,o,O,e,=end,=else,=elsif,=when,=ensure,=rescue
>
> Interesting. $VIM/indent/ruby.vim wasn't being loaded.
>
> Since I'm short on time, I just added this to my ~/.vimrc:
>
> autocmd BufRead *.rb so /usr/share/vim/vim61/indent/ruby.vim
>
> I'll figure this out later. Thanks!
>
> -- Dossy
>
> --
> Dossy Shiobara mail: dossy / panoptic.com
> Panoptic Computer Network web: http://www.panoptic.com/
> "He realized the fastest way to change is to laugh at your own
> folly -- then you can let go and quickly move on." (p. 70)