From: Tim Gray <tgray@protozoic.com>
To: vim_use@googlegroups.com
Cc:
Sent: Monday, September 19, 2011 10:01 AM
Subject: Re: LaTeX syntax misery
On Sep 17, 2011 at 08:03 PM -0400, Moshe Kamensky wrote:
> In my experience, the problem is the folding. When I set
> foldmethod=manual, the problem (mostly) disappears.
I seem to remember having this same problem and it was related to folding. I just checked, and while I don't have foldmethod=manual set, I do have a custom folding scheme for latex that I found somewhere on the internet. If you still want the ability to fold, you might find it useful. It sets folds based on sections and subsections.
https://raw.github.com/tgray/tgtex/master/plugin/tex-fold.vim
Stick it in ~/.vim/plugin/
============================
Thanks again for all the help. It looks like the VIM-LaTeX package provides a
similar feature for getting syntax folding via the manual fold method (see
/plugin/SyntaxFolds.vim and ftplugin/latex-suite/folding.vim). It is
substantially more complicated, but I don't think it has too many
dependencies, so you might be able to use it without installing the whole
package (if you are like me, and VIM-LaTeX seems a little too heavy...).
-WES
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment