我在 ubuntu 12.04 上的 ~/.vim/syntax 文件夹中有一个自定义javascript 语法文件,但是当我在 vim 中打开一个 .js 文件时,它会使用系统语法:
:scriptnames 的输出
1: /usr/share/vim/vimrc
2: /usr/share/vim/vim73/debian.vim
3: /usr/share/vim/vim73/syntax/syntax.vim
4: /usr/share/vim/vim73/syntax/synload.vim
5: /usr/share/vim/vim73/syntax/syncolor.vim
6: ~/.vim/filetype.vim
7: /usr/share/vim/vim73/filetype.vim
8: /usr/share/vim/vim73/plugin/getscriptPlugin.vim
9: /usr/share/vim/vim73/plugin/gzip.vim
10: /usr/share/vim/vim73/plugin/matchparen.vim
11: /usr/share/vim/vim73/plugin/netrwPlugin.vim
12: /usr/share/vim/vim73/plugin/rrhelper.vim
13: /usr/share/vim/vim73/plugin/spellfile.vim
14: /usr/share/vim/vim73/plugin/tarPlugin.vim
15: /usr/share/vim/vim73/plugin/tohtml.vim
16: /usr/share/vim/vim73/plugin/vimballPlugin.vim
17: /usr/share/vim/vim73/plugin/zipPlugin.vim
18: ~/.vim/syntax/javascript.vim
19: /usr/share/vim/vim73/syntax/javascript.vim
如何让我的自定义语法应用于 *.js 文件?