Re: [Vim-latex-devel] Just a random idea
Brought to you by:
srinathava,
tmaas
From: Ted P. <te...@te...> - 2011-03-28 22:52:16
|
> I have to write documents with MANY headlines so I was wondering, if it > would be possible to write a script, that displays "\section{Headline > 1}" in vim simply as "Headline 1" in another color and maybe centered. The default syntax highlighting that is packaged with Vim (at least 7.3) already colors section headings (and you could conceivably change the color/formatting of sections if you wish). Look for "syntax/tex.vim" in your system's vimfiles directory. That syntax definition might give you some ideas on how you can customize how sections (or even sections that start with "Heading") are displayed. Furthermore, what do you think of the default folding behaviors in Vim-LaTeX? Vim-LaTeX knows how to fold by sections, and that grouping might serve the same purpose as what you're requesting. I know it works well for me. A document with seven sections looks like it only has seven lines until I inspect the fold that I'm interested in. Best -- Ted -- Ted Pavlic <te...@te...> |