Call s:setup() directly in the plugin. Should fix #202.

- Move 'call s:setup()' out of the autocmd.
- Add a test for the first buffer without filetype set.
This commit is contained in:
Israel Chauca Fuentes
2015-01-15 11:21:09 -05:00
parent e7b4dedb84
commit 254a89d67c
2 changed files with 11 additions and 2 deletions

View File

@@ -384,8 +384,6 @@ augroup delimitMate
" Run on file type change.
au FileType * call <SID>setup()
au VimEnter * call <SID>setup()
" Run on new buffers.
au BufNewFile,BufRead,BufEnter *
\ if !exists('b:delimitMate_was_here') |
@@ -396,6 +394,9 @@ augroup END
"}}}
" This is for the default buffer when it does not have a filetype.
call s:setup()
let &cpo = save_cpo
" GetLatestVimScripts: 2754 1 :AutoInstall: delimitMate.vim
" vim:foldmethod=marker:foldcolumn=4:ts=2:sw=2