From e3d9612e5738b1b2e39fa4641365216f06283b7b Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 20 Oct 2025 23:45:29 +0200 Subject: [PATCH] Remove vim yin/yang colorschemes --- .vim/colors/yang.vim | 210 ------------------------------------------ .vim/colors/yin.vim | 212 ------------------------------------------- 2 files changed, 422 deletions(-) delete mode 100644 .vim/colors/yang.vim delete mode 100644 .vim/colors/yin.vim diff --git a/.vim/colors/yang.vim b/.vim/colors/yang.vim deleted file mode 100644 index c56dbd1..0000000 --- a/.vim/colors/yang.vim +++ /dev/null @@ -1,210 +0,0 @@ -" YinYang - black/white color scheme - -if (&background ==# "dark" && get(g:, "colors_name", "") ==# "yang") - runtime! colors/yin.vim - finish -endif - -highlight clear - -if exists("syntax_on") - syntax reset -endif -let g:colors_name = "yang" - - -let s:palette = {} - -let s:palette.white = [254, '#f7f7f7'] -let s:palette.gray15 = [253, '#e4e4e4'] -let s:palette.gray14 = [250, '#bcbcbc'] -let s:palette.gray13 = [249, '#b2b2b2'] -let s:palette.gray12 = [248, '#a8a8a8'] -let s:palette.gray11 = [247, '#9e9e9e'] -let s:palette.gray10 = [246, '#949494'] -let s:palette.gray09 = [245, '#8a8a8a'] -let s:palette.gray08 = [244, '#808080'] -let s:palette.gray07 = [243, '#767676'] -let s:palette.gray06 = [242, '#666666'] -let s:palette.gray05 = [241, '#606060'] -let s:palette.gray04 = [240, '#585858'] -let s:palette.gray03 = [239, '#4e4e4e'] -let s:palette.gray02 = [238, '#444444'] -let s:palette.gray01 = [235, '#262626'] -let s:palette.black = [233, '#121212'] - -let s:palette.purple = [98, '#875fd7'] -let s:palette.brown = [130, '#af5f00'] -let s:palette.blue = [67, '#5f87af'] -let s:palette.darkblue = [27, '#005fff'] -let s:palette.green = [65, '#5f875f'] -let s:palette.red = [88, '#870000'] -let s:palette.orange = [166, '#5f5fd7'] - -if has("nvim") - let g:terminal_color_0 = s:palette.gray01[1] - let g:terminal_color_1 = s:palette.gray06[1] - let g:terminal_color_2 = s:palette.gray03[1] - let g:terminal_color_3 = s:palette.gray11[1] - let g:terminal_color_4 = s:palette.gray02[1] - let g:terminal_color_5 = s:palette.gray08[1] - let g:terminal_color_6 = s:palette.gray09[1] - let g:terminal_color_7 = s:palette.gray13[1] - let g:terminal_color_8 = s:palette.gray03[1] - let g:terminal_color_9 = s:palette.gray10[1] - let g:terminal_color_10 = s:palette.gray07[1] - let g:terminal_color_11 = s:palette.gray13[1] - let g:terminal_color_12 = s:palette.gray05[1] - let g:terminal_color_13 = s:palette.gray12[1] - let g:terminal_color_14 = s:palette.gray14[1] - let g:terminal_color_15 = s:palette.white[1] -elseif has("terminal") - let g:terminal_ansi_colors = [ - \ s:palette.gray01[1], - \ s:palette.gray06[1], - \ s:palette.gray03[1], - \ s:palette.gray11[1], - \ s:palette.gray02[1], - \ s:palette.gray08[1], - \ s:palette.gray09[1], - \ s:palette.gray13[1], - \ s:palette.gray03[1], - \ s:palette.gray10[1], - \ s:palette.gray07[1], - \ s:palette.gray13[1], - \ s:palette.gray05[1], - \ s:palette.gray12[1], - \ s:palette.gray14[1], - \ s:palette.white[1] - \ ] -endif - -function! s:hi(group, fg_color, bg_color, style) - let highlight_command = ['hi', a:group] - if !empty(a:fg_color) - let [ctermfg, guifg] = a:fg_color - call add(highlight_command, printf('ctermfg=%d guifg=%s', ctermfg, guifg)) - endif - if !empty(a:bg_color) - let [ctermbg, guibg] = a:bg_color - call add(highlight_command, printf('ctermbg=%d guibg=%s', ctermbg, guibg)) - endif - if !empty(a:style) - call add(highlight_command, printf('cterm=%s gui=%s', a:style, a:style)) - endif - execute join(highlight_command, ' ') -endfunction - - -call s:hi('Normal', s:palette.gray05, s:palette.white, '') -set background=light - -call s:hi('Constant', s:palette.gray11, [], 'bold') -call s:hi('String', s:palette.gray08, [], '') -call s:hi('Number', s:palette.gray10, [], '') - -call s:hi('Identifier', s:palette.gray06, [], 'none') -call s:hi('Function', s:palette.gray06, [], '') - -call s:hi('Statement', s:palette.gray08, [], 'bold') -call s:hi('Operator', s:palette.gray03, [], 'none') -call s:hi('Keyword', s:palette.gray10, [], '') - -call s:hi('PreProc', s:palette.gray10, [], 'none') - -call s:hi('Type', s:palette.gray09, [], 'bold') - -call s:hi('Special', s:palette.gray10, [], '') -call s:hi('SpecialComment', s:palette.gray12, [], 'bold') - -call s:hi('Title', s:palette.gray10, [], 'bold') -call s:hi('Todo', s:palette.purple, s:palette.white, '') -if has("nvim") || has("gui_running") - call s:hi('Comment', s:palette.gray12, [], 'italic') -else - call s:hi('Comment', s:palette.gray12, [], '') -endif - -call s:hi('LineNr', s:palette.gray13, s:palette.gray15, 'none') -call s:hi('FoldColumn', s:palette.gray08, s:palette.gray15, 'none') -call s:hi('CursorLine', [], s:palette.gray15, 'none') -call s:hi('CursorLineNr', s:palette.gray06, s:palette.gray15, 'none') - -call s:hi('Visual', s:palette.white, s:palette.gray06, '') -call s:hi('Search', s:palette.gray15, s:palette.gray03, 'none') -call s:hi('IncSearch', s:palette.white, s:palette.gray11, 'bold') - -call s:hi('SpellBad', s:palette.red, s:palette.white, 'undercurl') -call s:hi('SpellCap', s:palette.red, s:palette.white, 'undercurl') -call s:hi('SpellLocal', s:palette.red, s:palette.white, 'undercurl') -call s:hi('SpellRare', s:palette.brown, s:palette.white, 'undercurl') - -call s:hi('Error', s:palette.red, s:palette.white, 'bold') -call s:hi('ErrorMsg', s:palette.red, s:palette.white, '') -call s:hi('WarningMsg', s:palette.brown, s:palette.white, '') -call s:hi('ModeMsg', s:palette.gray10, [], '') -call s:hi('MoreMsg', s:palette.gray10, [], '') - -call s:hi('MatchParen', s:palette.orange, s:palette.white, '') - -call s:hi('Cursor', [], s:palette.gray12, '') -call s:hi('Underlined', s:palette.gray08, [], 'underline') -call s:hi('SpecialKey', s:palette.gray13, [], '') -call s:hi('NonText', s:palette.gray13, [], '') -call s:hi('Directory', s:palette.gray08, [], '') - -call s:hi('Pmenu', s:palette.gray05, s:palette.gray14, 'none') -call s:hi('PmenuSbar', s:palette.white, s:palette.gray01, 'none') -call s:hi('PmenuSel', s:palette.gray14, s:palette.gray05, '') -call s:hi('PmenuThumb', s:palette.gray14, s:palette.gray03, 'none') - -call s:hi('StatusLine', s:palette.gray03, s:palette.gray13, 'none') -call s:hi('StatusLineNC', s:palette.gray13, s:palette.gray15, 'none') -call s:hi('WildMenu', s:palette.gray08, [], '') -call s:hi('VertSplit', s:palette.gray13, s:palette.white, 'none') - -call s:hi('DiffAdd', s:palette.white, s:palette.green, '') -call s:hi('DiffChange', s:palette.white, s:palette.blue, '') -call s:hi('DiffDelete', s:palette.white, s:palette.red, '') -call s:hi('DiffText', s:palette.white, s:palette.darkblue, '') -call s:hi('DiffAdded', s:palette.green, s:palette.white, '') -call s:hi('DiffChanged', s:palette.blue, s:palette.white, '') -call s:hi('DiffRemoved', s:palette.red, s:palette.white, '') - - -highlight! link Character Constant -highlight! link Float Number -highlight! link Boolean Number - -highlight! link SignColumn FoldColumn -highlight! link ColorColumn FoldColumn -highlight! link CursorColumn CursorLine - -highlight! link Folded LineNr -highlight! link Conceal Normal -highlight! link ErrorMsg Error - -highlight! link Conditional Statement -highlight! link Repeat Statement -highlight! link Label Statement -highlight! link Exception Statement - -highlight! link Include PreProc -highlight! link Define PreProc -highlight! link Macro PreProc -highlight! link PreCondit PreProc - -highlight! link StorageClass Type -highlight! link Structure Type -highlight! link Typedef Type - -highlight! link SpecialChar Special -highlight! link Tag Special -highlight! link Delimiter Special -highlight! link Debug Special -highlight! link Question Special - -highlight! link VisualNOS Visual -highlight! link TabLine StatusLineNC -highlight! link TabLineFill StatusLineNC -highlight! link TabLineSel StatusLine diff --git a/.vim/colors/yin.vim b/.vim/colors/yin.vim deleted file mode 100644 index 9eced57..0000000 --- a/.vim/colors/yin.vim +++ /dev/null @@ -1,212 +0,0 @@ -" YinYang - black/white color scheme - -if (&background ==# "light" && get(g:, "colors_name", "") ==# "yin") - runtime! colors/yang.vim - finish -endif - -highlight clear - -if exists("syntax_on") - syntax reset -endif -let g:colors_name = "yin" - - -let s:palette = {} - -let s:palette.blackest = [0, '#0c0c0c'] -let s:palette.black = [233, '#111111'] -let s:palette.gray01 = [235, '#1e1e1e'] -let s:palette.gray02 = [238, '#444444'] -let s:palette.gray03 = [239, '#4e4e4e'] -let s:palette.gray04 = [240, '#585858'] -let s:palette.gray05 = [242, '#666666'] -let s:palette.gray06 = [243, '#767676'] -let s:palette.gray07 = [244, '#808080'] -let s:palette.gray08 = [245, '#8a8a8a'] -let s:palette.gray09 = [246, '#949494'] -let s:palette.gray10 = [247, '#9e9e9e'] -let s:palette.gray11 = [248, '#a8a8a8'] -let s:palette.gray12 = [249, '#b2b2b2'] -let s:palette.gray13 = [250, '#bcbcbc'] -let s:palette.gray14 = [251, '#c6c6c6'] -let s:palette.gray15 = [254, '#e4e4e4'] -let s:palette.white = [255, '#eeeeee'] - -let s:palette.comments = copy(s:palette.gray03) - -let s:palette.purple = [62, '#5f5fd7'] -let s:palette.brown = [94, '#875f00'] -let s:palette.blue = [24, '#005f87'] -let s:palette.lightblue = [31, '#00afff'] -let s:palette.green = [29, '#00875f'] -let s:palette.red = [88, '#870000'] -let s:palette.orange = [166, '#5f5fd7'] - -if has("nvim") - let g:terminal_color_0 = s:palette.gray01[1] - let g:terminal_color_1 = s:palette.gray06[1] - let g:terminal_color_2 = s:palette.gray03[1] - let g:terminal_color_3 = s:palette.gray11[1] - let g:terminal_color_4 = s:palette.gray02[1] - let g:terminal_color_5 = s:palette.gray08[1] - let g:terminal_color_6 = s:palette.gray09[1] - let g:terminal_color_7 = s:palette.gray13[1] - let g:terminal_color_8 = s:palette.gray03[1] - let g:terminal_color_9 = s:palette.gray10[1] - let g:terminal_color_10 = s:palette.gray07[1] - let g:terminal_color_11 = s:palette.gray15[1] - let g:terminal_color_12 = s:palette.gray05[1] - let g:terminal_color_13 = s:palette.gray12[1] - let g:terminal_color_14 = s:palette.gray14[1] - let g:terminal_color_15 = s:palette.white[1] -elseif has("terminal") - let g:terminal_ansi_colors = [ - \ s:palette.gray01[1], - \ s:palette.gray06[1], - \ s:palette.gray03[1], - \ s:palette.gray11[1], - \ s:palette.gray02[1], - \ s:palette.gray08[1], - \ s:palette.gray09[1], - \ s:palette.gray13[1], - \ s:palette.gray03[1], - \ s:palette.gray10[1], - \ s:palette.gray07[1], - \ s:palette.gray15[1], - \ s:palette.gray05[1], - \ s:palette.gray12[1], - \ s:palette.gray14[1], - \ s:palette.white[1] - \ ] -endif - -function! s:hi(group, fg_color, bg_color, style) - let highlight_command = ['hi', a:group] - if !empty(a:fg_color) - let [ctermfg, guifg] = a:fg_color - call add(highlight_command, printf('ctermfg=%d guifg=%s', ctermfg, guifg)) - endif - if !empty(a:bg_color) - let [ctermbg, guibg] = a:bg_color - call add(highlight_command, printf('ctermbg=%d guibg=%s', ctermbg, guibg)) - endif - if !empty(a:style) - call add(highlight_command, printf('cterm=%s gui=%s', a:style, a:style)) - endif - execute join(highlight_command, ' ') -endfunction - - -call s:hi('Normal', s:palette.gray11, s:palette.black, '') -set background=dark - -call s:hi('Constant', s:palette.gray05, [], 'bold') -call s:hi('String', s:palette.gray10, [], '') -call s:hi('Number', s:palette.gray06, [], '') - -call s:hi('Identifier', s:palette.gray08, [], 'none') -call s:hi('Function', s:palette.gray08, [], '') - -call s:hi('Statement', s:palette.gray05, [], 'bold') -call s:hi('Operator', s:palette.gray05, [], 'none') -call s:hi('Keyword', s:palette.gray05, [], '') - -call s:hi('PreProc', s:palette.gray07, [], 'none') - -call s:hi('Type', s:palette.gray05, [], 'bold') - -call s:hi('Special', s:palette.gray05, [], '') -call s:hi('SpecialComment', s:palette.comments, [], 'bold') - -call s:hi('Title', s:palette.gray07, [], 'bold') -call s:hi('Todo', s:palette.purple, s:palette.black, '') -if has("nvim") || has("gui_running") - call s:hi('Comment', s:palette.comments, [], 'italic') -else - call s:hi('Comment', s:palette.comments, [], '') -endif - -call s:hi('LineNr', s:palette.gray02, s:palette.black, 'none') -call s:hi('FoldColumn', s:palette.gray07, s:palette.gray01, 'none') -call s:hi('CursorLine', [], s:palette.gray01, 'none') -call s:hi('CursorLineNr', s:palette.gray14, s:palette.gray01, 'none') - -call s:hi('Visual', s:palette.black, s:palette.gray06, '') -call s:hi('Search', s:palette.gray01, s:palette.gray11, 'none') -call s:hi('IncSearch', s:palette.black, s:palette.gray07, 'bold') - -call s:hi('SpellBad', s:palette.red, s:palette.black, 'undercurl') -call s:hi('SpellCap', s:palette.red, s:palette.black, 'undercurl') -call s:hi('SpellLocal', s:palette.red, s:palette.black, 'undercurl') -call s:hi('SpellRare', s:palette.brown, s:palette.black, 'undercurl') - -call s:hi('Error', s:palette.red, s:palette.black, 'bold') -call s:hi('ErrorMsg', s:palette.red, s:palette.black, '') -call s:hi('WarningMsg', s:palette.brown, s:palette.black, '') -call s:hi('ModeMsg', s:palette.gray10, [], '') -call s:hi('MoreMsg', s:palette.gray10, [], '') - -call s:hi('MatchParen', s:palette.orange, s:palette.black, '') - -call s:hi('Cursor', [], s:palette.gray12, '') -call s:hi('Underlined', s:palette.gray08, [], 'underline') -call s:hi('SpecialKey', s:palette.gray04, [], '') -call s:hi('NonText', s:palette.gray04, [], '') -call s:hi('Directory', s:palette.gray08, [], '') - -call s:hi('Pmenu', s:palette.gray10, s:palette.gray03, 'none') -call s:hi('PmenuSbar', s:palette.black, s:palette.gray15, 'none') -call s:hi('PmenuSel', s:palette.gray03, s:palette.gray10, '') -call s:hi('PmenuThumb', s:palette.gray03, s:palette.gray09, 'none') - -call s:hi('StatusLine', s:palette.gray12, s:palette.gray01, 'none') -call s:hi('StatusLineNC', s:palette.black, s:palette.black, 'none') -call s:hi('WildMenu', s:palette.gray08, [], '') -call s:hi('VertSplit', s:palette.gray03, s:palette.black, 'none') - -call s:hi('DiffAdd', s:palette.blackest, s:palette.green, '') -call s:hi('DiffChange', s:palette.blackest, s:palette.blue, '') -call s:hi('DiffDelete', s:palette.blackest, s:palette.red, '') -call s:hi('DiffText', s:palette.black, s:palette.lightblue, '') -call s:hi('DiffAdded', s:palette.green, s:palette.black, '') -call s:hi('DiffChanged', s:palette.blue, s:palette.black, '') -call s:hi('DiffRemoved', s:palette.red, s:palette.black, '') - -highlight! link Character Constant -highlight! link Float Number -highlight! link Boolean Number - -highlight! link SignColumn FoldColumn -highlight! link ColorColumn FoldColumn -highlight! link CursorColumn CursorLine - -highlight! link Folded LineNr -highlight! link Conceal Normal -highlight! link ErrorMsg Error - -highlight! link Conditional Statement -highlight! link Repeat Statement -highlight! link Label Statement -highlight! link Exception Statement - -highlight! link Include PreProc -highlight! link Define PreProc -highlight! link Macro PreProc -highlight! link PreCondit PreProc - -highlight! link StorageClass Type -highlight! link Structure Type -highlight! link Typedef Type - -highlight! link SpecialChar Special -highlight! link Tag Special -highlight! link Delimiter Special -highlight! link Debug Special -highlight! link Question Special - -highlight! link VisualNOS Visual -highlight! link TabLine StatusLineNC -highlight! link TabLineFill StatusLineNC -highlight! link TabLineSel StatusLine