> Or would it be better to recode the LaTeX suite into a ConTeXt suite?
> So that the LaTeX suite is not used at all and an other vimplugin is
> used?
Have you tried
:set ft=context
?
Vim7 has ConTeXt support, and I *THINK* it attempts to use the first
hundred lines of your TeX files to detect the file type (it's possible
that it only uses those lines to find LaTeX and otherwise figures its
plain TeX). If it detects LaTeX, Vim-LaTeX gets called. If it detects
ConTeXt, the ConTeXt support (at least syntax highlighting) should be
called. Alternatively, if your file starts with the line
%&context
then I believe it will force ConTeXt detection.
The autodetection is disabled if you have
:set g:tex_flavor='latex'
in your .vimrc. If you do have that there, try removing it. See if you
like the results.
IF NONE OF THAT WORKS, then try adding a modeline:
% vim: set ft=context:
to the start or end of your ConTeXt source. See
:help modeline
for more information (modeline recognition can be disabled, and so if
modelines aren't working for you, you should make sure they're turned
on. See the help for more details). You can drop modelines in text files
to set file-specific settings for Vim.
--Ted
--
Ted Pavlic <te...@te...>
Please visit my ALS association page:
http://web.alsa.org/goto/tedpavlic
My family appreciates your support in the fight to defeat ALS.
|