Packaging a vim syntax rule with a conflicting filetype for a registered extension

Daniel Leidert daniel.leidert.spam at gmx.net
Tue Nov 29 21:35:29 UTC 2011


Hi,

I would like to ask for some support. I was asked to install the gtypist
vim syntax highlighting together with gtypist. I had no problems to
figure out, which files to install. Unfortunately gtypist files suffix
is .typ which is already handled in vim filetypes.vim as an SQL file.

Is there a way to handle this? I was already looking through the vim
documentation and Google, but the only solutions I found talking about
overruling don't work:

$ cat /usr/share/vim/addons/ftdetect/gtypist_filetype.vim
au BufRead,BufNewFile *.typ set filetype=gtypist

When I then open a .typ file `:set ft' still reports "filetype=sql". Can
you help me please?

Regards, Daniel




More information about the pkg-vim-maintainers mailing list