diff options
author | Ethan Schoonover <es@ethanschoonover.com> | 2011-04-29 16:00:24 -0700 |
---|---|---|
committer | Ethan Schoonover <es@ethanschoonover.com> | 2011-04-29 16:02:20 -0700 |
commit | f300969c90c54529665e993ad7a077fe5c8f6684 (patch) | |
tree | b61e4f7dc2ef436976e33c32a24ec9fad1b57392 /autoload | |
parent | 4b0568dd06b5d04bb2c79ffd49d0898abe10ca18 (diff) | |
download | vim-colors-solarized-f300969c90c54529665e993ad7a077fe5c8f6684.tar.gz |
[vim] solarized updated with menus and autogenerated options
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/togglebg.vim | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/autoload/togglebg.vim b/autoload/togglebg.vim index f060cee..108511f 100644 --- a/autoload/togglebg.vim +++ b/autoload/togglebg.vim @@ -1,5 +1,5 @@ -" Toggle background -" Last Change: April 7, 2011 +" Toggle Background +" Modified: 2011 Apr 29 " Maintainer: Ethan Schoonover " License: OSI approved MIT license @@ -18,10 +18,18 @@ vnoremap <unique> <script> <Plug>ToggleBackground <ESC><SID>TogBG<ESC>gv nnoremenu <script> Window.Toggle\ Background <SID>TogBG inoremenu <script> Window.Toggle\ Background <ESC><SID>TogBG<ESC>a vnoremenu <script> Window.Toggle\ Background <ESC><SID>TogBG<ESC>gv +tmenu Window.Toggle\ Background Toggle light and dark background modes +nnoremenu <script> ToolBar.togglebg <SID>TogBG +inoremenu <script> ToolBar.togglebg <ESC><SID>TogBG<ESC>a +vnoremenu <script> ToolBar.togglebg <ESC><SID>TogBG<ESC>gv +tmenu ToolBar.togglebg Toggle light and dark background modes noremap <SID>TogBG :call <SID>TogBG()<CR> function! s:TogBG() - let &background = ( &background == "dark"? "light" : "dark" ) | exe "colorscheme " . g:colors_name + let &background = ( &background == "dark"? "light" : "dark" ) + if exists("g:colors_name") + exe "colorscheme " . g:colors_name + endif endfunction if !exists(":ToggleBG") |