use setf to set filetype for DXL to java

This commit is contained in:
Josh Holtrop 2013-04-17 13:38:32 -04:00
parent dc27105c5e
commit c9587cb412

3
vimrc
View File

@ -90,7 +90,8 @@ if has("autocmd")
autocmd FileType c syn match Constant display "\<[A-Z_][A-Z_0-9]*\>"
autocmd FileType cpp syn match Constant display "\<[A-Z_][A-Z_0-9]*\>"
autocmd FileType dosbatch syn match Comment "^@rem\($\|\s.*$\)"lc=4 contains=dosbatchTodo,@dosbatchNumber,dosbatchVariable,dosbatchArgument
autocmd BufRead,BufNewFile *.dxl setlocal syntax=cpp sw=2 ts=2 sts=2
autocmd BufRead,BufNewFile *.dxl setf java
autocmd BufRead,BufNewFile *.dxl setlocal sw=2 ts=2 sts=2
" install glsl.vim in ~/.vim/syntax to use syntax highlighting for GLSL:
autocmd BufRead,BufNewFile *.frag,*.vert,*.fp,*.vp,*.glsl setf glsl
autocmd Syntax {cpp,c,idl} runtime syntax/doxygen.vim