Commit 1388c887 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Use Vim colorcolumn instead of a match group for long lines

parent 6b23636f
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -136,12 +136,10 @@ au! BufWinEnter
highlight ExtraWhitespace ctermbg=darkgreen guibg=lightgreen
au BufEnter * match ExtraWhitespace /\v([^\t]+)@>\t+|(\s{2,}|(\w.*)@<!\s)$/

" High-light text longer than 80 characters
highlight LongLine ctermbg=red guibg=pink
au BufEnter * match LongLine /\v%81v[^\r]/
au BufEnter term://*,man://* match none
if exists('TermOpen')
	au TermOpen * match none
" Set a marker column for *just outside* &textwidth
highlight ColorColumn ctermbg=gray ctermfg=red guibg=gray guifg=red
if exists('+colorcolumn')
	set colorcolumn=+1
endif

" Toggle search high-lighting with '<Leader>h' or 'th' (deprecated)