Look in Vim's runtime area for filetype.vim
. You can bring it up in vim with:
:e $VIMRUNTIME/filetype.vim
In my version, it looks like this line does the trick:
" Vim script
au BufNewFile,BufRead *vimrc* call s:StarSetf('vim')
Perhaps you want to put your autocmd
in ~/.vim/after/filetype.vim
. I believe this will cause it to be registered after the system ones, and then &syntax
should be set up correctly.