소스 검색

Merge pull request #386 from srstevenson/conditional-syntax-highlighting

Only highlight vim-plug buffers if syntax highlighting is enabled
Junegunn Choi 10 년 전
부모
커밋
676174c34d
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      plug.vim

+ 3 - 1
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
-  call s:syntax()
+  if exists('g:syntax_on')
+    call s:syntax()
+  endif
 endfunction
 
 function! s:assign_name()