This plugin will load corresponding patch script located in the given directory when current colorscheme changed.
Install this plugin with your plugin manager:
Plug 'skywind3000/vim-color-patch'
Setup the patch search path:
let g:cpatch_path = '~/.vim/cpatch'
create a desert.vim
in the ~/.vim/cpatch
folder:
highlight! LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE
\ gui=NONE guifg=#585858 guibg=NONE
and this script will be loaded after executing:
:color desert
edit ~/.vim/cpatch/__init__.vim
:
if has('win32') || has('win64')
call cpatch#disable_italic()
endif
The __init__.vim
is a public script and it will be loaded for every colorscheme.
vim-color-patch
provides some help functions like disable_italic()
for style tuning.
edit ~/.vim/cpatch/monokai.vim
:
call cpatch#remove_background('SpecialKey')
edit ~/.vim/cpatch/gruvbox.vim
:
hi! VertSplit term=reverse ctermfg=239 ctermbg=233 guifg=#64645e guibg=#211F1C
This plugin provides some help functions for highlight manipulation:
function cpatch#remove_style(what)
argument what
can be one of:
['underline', 'undercurl', 'reverse', 'inverse', 'italic', 'bold', 'standout']
function cpatch#disable_italic()
same as call cpatch#remove_style("italic")
.
function cpatch#disable_bold()
same as call cpatch#remove_style("bold")
.
function cpatch#remove_background(group)
eg. remove background in the SignColumn:
call cpatch#remove_background('SignColumn')
TODO