vim-latex documents the use of %%fakesection to create new folds at the same level as \section folds. To organize my preamble and backmatter, I use similar sections like %%fakepart, %%fakechapter, %%fakesubsection, etc.

The attached one-line patch modifies the section of folding.vim so that it looks for %%fake and not just %%fakesection. That lets me update g:Tex_FoldedSections to include all of my other %%fake... sections.

--Ted


--
Ted Pavlic <t...@tedpavlic.com>

  Please visit my 2009 d'Feet ALS walk page:
        http://web.alsa.org/goto/tedp
  My family appreciates your support in the fight to defeat ALS.
Index: ftplugin/latex-suite/folding.vim
===================================================================
--- ftplugin/latex-suite/folding.vim	(revision 1106)
+++ ftplugin/latex-suite/folding.vim	(working copy)
@@ -51,7 +51,7 @@
 	else
 		let s = a:lst
 	endif
-	if s =~ '%%fakesection'
+	if s =~ '%%fake'
 		let s = '^\s*' . s
 	else
 		let s = '^\s*\\' . s . '\W'
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to