From ca234ef7ea236a1b9d0eb3f8f692b6935c9d6400 Mon Sep 17 00:00:00 2001 From: Ethan Schoonover Date: Fri, 29 Apr 2011 16:09:41 -0700 Subject: [vim] solarized - added SolarizedOptions command --- colors/solarized.vim | 7 +++++-- doc/solarized.txt | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/colors/solarized.vim b/colors/solarized.vim index c76259c..1f3df20 100644 --- a/colors/solarized.vim +++ b/colors/solarized.vim @@ -865,7 +865,7 @@ autocmd GUIEnter * if (s:vmode != "gui") | exe "colorscheme " . g:colors_name | " " let g:solarized_menu=0 -function! SolarizedOptions() +function! s:SolarizedOptions() new setf vim let failed = append(0, s:defaults_list) @@ -874,6 +874,9 @@ function! SolarizedOptions() let failed = append(0, s:lazycat_list) 0 endfunction +if !exists(":SolarizedOptions") + command SolarizedOptions :call s:SolarizedOptions() +endif function! SolarizedMenu() if exists("g:loaded_solarized_menu") @@ -908,7 +911,7 @@ if g:colors_name == "solarized" amenu &Solarized.&Help.&Toggle\ Background\ Help :help togglebg amenu &Solarized.&Help.&Removing\ This\ Menu :help solarized-menu - amenu &Solarized.&Autogenerate\ options :call SolarizedOptions() + amenu &Solarized.&Autogenerate\ options :SolarizedOptions an 9999.77 &Help.&Solarized\ Colorscheme :help solarized an 9999.78 &Help.&Toggle\ Background :help togglebg diff --git a/doc/solarized.txt b/doc/solarized.txt index 2f715fa..92872f3 100644 --- a/doc/solarized.txt +++ b/doc/solarized.txt @@ -138,7 +138,9 @@ You can easily modify and experiment with Solarized display options using the Solarized menu when using Vim in gui mode. Once you have things set to your liking, you can autogenerate the current option list in a format ready for insertion into your .vimrc file using the Solarized menu "Autogenerate -Options" command. +Options" command or at the command line with: + + :SolarizedOptions OPTION LIST -- cgit v1.2.3-70-g09d2