"======================================================================================================================= " COLOR SCHEME: "======================================================================================================================= if &term == "linux" set notermguicolors else set termguicolors endif function! ExtendColorTheme() highlight! Bold cterm=bold gui=bold highlight! Italic cterm=italic gui=italic highlight! Underline cterm=underline gui=underline highlight! BoldUnderline cterm=bold,underline gui=bold,underline highlight! BoldItalic cterm=bold,Italic gui=bold,italic highlight! Todo cterm=bold gui=bold guibg=#ffffaa guifg=#000000 highlight! Error ctermbg=NONE cterm=NONE gui=NONE guibg=NONE highlight! SpellBad cterm=NONE gui=undercurl guibg=NONE guifg=red highlight! Ignore ctermbg=NONE ctermfg=NONE cterm=NONE gui=NONE guibg=NONE guifg=NONE if has("gui_running") highlight invisible gui=NONE guifg=background guibg=background else let w:color=synIDtrans(synIDattr(hlID("Normal"), "bg")) silent! exec 'highlight invisible cterm=NONE ctermfg='.w:color.' ctermbg='.w:color let w:color="NONE" silent! exec 'highlight invisible cterm=NONE ctermbg='.w:color endif highlight! link EndOfBuffer Invisible highlight! link qfSeparator Normal | " reserve one space highlight! link qfLineNr Normal | " informational line numbers should look different highlight! link SpecialKey NonText | " makes tab stop (see listchars) less disturbing highlight! link WildMenu Search highlight! link Convention Error highlight! link VertSplit LineNr highlight! link SignColumn LineNr highlight! link FoldColumn LineNr highlight! link Folded LineNr highlight! link PmenuSbar Pmenu highlight! PmenuThumb cterm=inverse highlight! MoreMsg cterm=inverse highlight! link Tabline StatusLine endfunction autocmd ColorScheme * call ExtendColorTheme() " set background=light if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest")) let g:base16_shell_path = "~/.config/base16-shell/scripts" let base16colorspace = 256 source ~/.vimrc_background else let g:PaperColor_Theme_Options = { \ 'theme': { \ 'default': { \ 'transparent_background': 0 \ } \ } \ } colorscheme PaperColor endif