[Vim-latex-devel] Just a random idea

2011-03-28 Thread Taras Keiditsch
Hi,

first of all: Thank you for all your good work! I want to contribute
somehow and today I had the following idea, which I´d like to realize:

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.

I´m already reading tutorials and manuals on vim-script, but so far I´m
not sure if this type of functionality is possible..

What do you think about it? Would it work just using vim-script?

Thanks,
 Taras


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel


Re: [Vim-latex-devel] Just a random idea

2011-03-28 Thread Ted Pavlic
 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 t...@tedpavlic.com

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel