Multiple foldmethods in vim
- by bjarkef
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.