Add check to prevent errors when using vimpager.
This commit is contained in:
parent
279d6e63c9
commit
a8c9caae81
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user