Fold the preamble in a LaTeX document
From Vim Tips Wiki
Tip 661 Previous Next Created: February 24, 2004 Complexity: basic Author: Christian Version: 6.0
In /ftplugin/latex-suite/folding.vim, I added the lines you see below, so that the latex-suite folding \rf also folds the preamble (the part between \documentclass and \begin{document}.
" {{{ Preamble
call AddSyntaxFoldItem (
\ '^\s*\\documentclass',
\ '^\s*\\begin{document}',
\ 0,
\ 0
\ )
" }}}
[edit] Comments
TO DO
Check if the patch has been submitted and applied upstream, and if so, delete this tip.
If you have a patch or an enhancement for a script (plugin, ftplugin, ...) please contact its mantainer.
Regarding vim-latex, there is a mailing-list check on http://vim-latex.sourceforge.net/
