Multiple foldmethods in vim
        Posted  
        
            by 
                bjarkef
            
        on Super User
        
        See other posts from Super User
        
            or by bjarkef
        
        
        
        Published on 2010-12-08T10:55:48Z
        Indexed on 
            2012/06/26
            21:20 UTC
        
        
        Read the original article
        Hit count: 309
        
I use the folding option of vim quite a lot, and have usually set foldmethod to syntax. Recently I discovered that it is possible to add custom folds, such that I can put whole blocks in /*{{{*/ and /*}}}*/ which is very useful for grouping large sections of a source file together. However to use that feature I need to set foldmethod to marker, and I loose the syntax folding.
Is it possible to have two active foldmethods at the same time in vim? set foldmethod=syntax,marker does not work.
© Super User or respective owner