1
mirror of https://github.com/junegunn/vim-plug.git synced 2024-12-27 14:18:50 -07:00

Merge pull request from srstevenson/conditional-syntax-highlighting

Only highlight vim-plug buffers if syntax highlighting is enabled
This commit is contained in:
Junegunn Choi 2016-01-25 13:14:03 +09:00
commit 676174c34d

View File

@ -645,7 +645,9 @@ function! s:prepare()
silent! unmap <buffer> X
setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap cursorline modifiable
setf vim-plug
call s:syntax()
if exists('g:syntax_on')
call s:syntax()
endif
endfunction
function! s:assign_name()