Mojca Miklavec wrote:
In case someone finds this experimental piece of code for highlighting metapost inside ConTeXt useful, put:
" ConTeXt augroup filetypedetect au! BufRead,BufNewFile *.tex setfiletype context augroup END
somewhere to your filetype.vim (probably after TeX) and move the attached file to syntax\context.vim.
If you have something like \startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start-\stop pair.
There are still some "bugs" present (see comments in file), but I don't know how yet to get rid of them.
I downloaded SpellChecker and SuperTab (autocomplete) today from the vim website and it works great! (see http://contextgarden.net/Vim and feel free to add any useful stuff there)
I was astonished as I saw autocomplete work. There are only a couple of lines with an extraordinary functionality. I think that if someone writes a good script to convert texshow to vim syntax highlighting script, than autocomplete will be able to provide good hints for all the existing commands in ConTeXt and the corresponding parameters. I'll try to see what I can do, but please don't excpect any results too soon.
What is the syntax? I can exten ctstools to spit out a vim keyword table; it already handles scite, jedit and bbedit so adding vim is not undoable Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------