From 196c1bddf1f74ed932de1655459141b3ed04440d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 12 Nov 2012 14:43:43 +0100 Subject: vimrc: cleanup ExtreaWhitespace, add ExtraOver (>80chars) --- vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 3339f4d..ddbfd99 100644 --- a/vimrc +++ b/vimrc @@ -40,7 +40,6 @@ call togglebg#map("") " colorize extra whitespaces highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ -autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red " files set ff=unix @@ -49,6 +48,10 @@ set nofsync :au BufNewFile * :exe("0r! ~/.vim/skeletons.rb %:p " . &filetype) :au Filetype html,xml,xsl source ~/.vim/scripts/closetag.vim +" Set color over 80 chars +au BufRead *.c,*.cpp,*.h match ExtraOver /\s\+\%#\@