[Benji Fisher]

Let me take this opportunity to try once again to drum up support
for an idea that I have proposed before.  IMO it is too restrictive to
make options (such as syntax highlighting, 'textwidth', and
indent-related options) apply to a whole file.  There should be a
convenient, consistent way to tell vim to treat different sections of a
file as having different file types.  Examples:

* code snippets in an e-mail
* PHP in an HTML file (or vice-versa)
* perl/python/ruby inside a vim script
* comments, text, and math inside LaTeX/plain TeX/conTeXt

I quite agree it would be an interesting possibility. For example, it would be nice having reST support in Python doc-strings (for those projects where it makes sense), programming language support within parser generators having their own separate syntax, and such things.

But I have realistically no time to offer (being usually rather short on free time), so I'm not sure how I / we could help.

--
François Pinard   http://pinard.progiciels-bpi.ca

Reply via email to