Merge pull request #386 from srstevenson/conditional-syntax-highlighting
Only highlight vim-plug buffers if syntax highlighting is enabled
This commit is contained in:
commit
676174c34d
1 changed files with 3 additions and 1 deletions
2
plug.vim
2
plug.vim
|
@ -645,7 +645,9 @@ function! s:prepare()
|
|||
silent! unmap <buffer> X
|
||||
setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap cursorline modifiable
|
||||
setf vim-plug
|
||||
if exists('g:syntax_on')
|
||||
call s:syntax()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:assign_name()
|
||||
|
|
Loading…
Reference in a new issue