Limit autocmd effects.

This commit is contained in:
Israel Chauca Fuentes
2011-01-14 22:13:00 -06:00
parent 8686edfc63
commit 860c45ab2a

View File

@@ -413,7 +413,11 @@ augroup delimitMate
autocmd FileType * call <SID>DelimitMateDo()
" Run on new buffers.
autocmd BufNewFile,BufRead,BufEnter * call <SID>DelimitMateDo()
autocmd BufNewFile,BufRead,BufEnter *
\ if !exists('b:delimitMate_was_here') |
\ call <SID>DelimitMateDo() |
\ let b:delimitMate_was_here = 1 |
\ endif
" Flush the char buffer:
autocmd InsertEnter * call <SID>FlushBuffer()