Skip to content

Commit 516a9f6

Browse files
author
skywind3000
committed
change default path from ~/.vim/cpatch to ~/.vim/colors/patch
1 parent 0f94baa commit 516a9f6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Plug 'skywind3000/vim-color-patch'
3838
Setup the patch search path:
3939

4040
```VimL
41-
let g:cpatch_path = '~/.vim/cpatch'
41+
let g:cpatch_path = '~/.vim/colors/patch'
4242
```
4343

4444
And script with the same name will be loaded in this locations after `:color xxx` command.
@@ -48,7 +48,7 @@ And script with the same name will be loaded in this locations after `:color xxx
4848

4949
#### 1) Change the line number style in "desert":
5050

51-
create a new file named `desert.vim` in the `~/.vim/cpatch` folder:
51+
create a new file named `desert.vim` in the `~/.vim/colors/patch` folder:
5252

5353
```viml
5454
highlight! LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE
@@ -65,7 +65,7 @@ And `LineNr` in `desert` will be overrided.
6565

6666
#### 2) Remove all italic for Windows:
6767

68-
edit `~/.vim/cpatch/__init__.vim` :
68+
edit `~/.vim/colors/patch/__init__.vim` :
6969

7070
```VimL
7171
if has('win32') || has('win64')
@@ -79,15 +79,15 @@ The `__init__.vim` is a public script and it will be sourced for every colorsche
7979

8080
#### 3) Remove background colors for listchars in "monokai":
8181

82-
edit `~/.vim/cpatch/monokai.vim`:
82+
edit `~/.vim/colors/patch/monokai.vim`:
8383

8484
```VimL
8585
call cpatch#remove_background('SpecialKey')
8686
```
8787

8888
#### 4) Change VertSplit style for "gruvbox":
8989

90-
edit `~/.vim/cpatch/gruvbox.vim`:
90+
edit `~/.vim/colors/patch/gruvbox.vim`:
9191

9292
```VimL
9393
hi! VertSplit term=reverse ctermfg=239 ctermbg=233 guifg=#64645e guibg=#211F1C
@@ -113,7 +113,7 @@ This plugin will try to find scripts located in the directory specified by `g:c
113113
3) `{NAME}.vim`
114114
4) `{NAME}.lua`
115115

116-
Default value: `"~/.vim/cpatch"`.
116+
Default value: `"~/.vim/colors/patch"`.
117117

118118
Can accept a list or a comma separated string.
119119

plugin/cpatch.vim

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
" cpatch.vim - load colorscheme patch automatically
55
"
66
" Created by skywind on 2024/01/05
7-
" Last Modified: 2024/01/13 00:20
7+
" Last Modified: 2024/01/16 19:38
88
"
99
" Homepage: https://github.com/skywind3000/vim-color-patch
1010
"
1111
" USAGE:
1212
"
1313
" This script will load colorscheme patch when current color changed
1414
"
15-
" let g:cpatch_path = '~/.vim/cpatch'
15+
" let g:cpatch_path = '~/.vim/colors/patch'
1616
"
1717
" After setting "g:cpatch_path", if you change the current color:
1818
"
1919
" :color {NAME}
2020
"
2121
" This script will try to load the following scripts in order:
2222
"
23-
" 1) "~/.vim/cpatch/__init__.vim"
24-
" 2) "~/.vim/cpatch/__init__.lua"
25-
" 3) "~/.vim/cpatch/{NAME}.vim"
26-
" 4) "~/.vim/cpatch/{NAME}.lua"
23+
" 1) "~/.vim/colors/patch/__init__.vim"
24+
" 2) "~/.vim/colors/patch/__init__.lua"
25+
" 3) "~/.vim/colors/patch/{NAME}.vim"
26+
" 4) "~/.vim/colors/patch/{NAME}.lua"
2727
"
2828
" The first script "__init__.vim" in the "g:cpatch_path" folder will
2929
" be loaded for every colorscheme
@@ -36,7 +36,7 @@
3636
"----------------------------------------------------------------------
3737

3838
" color patch path: script will be searched here
39-
let g:cpatch_path = get(g:, 'cpatch_path', '~/.vim/cpatch')
39+
let g:cpatch_path = get(g:, 'cpatch_path', '~/.vim/color/patch')
4040

4141
" color patch subdirectory in every runtime path
4242
let g:cpatch_name = get(g:, 'cpatch_name', '')

0 commit comments

Comments
 (0)