mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-10-18 20:11:26 +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()
|
autocmd FileType * call <SID>DelimitMateDo()
|
||||||
|
|
||||||
" Run on new buffers.
|
" 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:
|
" Flush the char buffer:
|
||||||
autocmd InsertEnter * call <SID>FlushBuffer()
|
autocmd InsertEnter * call <SID>FlushBuffer()
|
||||||
|
|||||||
Reference in new issue
Block a user