Gerd -- That's an excellent point. However, in your patch...
> =================================================================== > --- ftplugin/latex-suite/folding.vim (revision 1106) > +++ ftplugin/latex-suite/folding.vim (working copy) > @@ -54,7 +54,7 @@ > if s =~ '%%fakesection' > let s = '^\s*' . s > else > - let s = '^\s*\\' . s . '\W' > + let s = '^\s*\\' . s . '\W\|^\s*%%fake' . s ...why do you leave the first part of the branch there? Doesn't your addition mitigate the need for special "fake" cases? Can't we just use your addition exclusively? Thanks -- Ted On 08/10/2010 04:50 AM, Gerd Wachsmuth wrote: > Hi, > > at least for me, there is one problem with the folding of %%fakesection: > They are nested in sections (see attached test.tex). Imho they should be > at the same level as section. > > The attached patch automatically adds %%fakepart, %%fakechapter,... as > folded sections and they are folded at the same level as their non-fake > counterparts. > > Regards > Gerd > > On Wed, 24 Mar 2010, Ted Pavlic wrote: > >> 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. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel