diff options
Diffstat (limited to 'plugin/max-fix-colorschemes.vim')
| -rw-r--r-- | plugin/max-fix-colorschemes.vim | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/plugin/max-fix-colorschemes.vim b/plugin/max-fix-colorschemes.vim new file mode 100644 index 0000000..ac2af76 --- /dev/null +++ b/plugin/max-fix-colorschemes.vim | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | "======================================================================================================================= | ||
| 2 | " COLOR SCHEME: | ||
| 3 | "======================================================================================================================= | ||
| 4 | function! ExtendColorTheme() | ||
| 5 | highlight! Bold cterm=bold gui=bold | ||
| 6 | highlight! Italic cterm=italic gui=italic | ||
| 7 | highlight! Underline cterm=underline gui=underline | ||
| 8 | highlight! BoldUnderline cterm=bold,underline gui=bold,underline | ||
| 9 | highlight! BoldItalic cterm=bold,Italic gui=Bold,Italic | ||
| 10 | highlight! Todo cterm=bold gui=bold guibg=#ffffaa guifg=#000000 | ||
| 11 | highlight! Error ctermbg=NONE guibg=NONE | ||
| 12 | highlight! SpellBad cterm=NONE gui=undercurl guibg=NONE guifg=red | ||
| 13 | |||
| 14 | |||
| 15 | highlight! link SpecialKey NonText | " makes tab stop (see listchars) less disturbing | ||
| 16 | highlight! link EndOfBuffer Ignore | ||
| 17 | highlight! link WildMenu Search | ||
| 18 | highlight! link Convention Error | ||
| 19 | highlight! link VertSplit NonText | ||
| 20 | |||
| 21 | highlight! link Folded LineNr | ||
| 22 | highlight! link SignColumn LineNr | ||
| 23 | highlight! link FoldColumn LineNr | ||
| 24 | |||
| 25 | highlight! link PmenuSbar Pmenu | ||
| 26 | highlight! PmenuThumb cterm=inverse | ||
| 27 | highlight! MoreMsg cterm=inverse | ||
| 28 | |||
| 29 | |||
| 30 | endfunction | ||
| 31 | autocmd ColorScheme * call ExtendColorTheme() | ||
| 32 | |||
| 33 | |||
| 34 | if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest")) | ||
| 35 | let g:base16_shell_path = "~/.config/base16-shell/scripts" | ||
| 36 | let base16colorspace = 256 | ||
| 37 | set background=dark | ||
| 38 | source ~/.vimrc_background | ||
| 39 | else | ||
| 40 | let g:PaperColor_Theme_Options = { | ||
| 41 | \ 'theme': { | ||
| 42 | \ 'default': { | ||
| 43 | \ 'transparent_background': 0 | ||
| 44 | \ } | ||
| 45 | \ } | ||
| 46 | \ } | ||
| 47 | set background=light | ||
| 48 | colorscheme PaperColor | ||
| 49 | endif | ||
