Browse Source

Clear colorcolumn in vim-plug buffer (#779)

Árni Dagur 7 năm trước cách đây
mục cha
commit
0a255ee62d
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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()