From 2bc3c638528477bcc8a783e7d64dee09ebf28fa6 Mon Sep 17 00:00:00 2001 From: Gerd Wachsmuth Date: Tue, 7 Sep 2010 03:01:10 +0000 Subject: [PATCH] Fold all %%fake, not just %%fakesection (by Gerd Wachsmuth) --- ftplugin/latex-suite/folding.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftplugin/latex-suite/folding.vim b/ftplugin/latex-suite/folding.vim index eaec8d5..58c9fc9 100644 --- a/ftplugin/latex-suite/folding.vim +++ b/ftplugin/latex-suite/folding.vim @@ -54,7 +54,7 @@ function! Tex_FoldSections(lst, endpat) if s =~ '%%fakesection' let s = '^\s*' . s else - let s = '^\s*\\' . s . '\W' + let s = '^\s*\\' . s . '\W\|^\s*%%fake' . s endif let endpat = s . '\|' . a:endpat if i > 0 @@ -119,7 +119,7 @@ function! MakeTexFolds(force) endif if !exists('g:Tex_FoldedSections') - let g:Tex_FoldedSections = 'part,chapter,section,%%fakesection,' + let g:Tex_FoldedSections = 'part,chapter,section,' \. 'subsection,subsubsection,paragraph' endif