Просмотр исходного кода

Clear colorcolumn in vim-plug buffer (#779)

Árni Dagur 7 лет назад
Родитель
Сommit
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()