From 2e83040dc796115330f774f2ceb277cf4f6fe2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 8 Feb 2013 12:12:25 +0100 Subject: add tabs to ExtraWhitespace hi group, cleanup --- vimrc | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/vimrc b/vimrc index fdd58d8..06bef91 100644 --- a/vimrc +++ b/vimrc @@ -16,29 +16,18 @@ else colorscheme adobe endif -" nap alt-space to Esc -:imap -:imap - call togglebg#map("") " map :let &background = ( &background == "dark" ? "light" : "dark" ) " colorize extra whitespaces highlight ExtraWhitespace ctermbg=red guibg=red -match ExtraWhitespace /\s\+$/ - -" Set color over 80 chars -au BufRead *.c,*.cpp,*.h match ExtraOver /\s\+\%#\@ :set ts=8 sw=3 sts=3 expandtab cino=>5n-3f0^-2{2(0W1st0 +match ExtraWhitespace /\t\|\s\+$/ " local vimrc let g:localvimrc_ask=0 "let g:localvimrc_sandbox=0 -" tags +" ctags nnoremap :TlistToggle let Tlist_Exit_OnlyWindow = 1 " exit if taglist is last window open let Tlist_Show_One_File = 1 " Only show tags for current buffer @@ -98,6 +87,10 @@ if has("autocmd") " For all text files set 'textwidth' to 78 characters. autocmd FileType text setlocal textwidth=78 + " Set color over 80 chars + autocmd BufRead *.c,*.cpp,*.h match ExtraOver /\s\+\%#\@