mirror of
https://github.com/vim-latex/vim-latex.git
synced 2026-05-31 11:18:38 +02:00
Fold all %%fake, not just %%fakesection (by Gerd Wachsmuth)
This commit is contained in:
committed by
Till Maas
parent
07c1d0fa4a
commit
2bc3c63852
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user