Don't test for autocmd

This commit is contained in:
Kevin MacMartin 2018-03-13 15:37:19 -04:00
parent e8413330cf
commit 21ba96d480

View file

@ -24,7 +24,7 @@ if (g:disablelinebreaks == 1)
endif
"enable omnicompletion for any filetype without that has syntax highlighting
if has("autocmd") && exists("+omnifunc")
if exists("+omnifunc")
autocmd VimEnter,Filetype * if &omnifunc == ""|setlocal omnifunc=syntaxcomplete#Complete|endif
endif