浏览代码

Clear colorcolumn in vim-plug buffer (#779)

Árni Dagur 7 年之前
父节点
当前提交
0a255ee62d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      plug.vim

+ 3 - 0
plug.vim

@@ -763,6 +763,9 @@ function! s:prepare(...)
     execute 'silent! unmap <buffer>' k
   endfor
   setlocal buftype=nofile bufhidden=wipe nobuflisted nolist noswapfile nowrap cursorline modifiable nospell
+  if exists('+colorcolumn')
+    setlocal colorcolumn=
+  endif
   setf vim-plug
   if exists('g:syntax_on')
     call s:syntax()