Reset autocmds on re-loading.

This commit is contained in:
Israel Chauca Fuentes
2010-06-12 12:26:30 -05:00
parent c91674eed2
commit 2545fa5967

View File

@@ -93,8 +93,13 @@ command! DelimitMateTest call s:TestMappingsDo()
" Switch On/Off: " Switch On/Off:
command! DelimitMateSwitch call s:DelimitMateSwitch() command! DelimitMateSwitch call s:DelimitMateSwitch()
"}}}
" Run on file type events. " Autocommands: {{{
augroup delimitMate
au!
" Run on file type change.
"autocmd VimEnter * autocmd FileType * call <SID>DelimitMateDo() "autocmd VimEnter * autocmd FileType * call <SID>DelimitMateDo()
autocmd FileType * call <SID>DelimitMateDo() autocmd FileType * call <SID>DelimitMateDo()
@@ -105,7 +110,7 @@ autocmd BufNewFile,BufRead,BufEnter * if !exists("b:loaded_delimitMate") | call
autocmd InsertEnter * call delimitMate#FlushBuffer() autocmd InsertEnter * call delimitMate#FlushBuffer()
autocmd BufEnter * if mode() == 'i' | call delimitMate#FlushBuffer() | endif autocmd BufEnter * if mode() == 'i' | call delimitMate#FlushBuffer() | endif
"function! s:GetSynRegion () | echo synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name') | endfunction augroup END
"}}} "}}}