Преглед на файлове

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()