From a23cc2cbfc9712395d622b62b9351b7a09821fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 17 Aug 2012 15:47:24 +0200 Subject: fix solarized theme --- vimrc | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/vimrc b/vimrc index 3485114..3cf89a5 100644 --- a/vimrc +++ b/vimrc @@ -3,26 +3,28 @@ call pathogen#infect() " color scheme -" map :let &background = ( &background == "dark" ? "light" : "dark" ) +" set t_Co=256 " if !empty($DISPLAY) -" set t_Co=256 -" colorscheme desert256 -" else -" colorscheme adobe -" endif - -syntax enable -set background=dark -colorscheme solarized -call togglebg#map("") - -" Also switch on highlighting the last used search pattern. -" Switch syntax highlighting on, when the terminal has colors -if &t_Co > 2 || has("gui_running") +if &t_Co >= 256 || has("gui_running") syntax on set hlsearch + set background=dark + let g:solarized_termtrans=1 + let g:solarized_termcolors=256 + let g:solarized_contrast="high" + let g:solarized_visibility="high" + colorscheme solarized + " colorscheme herald + " colorscheme desert256 + " colorscheme hemisu + " colorscheme neverland2 +else + colorscheme adobe endif +call togglebg#map("") +" map :let &background = ( &background == "dark" ? "light" : "dark" ) + " colorize extra whitespaces highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ -- cgit v1.1-2-g2b99