New answers tagged


For more folding than the standard currently (vim 8.1) provides, see (Fandom) Syntax folding of Vim scripts It has an explanation and a script to add folding for: for/endfor while/endwhile if/elseif/else/endif try/catch/finally/endtry comments I recently added this fragment, to provide the comment folding. " Fold multiple comment lines, except those ...


Turns out it's already answered on :help *fold-delete-marker: "zd" can be used to delete a fold defined by markers.

Top 50 recent answers are included