History
Article Edit this page Discussion

Fold the preamble in a LaTeX document

From Vim Tips Wiki

Jump to: navigation, search

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/


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Doctor Who
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Mystery Science Theater 3000
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"Fold the preamble in a LaTeX document"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation