2

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?

1

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

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

Works quite well.

  • Don't just post (external) link-only answers. Please provide some more detail so it will be immediately apparent to future visitors why this implementation answers the question and/or will help. Pictures can do just that. – Werner Oct 11 '16 at 19:09
-1

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.