I'm trying to create my own syntax configuration file for vim.
I have then created a ~/.vim/filetype.vim file with the following content:
autocmd BufNewFile,BufRead *.todo setfiletype todo
and the syntax configuration file lives in ~/.vim/todo.vim.
But this configuration file is not taken into account. I know the syntax to be right, because when I add its content to ~/.vimrc the syntax is applied. But to every files, and not only to those ending with .todo.
I have found this dirty hack to create a symbolic link from this file to /usr/share/vim/vim73/syntax/todo.vim.
This link will be deleted as soon as the vim package will be upgraded.
So is there a better way to perform this purpose?
Thanks a lot for your answer :)