UltiSnips/ftdetect/UltiSnips.vim

18 lines
444 B
VimL
Raw Normal View History

" This has to be called before ftplugins are loaded. Therefore
" it is here in ftdetect though it maybe shouldn't
2014-09-01 03:45:20 -04:00
" This is necessary to prevent errors when using vim as a pager.
if exists("vimpager")
finish
endif
if has("autocmd")
2015-05-27 05:32:22 -04:00
augroup UltiSnipsFileType
autocmd!
2015-05-27 05:32:22 -04:00
autocmd FileType * call UltiSnips#FileTypeChanged()
augroup END
" restore 'filetypedetect' group declaration
augroup filetypedetect
2014-09-02 10:32:06 -04:00
endif