[Tex/LaTex] How to Customize Folding Environments in ViM Using vim-latex for Beamer

beamervimvim-latex

I'm trying to configure my ViM editor to improve the folding when editing Beamer files. I have vim-latex installed (using Vundle).

Now I'd like to customize my vim-latex; specifically, I'm trying to add the frame environment so that it will be folded along with the default set of folded environments.

I've added a file ~/.vim/after/syntax/tex.vim which has (among other things):

" Folding environments
let g:Tex_FoldedEnvironments += ',frame,'

According to the documentation, this is how I should be able to fold the frame environment, but it isn't working.

Any thoughts on how to make this happen? Has anyone had success with this before?

Best Answer

This is implemented in Gerd Wachsmuth's branch of latex suite:

https://github.com/gerw/vim-latex-suite

Works quite well.

Related Question