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
|
||||
" 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
|
||||
|
Loading…
Reference in New Issue
Block a user