FG

Multiple foldmethods in vim

Fresh3 days ago
Mar 15, 20262003 views
Confidence Score0%
0%

Problem

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 ne…

Error Output

/*{{{*/

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Multiple foldmethods in vim

Low Risk

No, strictly speaking it is not possible to have multiple foldmethods active in Vim at the same time. You can emulate marker based folding if you are willing to learn how to write syntax highlighting rules and hack the highlighting file for the lang…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment