Skip to content

Commit

Permalink
[vim] add missing solarized_menu option
Browse files Browse the repository at this point in the history
  • Loading branch information
altercation committed May 2, 2011
1 parent 295f56b commit 2b30f61
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions colors/solarized.vim
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
" (see this url for latest release & screenshots)
" License: OSI approved MIT license (see end of this file)
" Created: In the middle of the night
" Modified: 2011 May 01
" Modified: 2011 May 02
"
" Usage "{{{
"
@@ -638,15 +638,22 @@ exe "hi! DiffChange" .s:fmt_revr .s:fg_yellow .s:bg_none
exe "hi! DiffDelete" .s:fmt_revr .s:fg_red .s:bg_none
exe "hi! DiffText" .s:fmt_revr .s:fg_blue .s:bg_none
elseif (g:solarized_diffmode=="low")
exe "hi! DiffAdd" .s:fmt_curl .s:fg_green .s:bg_none .s:sp_green
exe "hi! DiffChange" .s:fmt_curl .s:fg_yellow .s:bg_none .s:sp_yellow
exe "hi! DiffAdd" .s:fmt_undr .s:fg_green .s:bg_none .s:sp_green
exe "hi! DiffChange" .s:fmt_undr .s:fg_yellow .s:bg_none .s:sp_yellow
exe "hi! DiffDelete" .s:fmt_bold .s:fg_red .s:bg_none
exe "hi! DiffText" .s:fmt_curl .s:fg_blue .s:bg_none .s:sp_blue
exe "hi! DiffText" .s:fmt_undr .s:fg_blue .s:bg_none .s:sp_blue
else " normal
if has("gui_running")
exe "hi! DiffAdd" .s:fmt_bold .s:fg_green .s:bg_base02 .s:sp_green
exe "hi! DiffChange" .s:fmt_bold .s:fg_yellow .s:bg_base02 .s:sp_yellow
exe "hi! DiffDelete" .s:fmt_bold .s:fg_red .s:bg_base02
exe "hi! DiffText" .s:fmt_bold .s:fg_blue .s:bg_base02 .s:sp_blue
else
exe "hi! DiffAdd" .s:fmt_none .s:fg_green .s:bg_base02 .s:sp_green
exe "hi! DiffChange" .s:fmt_none .s:fg_yellow .s:bg_base02 .s:sp_yellow
exe "hi! DiffDelete" .s:fmt_none .s:fg_red .s:bg_base02
exe "hi! DiffText" .s:fmt_none .s:fg_blue .s:bg_base02 .s:sp_blue
endif
endif
exe "hi! SignColumn" .s:fmt_none .s:fg_base0
exe "hi! Conceal" .s:fmt_none .s:fg_blue .s:bg_none
@@ -955,7 +962,7 @@ if exists("g:loaded_solarized_menu")
endif
let g:loaded_solarized_menu = 1

if g:colors_name == "solarized"
if g:colors_name == "solarized" && g:solarized_menu != 0

amenu &Solarized.&Contrast.&Low\ Contrast :let g:solarized_contrast="low" \| colorscheme solarized<CR>
amenu &Solarized.&Contrast.&Normal\ Contrast :let g:solarized_contrast="normal" \| colorscheme solarized<CR>

0 comments on commit 2b30f61

Please sign in to comment.