On Wed, Nov 08, 2006 at 11:25:14AM -0500, Jeremy Conlin wrote:
> My current fold method is by expression and this accurately finds the
> functions/classes that I want folded.  However, sometimes I want to
> fold a portion of a function manually.  Is there anyway to mix folding
> methods so I can keep the folds defined through an expression and also
> add manual folds?
> Thanks,
> Jeremy
> 
> ps.  I am writing code in python and I am using the python_fold.vim script.

     If you start with 'fdolmethod' set to "expr" and then do

:set foldmethod=manual

then you keep all the existing folds (defined by expression) and you can
then change them manually.  You can then clear all your manual folds,
going back to those automatically created by the expression, with

:set foldmethod=expr

I think this works well in most situations.

:help fold-methods

HTH                                     --Benji Fisher

Reply via email to