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 " This has to be called before ftplugins are loaded. Therefore
" it is here in ftdetect though it maybe shouldn't " it is here in ftdetect though it maybe shouldn't
if has("autocmd") if !exists("vimpager")
augroup UltiSnipsFileType if has("autocmd")
au! augroup UltiSnipsFileType
autocmd FileType * call UltiSnips#FileTypeChanged() au!
augroup END autocmd FileType * call UltiSnips#FileTypeChanged()
augroup END
endif
endif endif