mirror of
https://github.com/junegunn/vim-plug.git
synced 2026-05-25 17:58:54 +08:00
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:
@@ -190,8 +190,9 @@ function! plug#end()
|
|||||||
|
|
||||||
call s:reorg_rtp()
|
call s:reorg_rtp()
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
syntax enable
|
if has('vim_starting')
|
||||||
if !has('vim_starting')
|
syntax enable
|
||||||
|
else
|
||||||
call s:reload()
|
call s:reload()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user