From ffb9b79480a9acdcb78ddd960a900af97c4b9319 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Tue, 4 Aug 2015 07:56:55 +0200 Subject: [PATCH] Do not run autocommands when using --noplugin. Fixes #214. --- ftdetect/UltiSnips.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftdetect/UltiSnips.vim b/ftdetect/UltiSnips.vim index 7c410c4..81af3a1 100644 --- a/ftdetect/UltiSnips.vim +++ b/ftdetect/UltiSnips.vim @@ -6,7 +6,7 @@ if exists("vimpager") finish endif -if has("autocmd") +if has("autocmd") && &loadplugins augroup UltiSnipsFileType autocmd! autocmd FileType * call UltiSnips#FileTypeChanged()