wrap autocmds in a group to avoid duplicates

This commit is contained in:
Josh Holtrop 2013-09-23 16:16:29 -04:00
parent 617186cfd1
commit 75254dca21

3
vimrc
View File

@ -91,6 +91,8 @@ inoremap <silent> <C-S-Space> <C-o>:pclose<CR>
inoremap <C-Enter> <Esc>O inoremap <C-Enter> <Esc>O
if has("autocmd") if has("autocmd")
augroup joshs
autocmd!
autocmd FileType text setlocal noautoindent autocmd FileType text setlocal noautoindent
autocmd FileType c syn match Constant display "\<[A-Z_][A-Z_0-9]*\>" 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 cpp syn match Constant display "\<[A-Z_][A-Z_0-9]*\>"
@ -129,6 +131,7 @@ if has("autocmd")
autocmd BufWinEnter * call LoadProject() autocmd BufWinEnter * call LoadProject()
autocmd BufEnter * call ProjectCD() autocmd BufEnter * call ProjectCD()
augroup END
endif " has("autocmd") endif " has("autocmd")
"============================================================================== "==============================================================================