diff --git a/ftdetect/UltiSnips.vim b/ftdetect/UltiSnips.vim index e5df595..48844c6 100644 --- a/ftdetect/UltiSnips.vim +++ b/ftdetect/UltiSnips.vim @@ -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