[vim] solarized.vim menu updates

This commit is contained in:
Ethan Schoonover 2011-05-09 14:35:32 -07:00
parent 7a7e5c8818
commit 528a59f26d

View file

@ -1027,14 +1027,14 @@ if !exists(":SolarizedOptions")
endif
function! SolarizedMenu()
if exists("g:loaded_solarized_menu")
if exists("g:loaded_solarized_menu")
try
silent! aunmenu Solarized
endtry
endif
let g:loaded_solarized_menu = 1
endif
let g:loaded_solarized_menu = 1
if g:colors_name == "solarized" && g:solarized_menu != 0
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>
@ -1084,7 +1084,7 @@ if g:colors_name == "solarized" && g:solarized_menu != 0
an 9999.78 &Help.&Toggle\ Background :help togglebg<CR>
an 9999.79 &Help.-sep3- <Nop>
endif
endif
endfunction
autocmd ColorScheme * if g:colors_name != "solarized" | silent! aunmenu Solarized | else | call SolarizedMenu() | endif