mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-10-24 22:57:25 +08:00
Limit autocmd effects.
This commit is contained in:
1 parent
8686edfc63
commit
860c45ab2a
1 file changed
+5
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user