Avoid multiple syntax enable during Vim startup

This commit is contained in:
Joshua Priddle
2016-02-20 21:00:06 -05:00
parent ffd54224a0
commit 396c60f24c
2 changed files with 4 additions and 2 deletions

View File

@@ -248,7 +248,9 @@ function! plug#end()
call s:reorg_rtp()
filetype plugin indent on
if has('vim_starting')
syntax enable
if has('syntax') && !exists('g:syntax_on')
syntax enable
end
else
call s:reload()
endif