On Tue, Aug 30, 2011 at 9:33 PM, Ted Pavlic <te...@te...> wrote:
>> Adding them to folding.vim like this:
>
> Hm. I wouldn't do it that way.
>
> I add mine to .vimrc. That overrides the defaults in folding.vim (and
> prevents having to worry about problems after uprgrading).
>
> In particular, I do:
>
> let g:Tex_FoldedSections =
> 'top,%%faketop,part,%%fakepart,chapter,%%fakechapter,'
> \. 'section,%%fakesection,'
> \. 'subsection,%%fakesubsection,'
> \. 'subsubsection,%%fakesubsubsection,'
> \. 'paragraph,%%fakeparagraph'
>
> let g:Tex_FoldedMisc = 'preamble,item,<<<'
> let g:Tex_FoldedEnvironments = ',slide,wideslide,emptyslide,note'
>
> You should be able to do something similar. The above works for me, and
> I think I'm using the stock distribution from the git repository.
>
> --Ted
>
Oh hey, I found your web page while googling for a solution, and
replaced folding.vim with
http://www.tedpavlic.com/research_related/tpavlic_masters_thesis/folding.vim
But I'll try your vimrc-solution next, not worrying about upgrades
seems more elegant. Thanks!
|