summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-11-12 14:43:43 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-11-12 14:43:43 +0100
commit196c1bddf1f74ed932de1655459141b3ed04440d (patch)
tree3a82b3fe597a357c04629e9615e3a0b620af9845
parent0bc60091e12bae575cc5ab0d2df950bcbca18ea3 (diff)
downloadvim-196c1bddf1f74ed932de1655459141b3ed04440d.zip
vim-196c1bddf1f74ed932de1655459141b3ed04440d.tar.gz
vimrc: cleanup ExtreaWhitespace, add ExtraOver (>80chars)
-rw-r--r--vimrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 3339f4d..ddbfd99 100644
--- a/vimrc
+++ b/vimrc
@@ -40,7 +40,6 @@ call togglebg#map("<F5>")
" 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\+\%#\@<!$\|\%81v.*/
+highlight ExtraOver ctermbg=red ctermfg=white guibg=#59292
+
" set list
" set cursorline
" set cursorcolumn