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?

  • let g:Tex_FoldedEnvironments += 'frame' should suffice, no? Jul 16, 2021 at 15:48

3 Answers 3


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


Works quite well.


If you still need this, I have

let g:Tex_FoldedEnvironments = ',frame'

which works.

  • Please explain better ....
    – Mensch
    Sep 9 at 17:44

Remove the "+" before "=" then it will work :-)

I tried this setup, but I find it easier and more structured if I just use the \section and \subsection commands to setup the document. It will become annoying to unfold frame after frame after you made a big presentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.