From: Gavin Sinclair Date: 2004-11-10T00:17:10+09:00 Subject: Re: rdoc and vim folding 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? class X class Y class Z def foo end end end end Gavin