diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-08-17 15:47:24 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-08-17 15:47:24 +0200 |
commit | a23cc2cbfc9712395d622b62b9351b7a09821fca (patch) | |
tree | da7e5c7de3b76b135a7ea83a08e0ab9345e37987 | |
parent | 79926c8d7b62b68071cb5f4930aed6c323e7a3da (diff) | |
download | vim-a23cc2cbfc9712395d622b62b9351b7a09821fca.zip vim-a23cc2cbfc9712395d622b62b9351b7a09821fca.tar.gz |
fix solarized theme
-rw-r--r-- | vimrc | 32 |
1 files changed, 17 insertions, 15 deletions
@@ -3,26 +3,28 @@ call pathogen#infect() " color scheme -" map <F12> :let &background = ( &background == "dark" ? "light" : "dark" )<CR> +" 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("<F5>") - -" 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("<F5>") +" map <F12> :let &background = ( &background == "dark" ? "light" : "dark" )<CR> + " colorize extra whitespaces highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ |