I use foldmethod=marker and have mappings for input <!-- {{{ --> and <!-- }}} --> , where I want the summary to start and end. I put the start marker on the line with the tag of the opening block, for example:
<div id="topmenu">
therefore, when it develops, I immediately see what develops, without the need to add an additional comment.
For CSS, it's even simpler, I just use foldmarker={,} , and all the definitions automatically add up, showing me only a very clear list of all the classes, tags and identifiers that I can open only when I need them. In fact, all my CSS files have this line at the very end:
/* vim: set fdm=marker fmr={,}: */
You can also visually select the region you want to reset, and press zf if you want.
Matteo iva
source share