Add check to prevent errors when using vimpager.

This commit is contained in:
tafryn 2014-08-08 16:27:38 -07:00
parent 279d6e63c9
commit a8c9caae81

View File

@ -1,8 +1,10 @@
" This has to be called before ftplugins are loaded. Therefore
" it is here in ftdetect though it maybe shouldn't
if has("autocmd")
augroup UltiSnipsFileType
au!
autocmd FileType * call UltiSnips#FileTypeChanged()
augroup END
if !exists("vimpager")
if has("autocmd")
augroup UltiSnipsFileType
au!
autocmd FileType * call UltiSnips#FileTypeChanged()
augroup END
endif
endif