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.

Regards,
Doug