Skip to content

Commit

Permalink
docの更新
Browse files Browse the repository at this point in the history
  • Loading branch information
kat0h committed Nov 4, 2020
1 parent e25fe72 commit 613c54f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
34 changes: 22 additions & 12 deletions doc/colorscheme_settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,36 @@ CONTENTS
==============================================================================
COMMANDS *colorscheme_settings_commans*

*:ColorSchemeSelect*
Open colorscheme a selector window
You can move with jk or <up><down>
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

Expand Down
2 changes: 1 addition & 1 deletion plugin/colorschemes_settings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 613c54f

Please sign in to comment.