[Vim-latex-devel] Patch (to be reviewed): slide title in folding text
Brought to you by:
srinathava,
tmaas
From: Cristian R. <cr...@li...> - 2006-05-21 22:02:01
|
Hi, I've just started using the prosper package and I happily discovered that vim-latex lets me fold "slide" environments. Since I like to see the title of each slide in the folded text, I made the enclosed patch (against the current svn version of folding.vim), to turn this: \begin{slide}[options]{Title of the slide} ... ... \end{slide} into this (when folded): +-- 16 lines: slide () : Title of the slide instead of just: +-- 16 lines: slide () (of course you must add "slide" to g:Tex_FoldedMisc in your ~/.vim/ftplugin/tex.vim to enable folding of slide environments) Please note that it was a quick hack, maybe there's a cleaner way to do it; maybe there are side-effects I've not considered, so give it a close look if you plan to accept it (as if you wouldn't do :-) Cri -- GPG/PGP Key-Id 0x943A5F0E - http://www.linux.it/~cri/cri.asc Free software, free society - http://www.fsfeurope.org |