From 91bee00f3d9860a578f5149ce9bab13352583b90 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 10 Oct 2013 15:02:00 -0400 Subject: [PATCH] combine some autocmds --- vimrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 22a670f..77dc9e5 100644 --- a/vimrc +++ b/vimrc @@ -94,8 +94,7 @@ if has("autocmd") augroup joshs autocmd! autocmd FileType text setlocal noautoindent - 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 Syntax c,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 setf java autocmd BufRead,BufNewFile *.dxl setlocal sw=2 ts=2 sts=2