Quellcode durchsuchen

Clear colorcolumn in vim-plug buffer (#779)

Árni Dagur vor 7 Jahren
Ursprung
Commit
0a255ee62d
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  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()