diff --git a/.vim/colors/256_noir.vim b/.vim/colors/256_noir.vim new file mode 100644 index 0000000..ff61725 --- /dev/null +++ b/.vim/colors/256_noir.vim @@ -0,0 +1,130 @@ +" Vim color file +" Name: 256_noir.vim +" Maintainer: Andreas van Cranenburgh +" Homepage: https://github.com/andreasvc/vim-256noir/ + +" Basically: dark background, numerals & errors red, +" rest different shades of gray. +" +" colors 232--250 are shades of gray, from dark to light; +" 16=black, 255=white, 196=red, 88=darkred. + +highlight clear +set background=dark +if version > 580 + " no guarantees for version 5.8 and below, but this makes it stop + " complaining + if exists("syntax_on") + syntax reset + endif +endif +let g:colors_name = "256_noir" + +if has("gui_running") || &t_Co == 256 + hi Normal cterm=NONE ctermfg=250 ctermbg=16 gui=NONE guifg=#bcbcbc guibg=#000000 + hi Keyword cterm=NONE ctermfg=255 ctermbg=16 gui=NONE guifg=#eeeeee guibg=#000000 + hi Constant cterm=NONE ctermfg=252 ctermbg=16 gui=NONE guifg=#d0d0d0 guibg=#000000 + hi String cterm=NONE ctermfg=245 ctermbg=16 gui=NONE guifg=#8a8a8a guibg=#000000 + hi Comment cterm=NONE ctermfg=240 ctermbg=16 gui=NONE guifg=#585858 guibg=#000000 + hi Number cterm=NONE ctermfg=196 ctermbg=16 gui=NONE guifg=#ff0000 guibg=#000000 + hi Error cterm=NONE ctermfg=255 ctermbg=88 gui=NONE guifg=#eeeeee guibg=#870000 + hi ErrorMsg cterm=NONE ctermfg=255 ctermbg=124 gui=NONE guifg=#eeeeee guibg=#af0000 + hi Search cterm=NONE ctermfg=245 ctermbg=236 gui=NONE guifg=#8a8a8a guibg=#303030 + hi IncSearch cterm=reverse ctermfg=255 ctermbg=245 gui=reverse guifg=#eeeeee guibg=#8a8a8a + hi DiffChange cterm=NONE ctermfg=160 ctermbg=255 gui=NONE guifg=#d70000 guibg=#eeeeee + hi DiffText cterm=bold ctermfg=250 ctermbg=196 gui=bold guifg=#bcbcbc guibg=#ff0000 + hi SignColumn cterm=NONE ctermfg=124 ctermbg=240 gui=NONE guifg=#af0000 guibg=#585858 + hi SpellBad cterm=undercurl ctermfg=255 ctermbg=88 gui=undercurl guifg=#eeeeee guibg=#870000 + hi SpellCap cterm=NONE ctermfg=255 ctermbg=124 gui=NONE guifg=#eeeeee guibg=#af0000 + hi SpellRare cterm=NONE ctermfg=124 ctermbg=16 gui=NONE guifg=#af0000 guibg=#000000 + hi WildMenu cterm=NONE ctermfg=240 ctermbg=255 gui=NONE guifg=#585858 guibg=#eeeeee + hi Pmenu cterm=NONE ctermfg=255 ctermbg=240 gui=NONE guifg=#eeeeee guibg=#585858 + hi PmenuThumb cterm=NONE ctermfg=232 ctermbg=240 gui=NONE guifg=#080808 guibg=#585858 + hi SpecialKey cterm=NONE ctermfg=16 ctermbg=255 gui=NONE guifg=#000000 guibg=#eeeeee + hi MatchParen cterm=NONE ctermfg=16 ctermbg=240 gui=NONE guifg=#000000 guibg=#585858 + hi CursorLine cterm=NONE ctermfg=NONE ctermbg=233 gui=NONE guifg=NONE guibg=#121212 + hi StatusLine cterm=bold,reverse ctermfg=245 ctermbg=16 gui=bold,reverse guifg=#8a8a8a guibg=#000000 + hi StatusLineNC cterm=reverse ctermfg=236 ctermbg=16 gui=reverse guifg=#303030 guibg=#000000 + hi Visual cterm=reverse ctermfg=250 ctermbg=16 gui=reverse guifg=#bcbcbc guibg=#000000 + hi TermCursor cterm=reverse ctermfg=NONE ctermbg=NONE gui=reverse guifg=NONE guibg=NONE +else + hi Normal cterm=NONE ctermfg=Gray ctermbg=Black + hi Keyword cterm=NONE ctermfg=White ctermbg=Black + hi Constant cterm=NONE ctermfg=Gray ctermbg=Black + hi String cterm=NONE ctermfg=Gray ctermbg=Black + hi Comment cterm=NONE ctermfg=DarkGray ctermbg=Black + hi Number cterm=NONE ctermfg=Red ctermbg=Black + hi Error cterm=NONE ctermfg=White ctermbg=DarkRed + hi ErrorMsg cterm=NONE ctermfg=White ctermbg=Red + hi Search cterm=NONE ctermfg=Gray ctermbg=DarkGray + hi IncSearch cterm=reverse ctermfg=White ctermbg=Gray + hi DiffChange cterm=NONE ctermfg=Red ctermbg=White + hi DiffText cterm=bold ctermfg=Gray ctermbg=Red + hi SignColumn cterm=NONE ctermfg=Red ctermbg=DarkGray + hi SpellBad cterm=undercurl ctermfg=White ctermbg=DarkRed + hi SpellCap cterm=NONE ctermfg=White ctermbg=Red + hi SpellRare cterm=NONE ctermfg=Red ctermbg=Black + hi WildMenu cterm=NONE ctermfg=DarkGray ctermbg=White + hi Pmenu cterm=NONE ctermfg=White ctermbg=DarkGray + hi PmenuThumb cterm=NONE ctermfg=Black ctermbg=DarkGray + hi SpecialKey cterm=NONE ctermfg=Black ctermbg=White + hi MatchParen cterm=NONE ctermfg=Black ctermbg=DarkGray + hi CursorLine cterm=NONE ctermfg=NONE ctermbg=Black + hi StatusLine cterm=bold,reverse ctermfg=Gray ctermbg=Black + hi StatusLineNC cterm=reverse ctermfg=DarkGray ctermbg=Black + hi Visual cterm=reverse ctermfg=Gray ctermbg=Black + hi TermCursor cterm=reverse ctermfg=NONE ctermbg=NONE +endif +highlight! link Boolean Normal +highlight! link Delimiter Normal +highlight! link Identifier Normal +highlight! link Title Normal +highlight! link Debug Normal +highlight! link Exception Normal +highlight! link FoldColumn Normal +highlight! link Macro Normal +highlight! link ModeMsg Normal +highlight! link MoreMsg Normal +highlight! link Question Normal +highlight! link Conditional Keyword +highlight! link Statement Keyword +highlight! link Operator Keyword +highlight! link Structure Keyword +highlight! link Function Keyword +highlight! link Include Keyword +highlight! link Type Keyword +highlight! link Typedef Keyword +highlight! link Todo Keyword +highlight! link Label Keyword +highlight! link Define Keyword +highlight! link DiffAdd Keyword +highlight! link diffAdded Keyword +highlight! link diffCommon Keyword +highlight! link Directory Keyword +highlight! link PreCondit Keyword +highlight! link PreProc Keyword +highlight! link Repeat Keyword +highlight! link Special Keyword +highlight! link SpecialChar Keyword +highlight! link StorageClass Keyword +highlight! link SpecialComment String +highlight! link CursorLineNr String +highlight! link Character Number +highlight! link Float Number +highlight! link Tag Number +highlight! link Folded Number +highlight! link WarningMsg Number +highlight! link iCursor SpecialKey +highlight! link SpellLocal SpellCap +highlight! link LineNr Comment +highlight! link NonText Comment +highlight! link DiffDelete Comment +highlight! link diffRemoved Comment +highlight! link PmenuSbar Visual +highlight! link PmenuSel Visual +highlight! link VisualNOS Visual +highlight! link VertSplit Visual +highlight! link Cursor StatusLine +highlight! link Underlined SpellRare +highlight! link rstEmphasis SpellRare +highlight! link diffChanged DiffChange diff --git a/.vim/colors/base16-grayscale-dark.vim b/.vim/colors/base16-grayscale-dark.vim new file mode 100644 index 0000000..d8ae003 --- /dev/null +++ b/.vim/colors/base16-grayscale-dark.vim @@ -0,0 +1,413 @@ +" vi:syntax=vim + +" base16-vim (https://github.com/chriskempson/base16-vim) +" by Chris Kempson (http://chriskempson.com) +" Grayscale Dark scheme by Alexandre Gavioli (https://github.com/Alexx2/) + +" This enables the coresponding base16-shell script to run so that +" :colorscheme works in terminals supported by base16-shell scripts +" User must set this variable in .vimrc +" let g:base16_shell_path=base16-builder/output/shell/ +if !has("gui_running") + if exists("g:base16_shell_path") + execute "silent !/bin/sh ".g:base16_shell_path."/base16-grayscale-dark.sh" + endif +endif + +" GUI color definitions +let s:gui00 = "101010" +let g:base16_gui00 = "101010" +let s:gui01 = "252525" +let g:base16_gui01 = "252525" +let s:gui02 = "464646" +let g:base16_gui02 = "464646" +let s:gui03 = "525252" +let g:base16_gui03 = "525252" +let s:gui04 = "ababab" +let g:base16_gui04 = "ababab" +let s:gui05 = "b9b9b9" +let g:base16_gui05 = "b9b9b9" +let s:gui06 = "e3e3e3" +let g:base16_gui06 = "e3e3e3" +let s:gui07 = "f7f7f7" +let g:base16_gui07 = "f7f7f7" +let s:gui08 = "7c7c7c" +let g:base16_gui08 = "7c7c7c" +let s:gui09 = "999999" +let g:base16_gui09 = "999999" +let s:gui0A = "a0a0a0" +let g:base16_gui0A = "a0a0a0" +let s:gui0B = "8e8e8e" +let g:base16_gui0B = "8e8e8e" +let s:gui0C = "868686" +let g:base16_gui0C = "868686" +let s:gui0D = "686868" +let g:base16_gui0D = "686868" +let s:gui0E = "747474" +let g:base16_gui0E = "747474" +let s:gui0F = "5e5e5e" +let g:base16_gui0F = "5e5e5e" + +" Terminal color definitions +let s:cterm00 = "00" +let g:base16_cterm00 = "00" +let s:cterm03 = "08" +let g:base16_cterm03 = "08" +let s:cterm05 = "07" +let g:base16_cterm05 = "07" +let s:cterm07 = "15" +let g:base16_cterm07 = "15" +let s:cterm08 = "01" +let g:base16_cterm08 = "01" +let s:cterm0A = "03" +let g:base16_cterm0A = "03" +let s:cterm0B = "02" +let g:base16_cterm0B = "02" +let s:cterm0C = "06" +let g:base16_cterm0C = "06" +let s:cterm0D = "04" +let g:base16_cterm0D = "04" +let s:cterm0E = "05" +let g:base16_cterm0E = "05" +if exists("base16colorspace") && base16colorspace == "256" + let s:cterm01 = "18" + let g:base16_cterm01 = "18" + let s:cterm02 = "19" + let g:base16_cterm02 = "19" + let s:cterm04 = "20" + let g:base16_cterm04 = "20" + let s:cterm06 = "21" + let g:base16_cterm06 = "21" + let s:cterm09 = "16" + let g:base16_cterm09 = "16" + let s:cterm0F = "17" + let g:base16_cterm0F = "17" +else + let s:cterm01 = "10" + let g:base16_cterm01 = "10" + let s:cterm02 = "11" + let g:base16_cterm02 = "11" + let s:cterm04 = "12" + let g:base16_cterm04 = "12" + let s:cterm06 = "13" + let g:base16_cterm06 = "13" + let s:cterm09 = "09" + let g:base16_cterm09 = "09" + let s:cterm0F = "14" + let g:base16_cterm0F = "14" +endif + +" Neovim terminal colours +if has("nvim") + let g:terminal_color_0 = "#101010" + let g:terminal_color_1 = "#7c7c7c" + let g:terminal_color_2 = "#8e8e8e" + let g:terminal_color_3 = "#a0a0a0" + let g:terminal_color_4 = "#686868" + let g:terminal_color_5 = "#747474" + let g:terminal_color_6 = "#868686" + let g:terminal_color_7 = "#b9b9b9" + let g:terminal_color_8 = "#525252" + let g:terminal_color_9 = "#7c7c7c" + let g:terminal_color_10 = "#8e8e8e" + let g:terminal_color_11 = "#a0a0a0" + let g:terminal_color_12 = "#686868" + let g:terminal_color_13 = "#747474" + let g:terminal_color_14 = "#868686" + let g:terminal_color_15 = "#f7f7f7" + let g:terminal_color_background = g:terminal_color_0 + let g:terminal_color_foreground = g:terminal_color_5 + if &background == "light" + let g:terminal_color_background = g:terminal_color_7 + let g:terminal_color_foreground = g:terminal_color_2 + endif +elseif has("terminal") + let g:terminal_ansi_colors = [ + \ "#101010", + \ "#7c7c7c", + \ "#8e8e8e", + \ "#a0a0a0", + \ "#686868", + \ "#747474", + \ "#868686", + \ "#b9b9b9", + \ "#525252", + \ "#7c7c7c", + \ "#8e8e8e", + \ "#a0a0a0", + \ "#686868", + \ "#747474", + \ "#868686", + \ "#f7f7f7", + \ ] +endif + +" Theme setup +hi clear +syntax reset +let g:colors_name = "base16-grayscale-dark" + +" Highlighting function +" Optional variables are attributes and guisp +function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, ...) + let l:attr = get(a:, 1, "") + let l:guisp = get(a:, 2, "") + + if a:guifg != "" + exec "hi " . a:group . " guifg=#" . a:guifg + endif + if a:guibg != "" + exec "hi " . a:group . " guibg=#" . a:guibg + endif + if a:ctermfg != "" + exec "hi " . a:group . " ctermfg=" . a:ctermfg + endif + if a:ctermbg != "" + exec "hi " . a:group . " ctermbg=" . a:ctermbg + endif + if l:attr != "" + exec "hi " . a:group . " gui=" . l:attr . " cterm=" . l:attr + endif + if l:guisp != "" + exec "hi " . a:group . " guisp=#" . l:guisp + endif +endfunction + + +fun hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) + call g:Base16hi(a:group, a:guifg, a:guibg, a:ctermfg, a:ctermbg, a:attr, a:guisp) +endfun + +" Vim editor colors +call hi("Normal", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") +call hi("Bold", "", "", "", "", "bold", "") +call hi("Debug", s:gui08, "", s:cterm08, "", "", "") +call hi("Directory", s:gui0D, "", s:cterm0D, "", "", "") +call hi("Error", s:gui00, s:gui08, s:cterm00, s:cterm08, "", "") +call hi("ErrorMsg", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") +call hi("Exception", s:gui08, "", s:cterm08, "", "", "") +call hi("FoldColumn", s:gui0C, s:gui01, s:cterm0C, s:cterm01, "", "") +call hi("Folded", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") +call hi("IncSearch", s:gui01, s:gui09, s:cterm01, s:cterm09, "none", "") +call hi("Italic", "", "", "", "", "none", "") +call hi("Macro", s:gui08, "", s:cterm08, "", "", "") +call hi("MatchParen", "", s:gui03, "", s:cterm03, "", "") +call hi("ModeMsg", s:gui0B, "", s:cterm0B, "", "", "") +call hi("MoreMsg", s:gui0B, "", s:cterm0B, "", "", "") +call hi("Question", s:gui0D, "", s:cterm0D, "", "", "") +call hi("Search", s:gui01, s:gui0A, s:cterm01, s:cterm0A, "", "") +call hi("Substitute", s:gui01, s:gui0A, s:cterm01, s:cterm0A, "none", "") +call hi("SpecialKey", s:gui03, "", s:cterm03, "", "", "") +call hi("TooLong", s:gui08, "", s:cterm08, "", "", "") +call hi("Underlined", s:gui08, "", s:cterm08, "", "", "") +call hi("Visual", "", s:gui02, "", s:cterm02, "", "") +call hi("VisualNOS", s:gui08, "", s:cterm08, "", "", "") +call hi("WarningMsg", s:gui08, "", s:cterm08, "", "", "") +call hi("WildMenu", s:gui08, s:gui0A, s:cterm08, "", "", "") +call hi("Title", s:gui0D, "", s:cterm0D, "", "none", "") +call hi("Conceal", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") +call hi("Cursor", s:gui00, s:gui05, s:cterm00, s:cterm05, "", "") +call hi("NonText", s:gui03, "", s:cterm03, "", "", "") +call hi("LineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") +call hi("SignColumn", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") +call hi("StatusLine", s:gui04, s:gui02, s:cterm04, s:cterm02, "none", "") +call hi("StatusLineNC", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") +call hi("VertSplit", s:gui02, s:gui02, s:cterm02, s:cterm02, "none", "") +call hi("ColorColumn", "", s:gui01, "", s:cterm01, "none", "") +call hi("CursorColumn", "", s:gui01, "", s:cterm01, "none", "") +call hi("CursorLine", "", s:gui01, "", s:cterm01, "none", "") +call hi("CursorLineNr", s:gui04, s:gui01, s:cterm04, s:cterm01, "", "") +call hi("QuickFixLine", "", s:gui01, "", s:cterm01, "none", "") +call hi("PMenu", s:gui05, s:gui01, s:cterm05, s:cterm01, "none", "") +call hi("PMenuSel", s:gui01, s:gui05, s:cterm01, s:cterm05, "", "") +call hi("TabLine", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") +call hi("TabLineFill", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") +call hi("TabLineSel", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "none", "") + +" Standard syntax highlighting +call hi("Boolean", s:gui09, "", s:cterm09, "", "", "") +call hi("Character", s:gui08, "", s:cterm08, "", "", "") +call hi("Comment", s:gui03, "", s:cterm03, "", "", "") +call hi("Conditional", s:gui0E, "", s:cterm0E, "", "", "") +call hi("Constant", s:gui09, "", s:cterm09, "", "", "") +call hi("Define", s:gui0E, "", s:cterm0E, "", "none", "") +call hi("Delimiter", s:gui0F, "", s:cterm0F, "", "", "") +call hi("Float", s:gui09, "", s:cterm09, "", "", "") +call hi("Function", s:gui0D, "", s:cterm0D, "", "", "") +call hi("Identifier", s:gui08, "", s:cterm08, "", "none", "") +call hi("Include", s:gui0D, "", s:cterm0D, "", "", "") +call hi("Keyword", s:gui0E, "", s:cterm0E, "", "", "") +call hi("Label", s:gui0A, "", s:cterm0A, "", "", "") +call hi("Number", s:gui09, "", s:cterm09, "", "", "") +call hi("Operator", s:gui05, "", s:cterm05, "", "none", "") +call hi("PreProc", s:gui0A, "", s:cterm0A, "", "", "") +call hi("Repeat", s:gui0A, "", s:cterm0A, "", "", "") +call hi("Special", s:gui0C, "", s:cterm0C, "", "", "") +call hi("SpecialChar", s:gui0F, "", s:cterm0F, "", "", "") +call hi("Statement", s:gui08, "", s:cterm08, "", "", "") +call hi("StorageClass", s:gui0A, "", s:cterm0A, "", "", "") +call hi("String", s:gui0B, "", s:cterm0B, "", "", "") +call hi("Structure", s:gui0E, "", s:cterm0E, "", "", "") +call hi("Tag", s:gui0A, "", s:cterm0A, "", "", "") +call hi("Todo", s:gui0A, s:gui01, s:cterm0A, s:cterm01, "", "") +call hi("Type", s:gui0A, "", s:cterm0A, "", "none", "") +call hi("Typedef", s:gui0A, "", s:cterm0A, "", "", "") + +" C highlighting +call hi("cOperator", s:gui0C, "", s:cterm0C, "", "", "") +call hi("cPreCondit", s:gui0E, "", s:cterm0E, "", "", "") + +" C# highlighting +call hi("csClass", s:gui0A, "", s:cterm0A, "", "", "") +call hi("csAttribute", s:gui0A, "", s:cterm0A, "", "", "") +call hi("csModifier", s:gui0E, "", s:cterm0E, "", "", "") +call hi("csType", s:gui08, "", s:cterm08, "", "", "") +call hi("csUnspecifiedStatement", s:gui0D, "", s:cterm0D, "", "", "") +call hi("csContextualStatement", s:gui0E, "", s:cterm0E, "", "", "") +call hi("csNewDecleration", s:gui08, "", s:cterm08, "", "", "") + +" CSS highlighting +call hi("cssBraces", s:gui05, "", s:cterm05, "", "", "") +call hi("cssClassName", s:gui0E, "", s:cterm0E, "", "", "") +call hi("cssColor", s:gui0C, "", s:cterm0C, "", "", "") + +" Diff highlighting +call hi("DiffAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") +call hi("DiffChange", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") +call hi("DiffDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") +call hi("DiffText", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") +call hi("DiffAdded", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") +call hi("DiffFile", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") +call hi("DiffNewFile", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") +call hi("DiffLine", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") +call hi("DiffRemoved", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") + +" Git highlighting +call hi("gitcommitOverflow", s:gui08, "", s:cterm08, "", "", "") +call hi("gitcommitSummary", s:gui0B, "", s:cterm0B, "", "", "") +call hi("gitcommitComment", s:gui03, "", s:cterm03, "", "", "") +call hi("gitcommitUntracked", s:gui03, "", s:cterm03, "", "", "") +call hi("gitcommitDiscarded", s:gui03, "", s:cterm03, "", "", "") +call hi("gitcommitSelected", s:gui03, "", s:cterm03, "", "", "") +call hi("gitcommitHeader", s:gui0E, "", s:cterm0E, "", "", "") +call hi("gitcommitSelectedType", s:gui0D, "", s:cterm0D, "", "", "") +call hi("gitcommitUnmergedType", s:gui0D, "", s:cterm0D, "", "", "") +call hi("gitcommitDiscardedType", s:gui0D, "", s:cterm0D, "", "", "") +call hi("gitcommitBranch", s:gui09, "", s:cterm09, "", "bold", "") +call hi("gitcommitUntrackedFile", s:gui0A, "", s:cterm0A, "", "", "") +call hi("gitcommitUnmergedFile", s:gui08, "", s:cterm08, "", "bold", "") +call hi("gitcommitDiscardedFile", s:gui08, "", s:cterm08, "", "bold", "") +call hi("gitcommitSelectedFile", s:gui0B, "", s:cterm0B, "", "bold", "") + +" GitGutter highlighting +call hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") +call hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") +call hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") +call hi("GitGutterChangeDelete", s:gui0E, s:gui01, s:cterm0E, s:cterm01, "", "") + +" HTML highlighting +call hi("htmlBold", s:gui0A, "", s:cterm0A, "", "", "") +call hi("htmlItalic", s:gui0E, "", s:cterm0E, "", "", "") +call hi("htmlEndTag", s:gui05, "", s:cterm05, "", "", "") +call hi("htmlTag", s:gui05, "", s:cterm05, "", "", "") + +" JavaScript highlighting +call hi("javaScript", s:gui05, "", s:cterm05, "", "", "") +call hi("javaScriptBraces", s:gui05, "", s:cterm05, "", "", "") +call hi("javaScriptNumber", s:gui09, "", s:cterm09, "", "", "") +" pangloss/vim-javascript highlighting +call hi("jsOperator", s:gui0D, "", s:cterm0D, "", "", "") +call hi("jsStatement", s:gui0E, "", s:cterm0E, "", "", "") +call hi("jsReturn", s:gui0E, "", s:cterm0E, "", "", "") +call hi("jsThis", s:gui08, "", s:cterm08, "", "", "") +call hi("jsClassDefinition", s:gui0A, "", s:cterm0A, "", "", "") +call hi("jsFunction", s:gui0E, "", s:cterm0E, "", "", "") +call hi("jsFuncName", s:gui0D, "", s:cterm0D, "", "", "") +call hi("jsFuncCall", s:gui0D, "", s:cterm0D, "", "", "") +call hi("jsClassFuncName", s:gui0D, "", s:cterm0D, "", "", "") +call hi("jsClassMethodType", s:gui0E, "", s:cterm0E, "", "", "") +call hi("jsRegexpString", s:gui0C, "", s:cterm0C, "", "", "") +call hi("jsGlobalObjects", s:gui0A, "", s:cterm0A, "", "", "") +call hi("jsGlobalNodeObjects", s:gui0A, "", s:cterm0A, "", "", "") +call hi("jsExceptions", s:gui0A, "", s:cterm0A, "", "", "") +call hi("jsBuiltins", s:gui0A, "", s:cterm0A, "", "", "") + +" Mail highlighting +call hi("mailQuoted1", s:gui0A, "", s:cterm0A, "", "", "") +call hi("mailQuoted2", s:gui0B, "", s:cterm0B, "", "", "") +call hi("mailQuoted3", s:gui0E, "", s:cterm0E, "", "", "") +call hi("mailQuoted4", s:gui0C, "", s:cterm0C, "", "", "") +call hi("mailQuoted5", s:gui0D, "", s:cterm0D, "", "", "") +call hi("mailQuoted6", s:gui0A, "", s:cterm0A, "", "", "") +call hi("mailURL", s:gui0D, "", s:cterm0D, "", "", "") +call hi("mailEmail", s:gui0D, "", s:cterm0D, "", "", "") + +" Markdown highlighting +call hi("markdownCode", s:gui0B, "", s:cterm0B, "", "", "") +call hi("markdownError", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") +call hi("markdownCodeBlock", s:gui0B, "", s:cterm0B, "", "", "") +call hi("markdownHeadingDelimiter", s:gui0D, "", s:cterm0D, "", "", "") + +" NERDTree highlighting +call hi("NERDTreeDirSlash", s:gui0D, "", s:cterm0D, "", "", "") +call hi("NERDTreeExecFile", s:gui05, "", s:cterm05, "", "", "") + +" PHP highlighting +call hi("phpMemberSelector", s:gui05, "", s:cterm05, "", "", "") +call hi("phpComparison", s:gui05, "", s:cterm05, "", "", "") +call hi("phpParent", s:gui05, "", s:cterm05, "", "", "") +call hi("phpMethodsVar", s:gui0C, "", s:cterm0C, "", "", "") + +" Python highlighting +call hi("pythonOperator", s:gui0E, "", s:cterm0E, "", "", "") +call hi("pythonRepeat", s:gui0E, "", s:cterm0E, "", "", "") +call hi("pythonInclude", s:gui0E, "", s:cterm0E, "", "", "") +call hi("pythonStatement", s:gui0E, "", s:cterm0E, "", "", "") + +" Ruby highlighting +call hi("rubyAttribute", s:gui0D, "", s:cterm0D, "", "", "") +call hi("rubyConstant", s:gui0A, "", s:cterm0A, "", "", "") +call hi("rubyInterpolationDelimiter", s:gui0F, "", s:cterm0F, "", "", "") +call hi("rubyRegexp", s:gui0C, "", s:cterm0C, "", "", "") +call hi("rubySymbol", s:gui0B, "", s:cterm0B, "", "", "") +call hi("rubyStringDelimiter", s:gui0B, "", s:cterm0B, "", "", "") + +" SASS highlighting +call hi("sassidChar", s:gui08, "", s:cterm08, "", "", "") +call hi("sassClassChar", s:gui09, "", s:cterm09, "", "", "") +call hi("sassInclude", s:gui0E, "", s:cterm0E, "", "", "") +call hi("sassMixing", s:gui0E, "", s:cterm0E, "", "", "") +call hi("sassMixinName", s:gui0D, "", s:cterm0D, "", "", "") + +" Signify highlighting +call hi("SignifySignAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") +call hi("SignifySignChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") +call hi("SignifySignDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") + +" Spelling highlighting +call hi("SpellBad", "", "", "", "", "undercurl", s:gui08) +call hi("SpellLocal", "", "", "", "", "undercurl", s:gui0C) +call hi("SpellCap", "", "", "", "", "undercurl", s:gui0D) +call hi("SpellRare", "", "", "", "", "undercurl", s:gui0E) + +" Startify highlighting +call hi("StartifyBracket", s:gui03, "", s:cterm03, "", "", "") +call hi("StartifyFile", s:gui07, "", s:cterm07, "", "", "") +call hi("StartifyFooter", s:gui03, "", s:cterm03, "", "", "") +call hi("StartifyHeader", s:gui0B, "", s:cterm0B, "", "", "") +call hi("StartifyNumber", s:gui09, "", s:cterm09, "", "", "") +call hi("StartifyPath", s:gui03, "", s:cterm03, "", "", "") +call hi("StartifySection", s:gui0E, "", s:cterm0E, "", "", "") +call hi("StartifySelect", s:gui0C, "", s:cterm0C, "", "", "") +call hi("StartifySlash", s:gui03, "", s:cterm03, "", "", "") +call hi("StartifySpecial", s:gui03, "", s:cterm03, "", "", "") + +" Java highlighting +call hi("javaOperator", s:gui0D, "", s:cterm0D, "", "", "") + +" Remove functions +delf hi + +" Remove color variables +unlet s:gui00 s:gui01 s:gui02 s:gui03 s:gui04 s:gui05 s:gui06 s:gui07 s:gui08 s:gui09 s:gui0A s:gui0B s:gui0C s:gui0D s:gui0E s:gui0F +unlet s:cterm00 s:cterm01 s:cterm02 s:cterm03 s:cterm04 s:cterm05 s:cterm06 s:cterm07 s:cterm08 s:cterm09 s:cterm0A s:cterm0B s:cterm0C s:cterm0D s:cterm0E s:cterm0F diff --git a/.vim/colors/boring.vim b/.vim/colors/boring.vim new file mode 100644 index 0000000..3c12c64 --- /dev/null +++ b/.vim/colors/boring.vim @@ -0,0 +1,108 @@ +" Inspired by and based on Berk D. Demir's `noclown`: +" https://github.com/bdd/.vim/blob/09b4dbef06612c52c9c160773645bea82c0f490d/colors/noclown.vim + +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "boring" + +" Terminals that don't support italics resort to rendering them as standout. +" For comments and other things we italicize, this can become annoying very +" quickly. We are going to ignore 'italic' attribute if the terminal doesn't +" know about it. +let g:boring_has_italics = 0 +if (has('gui_running') || has('unix') && system('tput sitm') == "\e[3m") + let g:boring_has_italics = 1 +endif + +let s:palette = { + \ 'bg' : ["black", '#000000'], + \ 'fg' : ["white", '#ffffff'], + \ 'dull' : [ 251, '#c6c6c6'], + \ 'dark' : [ 246, '#949494'], + \ 'deep' : [ 239, '#4e4e4e'], + \ 'accent' : [ 223, '#ffd7af'], + \ 'darkred' : [ 52, '#5f0000'], + \ 'darkyellow' : [ 58, '#3f3f00'], + \ 'darkblue' : [ 17, '#00008f'], + \ 'darkgreen' : [ 22, '#003f00'], + \ 'lightgreen' : [ 194, '#e0ffe0'], + \ 'lightyellow' : [ 230, '#ffffe0'], + \ 'lightred' : [ 224, '#ffe0e0'], + \ } +" dark*/light* are cheating with going below 5f / above df + +function! s:Clear(group) + execute 'highlight! clear ' . a:group + execute 'highlight ' . a:group . ' NONE' +endfunction + +function! s:Define(group, fg, bg, style) + call s:Clear(a:group) + + let [l:ctermfg, l:guifg] = s:palette[a:fg] + let [l:ctermbg, l:guibg] = s:palette[a:bg] + + let l:style = g:boring_has_italics || a:style != 'italic' ? a:style : 'NONE' + + let l:hi_expr = 'highlight ' . a:group + let l:hi_expr .= ' cterm=' . l:style + let l:hi_expr .= ' ctermfg=' . l:ctermfg + let l:hi_expr .= ' ctermbg=' . l:ctermbg + let l:hi_expr .= ' gui=' . l:style + let l:hi_expr .= ' guifg=' . l:guifg + let l:hi_expr .= ' guibg=' . l:guibg + + execute l:hi_expr +endfunction + +function! s:Link(from, to) + call s:Clear(a:from) + execute 'highlight link ' . a:from . ' ' . a:to +endfunction + +call s:Define('Normal', 'fg', 'bg', 'NONE') +call s:Define('Constant', 'dull', 'bg', 'NONE') +call s:Define('String', 'dull', 'bg', 'NONE') +call s:Define('Comment', 'dark', 'bg', 'NONE') +call s:Define('SpecialKey', 'deep', 'bg', 'NONE') +call s:Define('Todo', 'accent', 'bg', 'bold') +call s:Define('Search', 'fg', 'deep', 'NONE') +call s:Define('Folded', 'dark', 'bg', 'inverse') +call s:Define('Title', 'fg', 'bg', 'bold') +call s:Define('Underlined', 'fg', 'bg', 'underline') +call s:Define('Pmenu', 'fg', 'bg', 'inverse') +call s:Define('PmenuSel', 'fg', 'bg', 'bold') +call s:Define('MatchParen', 'fg', 'deep', 'bold') +call s:Define('EndOfBuffer', 'deep', 'bg', 'bold') +call s:Define('SpecialChar', 'dull', 'bg', 'italic') +call s:Define('DiagnosticError', 'darkred', 'bg', 'NONE') +call s:Define('DiagnosticWarn', 'darkyellow', 'bg', 'NONE') +call s:Define('DiagnosticInfo', 'darkblue', 'bg', 'NONE') +call s:Define('DiagnosticHint', 'darkgreen', 'bg', 'NONE') +call s:Define('diffAdded', 'lightgreen', 'bg', 'NONE') +call s:Define('diffRemoved', 'lightred', 'bg', 'NONE') +call s:Define('diffChanged', 'lightyellow', 'bg', 'NONE') +call s:Define('diffLine', 'dark', 'bg', 'NONE') +call s:Define('diffNewFile', 'dark', 'bg', 'NONE') +call s:Define('diffOldFile', 'dark', 'bg', 'NONE') +call s:Define('diffIndexLine', 'dark', 'bg', 'NONE') +call s:Define('diffFile', 'dark', 'bg', 'NONE') + +call s:Clear('Identifier') +call s:Clear('Special') +call s:Clear('Statement') +call s:Clear('Type') +call s:Clear('WarningMsg') +call s:Clear('Wildmenu') +call s:Clear('Directory') +call s:Clear('LineNr') +call s:Clear('SignColumn') + +call s:Link('IncSearch', 'Search') +call s:Link('PreProc', 'Normal') +call s:Link('NonText', 'SpecialKey') +call s:Link('Error', 'Search') +call s:Link('ErrorMsg', 'Search') +call s:Link('FoldColumn', 'Folded') diff --git a/.vim/colors/candle-grey-transparent.vim b/.vim/colors/candle-grey-transparent.vim new file mode 100644 index 0000000..d09856c --- /dev/null +++ b/.vim/colors/candle-grey-transparent.vim @@ -0,0 +1,152 @@ +" Name: candle-grey-transparent +" Author: Aditya Azad +" Maintainer: Aditya Azad +" Notes: A dark monochrome colorscheme with a hint of color + +" Colors used +" #0D0D0D +" #404040 +" #8C8C8C +" #F2F2F2 +" #D99962 + +set background=dark + +highlight clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="candle-grey-transparent" + +" -------------------------------- +" Editor settings +" -------------------------------- +hi Normal ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Cursor ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi CursorLine ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi LineNr ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi CursorLineNR ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE + +" ----------------- +" - Number column - +" ----------------- +hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi FoldColumn ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi SignColumn ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi Folded ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE + +" ------------------------- +" - Window/Tab delimiters - +" ------------------------- +hi VertSplit ctermfg=DarkGrey ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi ColorColumn ctermfg=DarkGrey ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi TabLine ctermfg=DarkGrey ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi TabLineFill ctermfg=DarkGrey ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi TabLineSel ctermfg=DarkGrey ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE + +" ------------------------------- +" - File Navigation / Searching - +" ------------------------------- +hi Directory ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Search ctermfg=White ctermbg=210 cterm=NONE guifg=#0D0D0D guibg=#D99962 gui=NONE +hi IncSearch ctermfg=White ctermbg=210 cterm=NONE guifg=#0D0D0D guibg=#D99962 gui=NONE + +" ----------------- +" - Prompt/Status - +" ----------------- +hi StatusLine ctermfg=210 ctermbg=NONE cterm=NONE guifg=#D99962 guibg=NONE gui=NONE +hi StatusLineNC ctermfg=Black ctermbg=NONE cterm=NONE guifg=#0D0D0D guibg=NONE gui=NONE +hi WildMenu ctermfg=210 ctermbg=NONE cterm=NONE guifg=#D99962 guibg=NONE gui=NONE +hi Question ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi Title ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi ModeMsg ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi MoreMsg ctermfg=210 ctermbg=NONE cterm=NONE guifg=#D99962 guibg=NONE gui=NONE + +" -------------- +" - Visual aid - +" -------------- +hi MatchParen ctermfg=210 ctermbg=DarkGray cterm=NONE guifg=#D99962 guibg=#404040 gui=NONE +hi Visual ctermfg=White ctermbg=DarkGray cterm=NONE guifg=#F2F2F2 guibg=#404040 gui=NONE +hi VisualNOS ctermfg=White ctermbg=DarkGray cterm=NONE guifg=#F2F2F2 guibg=#404040 gui=NONE +hi NonText ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE + +hi Todo ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Underlined ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Error ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi ErrorMsg ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi WarningMsg ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi Ignore ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi SpecialKey ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi WhiteSpaceChar ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE +hi WhiteSpace ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE + +" -------------------------------- +" Variable types +" -------------------------------- +hi Constant ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE +hi String ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE +hi StringDelimiter ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE +hi Character ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE +hi Number ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE +hi Boolean ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE +hi Float ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE + +hi Identifier ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Function ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE + +" -------------------------------- +" Language constructs +" -------------------------------- +hi Statement ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Conditional ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Repeat ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Label ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Operator ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Keyword ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Exception ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Comment ctermfg=DarkGray ctermbg=NONE cterm=NONE guifg=#404040 guibg=NONE gui=NONE + +hi Special ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi SpecialChar ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Tag ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Delimiter ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi SpecialComment ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Debug ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE + +" ---------- +" - C like - +" ---------- +hi PreProc ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Include ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Define ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Macro ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi PreCondit ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE + +hi Type ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi StorageClass ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Structure ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi Typedef ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE + +" -------------------------------- +" Diff +" -------------------------------- +hi DiffAdd ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi DiffChange ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi DiffDelete ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi DiffText ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE + +" -------------------------------- +" Completion menu +" -------------------------------- +hi Pmenu ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE +hi PmenuSel ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE +hi PmenuSbar ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE +hi PmenuThumb ctermfg=Gray ctermbg=NONE cterm=NONE guifg=#8C8C8C guibg=NONE gui=NONE + +" -------------------------------- +" Spelling +" -------------------------------- +hi SpellBad ctermfg=210 ctermbg=NONE cterm=NONE guifg=#D99962 guibg=NONE gui=NONE +hi SpellCap ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi SpellLocal ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE +hi SpellRare ctermfg=White ctermbg=NONE cterm=NONE guifg=#F2F2F2 guibg=NONE gui=NONE