Question about 3rd-party packaging of Vim syntax highlighting macros

Kevin B. McCarty kmccarty at Princeton.EDU
Sat Feb 10 00:36:25 UTC 2007

James Vega wrote:

> Vim has to be told how to determine what filetype a certain file is.
> The easiest way for you to do this would probably be to ship
> /usr/share/vim/addons/ftdetect/kuip.vim with the contents:
>   au BufRead,BufNewFile *.cdf set filetype=kuip
> This, of course, assumes that *.cdf is predominantly going to be of kuip
> filetype.

I'll read some more docs to find out how to check the contents of the
file for certain text strings that should occur in KUIP CDF files, just
to prevent accidental matches with *.cdf files unrelated to Cernlib.

>   syn include @kuipC syntax/c.vim
> Hope that helps.

Both tips worked great!  Thanks!
best regards,

Kevin B. McCarty <kmccarty at>   Physics Department
WWW:    Princeton University
GPG: public key ID 4F83C751                 Princeton, NJ 08544

More information about the pkg-vim-maintainers mailing list