From: Gavin Sinclair Date: 2004-11-10T07:56:22+09:00 Subject: Re: rdoc and vim folding On Wednesday, November 10, 2004, 3:08:09 AM, Doug wrote: > On Wed, Nov 10, 2004 at 12:17:10AM +0900, Gavin Sinclair wrote: >> On Wednesday, November 10, 2004, 2:14:21 AM, Doug wrote: >> >> > On Tue, Nov 09, 2004 at 09:43:33AM +0900, Ara.T.Howard wrote: >> >> On Mon, 8 Nov 2004, Hans Fugal wrote: >> >> >> >> >I haven't had cause to use markers to do folding in ruby much, but I do use >> >> >the feature. I can't remember at the moment whether foldmethod=syntax or >> >> >foldmethod=indent works well for ruby code. >> >> >> >> IMHO - neither. too many folds. i like to fold class bodies, module >> >> bodies, and function bodies - and that's all. either way above does a >> >> LOT more. >> >> > You can limit the fold nesting with 'foldnestmax' >> >> > :set foldnestmax=2 >> >> > will achieve what you've asked for above. >> >> Unless you have code like this, right? > Yes! I really should send email at this time... ;-) > Would it be worth making this configurable in syntax file? I expect > Ara's specified usage to be the most common for those not wanting > maximum folding. What does making it configurable mean? People can already set their own folding rules in $HOME/.vim/ftplugin/ruby.vim. The syntax rules should merely be correct. Gavin