My ~/.vimrc contains the following line:
au BufNewFile,BufRead *.fsh,*.vsh setf glsl
My ~/.vim/syntax directory contains glsl.vim that works if loaded manually (:setf glsl in Vim), but it doesn't load automatically when editing a file with those extensions. How do I get syntax highlighting for those files automatically? Syntax highlighting works for other files as usual. My Vim version is 7.4 running on Linux Mint.
set filetype=glslinstead ofsetf glsl?:help :setf.:e foo.fshand then:verbose set ft?? How about:verbose au BufNewFile *.fsh?