diff options
Diffstat (limited to 'plugin/max-fix-colorschemes.vim')
-rw-r--r-- | plugin/max-fix-colorschemes.vim | 83 |
1 files changed, 33 insertions, 50 deletions
diff --git a/plugin/max-fix-colorschemes.vim b/plugin/max-fix-colorschemes.vim index 96b57e2..1535dc7 100644 --- a/plugin/max-fix-colorschemes.vim +++ b/plugin/max-fix-colorschemes.vim | |||
@@ -1,6 +1,34 @@ | |||
1 | "======================================================================================================================= | 1 | "======================================================================================================================= |
2 | " COLOR SCHEME: | 2 | " COLOR SCHEME: |
3 | "======================================================================================================================= | 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 cterm=NONE ctermbg=NONE gui=NONE guibg=NONE | ||
12 | highlight! SpellBad cterm=NONE gui=undercurl guibg=NONE guifg=red | ||
13 | highlight! Ignore cterm=NONE ctermbg=NONE ctermfg=NONE gui=NONE guibg=NONE guifg=NONE | ||
14 | highlight! LineNr cterm=italic gui=italic | ||
15 | highlight! PmenuThumb cterm=inverse | ||
16 | highlight! MoreMsg cterm=inverse | ||
17 | |||
18 | highlight! link qfSeparator Normal | " reserve one space | ||
19 | highlight! link qfLineNr Normal | " informational line numbers should look different | ||
20 | highlight! link SpecialKey NonText | " makes tab stop (see listchars) less disturbing | ||
21 | highlight! link WildMenu Search | ||
22 | highlight! link Convention Error | ||
23 | highlight! link PmenuSbar Pmenu | ||
24 | highlight! link Tabline StatusLine | ||
25 | highlight! link VertSplit LineNr | ||
26 | highlight! link SignColumn LineNr | ||
27 | highlight! link FoldColumn LineNr | ||
28 | highlight! link Folded LineNr | ||
29 | highlight! link EndOfBuffer LineNr | ||
30 | endfunction | ||
31 | autocmd ColorScheme * call ExtendColorTheme() | ||
4 | 32 | ||
5 | if &term == "linux" | 33 | if &term == "linux" |
6 | set notermguicolors | 34 | set notermguicolors |
@@ -8,64 +36,19 @@ else | |||
8 | set termguicolors | 36 | set termguicolors |
9 | endif | 37 | endif |
10 | 38 | ||
11 | 39 | if filereadable(expand('~/.vimrc_background')) && filereadable(expand('~/.config/base16-shell/colortest')) | |
12 | function! ExtendColorTheme() | 40 | let g:base16_shell_path = '~/.config/base16-shell/scripts' |
13 | highlight! Bold cterm=bold gui=bold | ||
14 | highlight! Italic cterm=italic gui=italic | ||
15 | highlight! Underline cterm=underline gui=underline | ||
16 | highlight! BoldUnderline cterm=bold,underline gui=bold,underline | ||
17 | highlight! BoldItalic cterm=bold,Italic gui=bold,italic | ||
18 | highlight! Todo cterm=bold gui=bold guibg=#ffffaa guifg=#000000 | ||
19 | highlight! Error ctermbg=NONE cterm=NONE gui=NONE guibg=NONE | ||
20 | highlight! SpellBad cterm=NONE gui=undercurl guibg=NONE guifg=red | ||
21 | highlight! Ignore ctermbg=NONE ctermfg=NONE cterm=NONE gui=NONE guibg=NONE guifg=NONE | ||
22 | highlight! LineNr cterm=italic gui=italic | ||
23 | |||
24 | if has("gui_running") | ||
25 | highlight invisible gui=NONE guifg=background guibg=background | ||
26 | else | ||
27 | let w:color=synIDtrans(synIDattr(hlID("Normal"), "bg")) | ||
28 | silent! exec 'highlight invisible cterm=NONE ctermfg='.w:color.' ctermbg='.w:color | ||
29 | let w:color="NONE" | ||
30 | silent! exec 'highlight invisible cterm=NONE ctermbg='.w:color | ||
31 | endif | ||
32 | |||
33 | highlight! link EndOfBuffer Invisible | ||
34 | |||
35 | highlight! link qfSeparator Normal | " reserve one space | ||
36 | highlight! link qfLineNr Normal | " informational line numbers should look different | ||
37 | |||
38 | highlight! link SpecialKey NonText | " makes tab stop (see listchars) less disturbing | ||
39 | highlight! link WildMenu Search | ||
40 | highlight! link Convention Error | ||
41 | |||
42 | highlight! link VertSplit LineNr | ||
43 | highlight! link SignColumn LineNr | ||
44 | highlight! link FoldColumn LineNr | ||
45 | highlight! link Folded LineNr | ||
46 | |||
47 | highlight! link PmenuSbar Pmenu | ||
48 | highlight! PmenuThumb cterm=inverse | ||
49 | highlight! MoreMsg cterm=inverse | ||
50 | |||
51 | highlight! link Tabline StatusLine | ||
52 | |||
53 | endfunction | ||
54 | autocmd ColorScheme * call ExtendColorTheme() | ||
55 | |||
56 | |||
57 | " set background=light | ||
58 | if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest")) | ||
59 | let g:base16_shell_path = "~/.config/base16-shell/scripts" | ||
60 | let base16colorspace = 256 | 41 | let base16colorspace = 256 |
61 | source ~/.vimrc_background | 42 | source ~/.vimrc_background |
62 | else | 43 | else |
63 | let g:PaperColor_Theme_Options = { | 44 | let g:PaperColor_Theme_Options = { |
64 | \ 'theme': { | 45 | \ 'theme': { |
65 | \ 'default': { | 46 | \ 'default.dark': { |
66 | \ 'transparent_background': 1 | 47 | \ 'transparent_background': 1 |
67 | \ } | 48 | \ } |
68 | \ } | 49 | \ } |
69 | \ } | 50 | \ } |
70 | colorscheme PaperColor | 51 | colorscheme PaperColor |
71 | endif | 52 | endif |
53 | |||
54 | |||