diff --git a/doc/colorscheme_settings.txt b/doc/colorscheme_settings.txt index f7789cf..4b41803 100644 --- a/doc/colorscheme_settings.txt +++ b/doc/colorscheme_settings.txt @@ -12,26 +12,36 @@ CONTENTS ============================================================================== COMMANDS *colorscheme_settings_commans* -*:ColorSchemeSelect* - Open colorscheme a selector window - You can move with jk or - Hit Enter to escape popupwindow - +*:SwitchColorscheme* +*:SwitchBackGround* +Like VS Code, you can change Vim's Colorscheme. +You can select the Color scheme using J or K or the cursor keys. +You can then confirm your selection with the Enter or Spacebar. ============================================================================== OPTIONS *colorscheme_settings_options* -*g:colorscheme_settings#colorrc_path* - When close a selection window - Save your changes to a this file path +*g:colorschemes_settings#use_default_colorschemes* +Setting this flag to v: false will prevent the standard color scheme from being loaded + + +*g:colorschemes_settings#rc_file_path* +Specifies where the settings are saved when the colorscheme is changed +This path is not automatically expanded +Note that the file will be overwritten + +Example +*let g:colorscheme_settings#colorrc_path = expand('~/.vim/colorrc.vim')* +If you want to set option when Vim starts. write this code to your .vimrc -*g:colorscheme_settings#isShowDefaultColorscheme* - Include default color scheme in selection window - v:true or v:false +let s:colorrcpath = expand('~/.vim/colorrc.vim') +if filereadable(s:colorrcpath) + execute "source" s:colorrcpath +endif ============================================================================== ABOUT *colorscheme_settings_about* -Author: Kota Kato a.k.a kato-k +Author: Kota Kato github:kato-k Repository: https://github.com/kato-k/vim-colorscheme-settings License: MIT diff --git a/plugin/colorschemes_settings.vim b/plugin/colorschemes_settings.vim index 509a4c8..b81f007 100644 --- a/plugin/colorschemes_settings.vim +++ b/plugin/colorschemes_settings.vim @@ -14,7 +14,7 @@ if !exists('g:colorschemes_settings#rc_file_path') let g:colorschemes_settings#rc_file_path = '' endif -command! SwitchColor call g:colorschemes_settings#switch_colorscheme() +command! SwitchColorScheme call g:colorschemes_settings#switch_colorscheme() command! SwitchBackGround call g:colorschemes_settings#switch_background() let g:loaded_colorschemes_settings = 1