Skip to content

Commit 6620205

Browse files
committed
Make cc controlled by env var.
Defaults to off (my favorite), but easy to set. Also easy to set per session: VIM_CC=76 vim …
1 parent 04681fc commit 6620205

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.vim/plugin/colorcolumn.vim

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
if exists('+colorcolumn')
2+
if !empty($VIM_CC)
3+
let &colorcolumn=$VIM_CC
4+
hi ColorColumn ctermfg=red ctermbg=blue guifg=black guibg=lightgrey
5+
endif
6+
else
7+
" TODO:
8+
" if expand('$WANT_ALL')
9+
" echo "colorcolumn won't work - upgrade vim"
10+
" end
11+
end

.vim/plugin/colorcolumn80.vim

-10
This file was deleted.

0 commit comments

Comments
 (0)