summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-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