From f31477407a584c47e4b95390a538e0f2d5630e7c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 23 Sep 2014 22:11:31 +0900 Subject: [PATCH] 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. --- plug.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plug.vim b/plug.vim index fc1b90f..7068d33 100644 --- a/plug.vim +++ b/plug.vim @@ -190,8 +190,9 @@ function! plug#end() call s:reorg_rtp() filetype plugin indent on - syntax enable - if !has('vim_starting') + if has('vim_starting') + syntax enable + else call s:reload() endif endfunction