commit eaca657c04a69516fe8071572222abb054d7d082
parent 36b72f0efe6094f1846d603e99fed44778dd87ab
Author: Chris Bracken <chris@bracken.jp>
Date: Wed, 13 Feb 2013 10:49:05 -0800
Added highlighting for over-length text.
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.vim/.vimrc b/.vim/.vimrc
@@ -41,13 +41,18 @@ if &t_Co > 2 || has("gui_running")
set guifont=Monospace\ 11
endif
- " Highlight trailing whitespace
if has("autocmd")
+ " Highlight trailing whitespace
highlight ExtraWhitespace ctermbg=red guibg=red
au ColorScheme * highlight ExtraWhitespace guibg=red
au BufEnter * match ExtraWhitespace /\s\+$/
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
au InsertLeave * match ExtraWhiteSpace /\s\+$/
+
+ " Highlight over-length lines
+ highlight OverLength ctermbg=red ctermfg=white guibg=#592929
+ au BufEnter,InsertLeave * match OverLength /\%81v.\+/
+ au BufEnter,InsertLeave *.java match OverLength /\%101v.\+/
endif
endif