Enable syntax only during startup

Related discussion can be found in #83. If the user choose not to use
syntax highlighting, he can disable it by putting `syntax off` after
`plug#end()`. But since `plug#end()` is called by `PlugInstall` or
`PlugUpdate`, it is reenabled on those commands which is not desirable.
This commit fixes the issue by changing `plug#end` to do `syntax enable`
only during Vim startup.
This commit is contained in:
Junegunn Choi 2014-09-23 22:11:31 +09:00
parent 0e907d4f38
commit f31477407a

View File

@ -190,8 +190,9 @@ function! plug#end()
call s:reorg_rtp()
filetype plugin indent on
if has('vim_starting')
syntax enable
if !has('vim_starting')
else
call s:reload()
endif
endfunction