From b96ece20c83f5d929205668fa8d03859e6e69956 Mon Sep 17 00:00:00 2001 From: Vinit Kumar Date: Wed, 10 Jan 2024 22:16:20 +0530 Subject: [PATCH] fix: update vim and gvim rc file --- colors/alabaster.vim | 31 +++ colors/base16-vice.vim | 413 ++++++++++++++++++++++++++++++++++++ colors/monocode.vim | 467 +++++++++++++++++++++++++++++++++++++++++ gvimrc | 3 +- vimrc | 10 +- 5 files changed, 917 insertions(+), 7 deletions(-) create mode 100644 colors/alabaster.vim create mode 100644 colors/base16-vice.vim create mode 100644 colors/monocode.vim diff --git a/colors/alabaster.vim b/colors/alabaster.vim new file mode 100644 index 0000000..97e184a --- /dev/null +++ b/colors/alabaster.vim @@ -0,0 +1,31 @@ +" alabaster.vim + +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "alabaster" + +if &background == "dark" + let g:terminal_color_0 = "#000000" + let g:terminal_color_1 = "#d2322d" + let g:terminal_color_2 = "#6abf40" + " etc for all terminal colors +endif + +" Colors +let s:bg = "#0e1415" +let s:fg = "#cecece" +let s:punct_fg = "#708b8d" +let s:def_fg = "#71ade7" +" etc for all colors + +" Highlight groups +hi ColorColumn ctermbg=#E2EEEE +hi Cursor ctermbg=active ctermfg=#000000 +hi CursorLine ctermbg=#182325 +hi DiffAdd ctermbg=#244032 ctermfg=#56d364 +hi DiffDelete ctermbg=#462c32 ctermfg=#f85149 +" etc for all highlight groups + diff --git a/colors/base16-vice.vim b/colors/base16-vice.vim new file mode 100644 index 0000000..66b840f --- /dev/null +++ b/colors/base16-vice.vim @@ -0,0 +1,413 @@ +" vi:syntax=vim + +" base16-vim (https://github.com/chriskempson/base16-vim) +" by Chris Kempson (http://chriskempson.com) +" vice scheme by Thomas Leon Highbaugh thighbaugh@zoho.com + +" 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-vice.sh" + endif +endif + +" GUI color definitions +let s:gui00 = "17191E" +let g:base16_gui00 = "17191E" +let s:gui01 = "22262d" +let g:base16_gui01 = "22262d" +let s:gui02 = "3c3f4c" +let g:base16_gui02 = "3c3f4c" +let s:gui03 = "383a47" +let g:base16_gui03 = "383a47" +let s:gui04 = "555e70" +let g:base16_gui04 = "555e70" +let s:gui05 = "8b9cbe" +let g:base16_gui05 = "8b9cbe" +let s:gui06 = "B2BFD9" +let g:base16_gui06 = "B2BFD9" +let s:gui07 = "f4f4f7" +let g:base16_gui07 = "f4f4f7" +let s:gui08 = "ff29a8" +let g:base16_gui08 = "ff29a8" +let s:gui09 = "85ffe0" +let g:base16_gui09 = "85ffe0" +let s:gui0A = "f0ffaa" +let g:base16_gui0A = "f0ffaa" +let s:gui0B = "0badff" +let g:base16_gui0B = "0badff" +let s:gui0C = "8265ff" +let g:base16_gui0C = "8265ff" +let s:gui0D = "00eaff" +let g:base16_gui0D = "00eaff" +let s:gui0E = "00f6d9" +let g:base16_gui0E = "00f6d9" +let s:gui0F = "ff3d81" +let g:base16_gui0F = "ff3d81" + +" 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 = "#17191E" + let g:terminal_color_1 = "#ff87d7" + let g:terminal_color_2 = "#0badff" + let g:terminal_color_3 = "#f0ffaa" + let g:terminal_color_4 = "#00eaff" + let g:terminal_color_5 = "#00f6d9" + let g:terminal_color_6 = "#8265ff" + let g:terminal_color_7 = "#8b9cbe" + let g:terminal_color_8 = "#383a47" + let g:terminal_color_9 = "#ff87d7" + let g:terminal_color_10 = "#0badff" + let g:terminal_color_11 = "#f0ffaa" + let g:terminal_color_12 = "#00eaff" + let g:terminal_color_13 = "#00f6d9" + let g:terminal_color_14 = "#8265ff" + let g:terminal_color_15 = "#f4f4f7" + 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 = [ + \ "#17191E", + \ "#ff87d7", + \ "#0badff", + \ "#f0ffaa", + \ "#00eaff", + \ "#00f6d9", + \ "#8265ff", + \ "#8b9cbe", + \ "#383a47", + \ "#ff87d7", + \ "#0badff", + \ "#f0ffaa", + \ "#00eaff", + \ "#00f6d9", + \ "#8265ff", + \ "#f4f4f7", + \ ] +endif + +" Theme setup +hi clear +syntax reset +let g:colors_name = "base16-vice" + +" 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/colors/monocode.vim b/colors/monocode.vim new file mode 100644 index 0000000..fbcbae4 --- /dev/null +++ b/colors/monocode.vim @@ -0,0 +1,467 @@ +" Vim Code Dark (color scheme) +" https://github.com/tomasiser/vim-code-dark + +scriptencoding utf-8 + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="codedark" + +" Highlighting function (inspiration from https://github.com/chriskempson/base16-vim) +if &t_Co >= 256 + let g:codedark_term256=1 +elseif !exists("g:codedark_term256") + let g:codedark_term256=0 +endif +fun! hi(group, fg, bg, attr, sp) + if !empty(a:fg) + exec "hi " . a:group . " guifg=" . a:fg.gui . " ctermfg=" . (g:codedark_term256 ? a:fg.cterm256 : a:fg.cterm) + endif + if !empty(a:bg) + exec "hi " . a:group . " guibg=" . a:bg.gui . " ctermbg=" . (g:codedark_term256 ? a:bg.cterm256 : a:bg.cterm) + endif + if a:attr != "" + exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr + endif + if !empty(a:sp) + exec "hi " . a:group . " guisp=" . a:sp.gui + endif +endfun + +" ------------------ +" Color definitions: +" ------------------ + +" Terminal colors (base16): +let s:cterm00 = "00" +let s:cterm03 = "08" +let s:cterm05 = "07" +let s:cterm07 = "15" +let s:cterm08 = "01" +let s:cterm0A = "03" +let s:cterm0B = "02" +let s:cterm0C = "06" +let s:cterm0D = "04" +let s:cterm0E = "05" +if exists('base16colorspace') && base16colorspace == "256" + let s:cterm01 = "18" + let s:cterm02 = "19" + let s:cterm04 = "20" + let s:cterm06 = "21" + let s:cterm09 = "16" + let s:cterm0F = "17" +else + let s:cterm01 = "00" + let s:cterm02 = "08" + let s:cterm04 = "07" + let s:cterm06 = "07" + let s:cterm09 = "06" + let s:cterm0F = "03" +endif + +" General appearance colors: +" (some of them may be unused) + +let s:cdNone = {'gui': 'NONE', 'cterm': 'NONE', 'cterm256': 'NONE'} +let s:cdFront = {'gui': '#D4D4D4', 'cterm': s:cterm05, 'cterm256': '188'} +let s:cdBack = {'gui': '#1E1E1E', 'cterm': s:cterm00, 'cterm256': '234'} + +let s:cdTabCurrent = {'gui': '#1E1E1E', 'cterm': s:cterm00, 'cterm256': '234'} +let s:cdTabOther = {'gui': '#2D2D2D', 'cterm': s:cterm01, 'cterm256': '236'} +let s:cdTabOutside = {'gui': '#252526', 'cterm': s:cterm01, 'cterm256': '235'} + +let s:cdLeftDark = {'gui': '#252526', 'cterm': s:cterm01, 'cterm256': '235'} +let s:cdLeftMid = {'gui': '#373737', 'cterm': s:cterm03, 'cterm256': '237'} +let s:cdLeftLight = {'gui': '#3F3F46', 'cterm': s:cterm03, 'cterm256': '238'} + +let s:cdPopupFront = {'gui': '#BBBBBB', 'cterm': s:cterm06, 'cterm256': '250'} +let s:cdPopupBack = {'gui': '#2D2D30', 'cterm': s:cterm01, 'cterm256': '236'} +let s:cdPopupHighlightBlue = {'gui': '#073655', 'cterm': s:cterm0D, 'cterm256': '246'} +let s:cdPopupHighlightGray = {'gui': '#3D3D40', 'cterm': s:cterm03, 'cterm256': '237'} + +let s:cdSplitLight = {'gui': '#898989', 'cterm': s:cterm04, 'cterm256': '245'} +let s:cdSplitDark = {'gui': '#444444', 'cterm': s:cterm03, 'cterm256': '238'} +let s:cdSplitThumb = {'gui': '#424242', 'cterm': s:cterm04, 'cterm256': '238'} + +let s:cdCursorDarkDark = {'gui': '#222222', 'cterm': s:cterm01, 'cterm256': '235'} +let s:cdCursorDark = {'gui': '#51504F', 'cterm': s:cterm03, 'cterm256': '239'} +let s:cdCursorLight = {'gui': '#AEAFAD', 'cterm': s:cterm04, 'cterm256': '145'} +let s:cdSelection = {'gui': '#264F78', 'cterm': s:cterm03, 'cterm256': '246'} +let s:cdLineNumber = {'gui': '#5A5A5A', 'cterm': s:cterm04, 'cterm256': '240'} + +let s:cdDiffRedDark = {'gui': '#4B1818', 'cterm': s:cterm08, 'cterm256': '95'} +let s:cdDiffRedLight = {'gui': '#6F1313', 'cterm': s:cterm08, 'cterm256': '95'} +let s:cdDiffRedLightLight = {'gui': '#FB0101', 'cterm': s:cterm08, 'cterm256': '95'} +let s:cdDiffGreenDark = {'gui': '#373D29', 'cterm': s:cterm0B, 'cterm256': '59'} +let s:cdDiffGreenLight = {'gui': '#4B5632', 'cterm': s:cterm09, 'cterm256': '59'} + +let s:cdSearchCurrent = {'gui': '#4B5632', 'cterm': s:cterm09, 'cterm256': '59'} +let s:cdSearch = {'gui': '#264F78', 'cterm': s:cterm03, 'cterm256': '244'} + +" Syntax colors: + +if !exists("g:codedark_conservative") + let g:codedark_conservative=0 +endif + +let s:cdGray = {'gui': '#808080', 'cterm': s:cterm04, 'cterm256': '08'} +let s:cdViolet = {'gui': '#646695', 'cterm': s:cterm04, 'cterm256': '59'} +let s:cdBlue = {'gui': '#569CD6', 'cterm': s:cterm0D, 'cterm256': '254'} +let s:cdDarkBlue = {'gui': '#223E55', 'cterm': s:cterm0D, 'cterm256': '249'} +let s:cdLightBlue = {'gui': '#9CDCFE', 'cterm': s:cterm0C, 'cterm256': '253'} +if g:codedark_conservative | let s:cdLightBlue = s:cdFront | endif +let s:cdGreen = {'gui': '#6A9955', 'cterm': s:cterm0B, 'cterm256': '102'} +let s:cdBlueGreen = {'gui': '#4EC9B0', 'cterm': s:cterm0F, 'cterm256': '252'} +let s:cdLightGreen = {'gui': '#B5CEA8', 'cterm': s:cterm09, 'cterm256': '251'} +let s:cdRed = {'gui': '#F44747', 'cterm': s:cterm08, 'cterm256': '252'} +let s:cdOrange = {'gui': '#CE9178', 'cterm': s:cterm0F, 'cterm256': '248'} +let s:cdLightRed = {'gui': '#D16969', 'cterm': s:cterm08, 'cterm256': '246'} +if g:codedark_conservative | let s:cdLightRed = s:cdOrange | endif +let s:cdYellowOrange = {'gui': '#D7BA7D', 'cterm': s:cterm0A, 'cterm256': '248'} +let s:cdYellow = {'gui': '#DCDCAA', 'cterm': s:cterm0A, 'cterm256': '248'} +if g:codedark_conservative | let s:cdYellow = s:cdFront | endif +let s:cdPink = {'gui': '#C586C0', 'cterm': s:cterm0E, 'cterm256': '248'} +if g:codedark_conservative | let s:cdPink = s:cdBlue | endif + +" Vim editor colors +" hi(GROUP, FOREGROUND, BACKGROUND, ATTRIBUTE, SPECIAL) +call hi('Normal', s:cdFront, s:cdBack, 'none', {}) +call hi('ColorColumn', {}, s:cdCursorDarkDark, 'none', {}) +call hi('Cursor', s:cdCursorDark, s:cdCursorLight, 'none', {}) +call hi('CursorLine', {}, s:cdCursorDarkDark, 'none', {}) +call hi('CursorColumn', {}, s:cdCursorDarkDark, 'none', {}) +call hi('Directory', s:cdBlue, s:cdBack, 'none', {}) +call hi('DiffAdd', {}, s:cdDiffGreenDark, 'none', {}) +call hi('DiffChange', {}, s:cdDiffRedDark, 'none', {}) +call hi('DiffDelete', {}, s:cdDiffRedLight, 'none', {}) +call hi('DiffText', {}, s:cdDiffRedLight, 'none', {}) +call hi('EndOfBuffer', s:cdLineNumber, s:cdBack, 'none', {}) +call hi('ErrorMsg', s:cdRed, s:cdBack, 'none', {}) +call hi('VertSplit', s:cdSplitDark, s:cdBack, 'none', {}) +call hi('Folded', s:cdLeftLight, s:cdLeftDark, 'underline', {}) +call hi('FoldColumn', s:cdLineNumber, s:cdBack, 'none', {}) +call hi('SignColumn', {}, s:cdBack, 'none', {}) +call hi('IncSearch', s:cdNone, s:cdSearchCurrent, 'none', {}) +call hi('LineNr', s:cdLineNumber, s:cdBack, 'none', {}) +call hi('CursorLineNr', s:cdPopupFront, s:cdBack, 'none', {}) +call hi('MatchParen', s:cdNone, s:cdCursorDark, 'none', {}) +call hi('ModeMsg', s:cdFront, s:cdLeftDark, 'none', {}) +call hi('MoreMsg', s:cdFront, s:cdLeftDark, 'none', {}) +call hi('NonText', s:cdLineNumber, s:cdBack, 'none', {}) +call hi('Pmenu', s:cdPopupFront, s:cdPopupBack, 'none', {}) +call hi('PmenuSel', s:cdPopupFront, s:cdPopupHighlightBlue, 'none', {}) +call hi('PmenuSbar', {}, s:cdPopupHighlightGray, 'none', {}) +call hi('PmenuThumb', {}, s:cdPopupFront, 'none', {}) +call hi('Question', s:cdBlue, s:cdBack, 'none', {}) +call hi('Search', s:cdNone, s:cdSearch, 'none', {}) +call hi('SpecialKey', s:cdBlue, s:cdNone, 'none', {}) +call hi('StatusLine', s:cdFront, s:cdLeftMid, 'none', {}) +call hi('StatusLineNC', s:cdFront, s:cdLeftDark, 'none', {}) +call hi('StatusLineTerm', s:cdFront, s:cdLeftMid, 'none', {}) +call hi('StatusLineTermNC', s:cdFront, s:cdLeftDark, 'none', {}) +call hi('TabLine', s:cdFront, s:cdTabOther, 'none', {}) +call hi('TabLineFill', s:cdFront, s:cdTabOutside, 'none', {}) +call hi('TabLineSel', s:cdFront, s:cdTabCurrent, 'none', {}) +call hi('Title', s:cdNone, s:cdNone, 'bold', {}) +call hi('Visual', s:cdNone, s:cdSelection, 'none', {}) +call hi('VisualNOS', s:cdNone, s:cdSelection, 'none', {}) +call hi('WarningMsg', s:cdOrange, s:cdBack, 'none', {}) +call hi('WildMenu', s:cdNone, s:cdSelection, 'none', {}) + +call hi('Comment', s:cdGreen, {}, 'none', {}) + +call hi('Constant', s:cdBlue, {}, 'none', {}) +call hi('String', s:cdOrange, {}, 'none', {}) +call hi('Character', s:cdOrange, {}, 'none', {}) +call hi('Number', s:cdLightGreen, {}, 'none', {}) +call hi('Boolean', s:cdBlue, {}, 'none', {}) +call hi('Float', s:cdLightGreen, {}, 'none', {}) + +call hi('Identifier', s:cdLightBlue, {}, 'none', {}) +call hi('Function', s:cdYellow, {}, 'none', {}) + +call hi('Statement', s:cdPink, {}, 'none', {}) +call hi('Conditional', s:cdPink, {}, 'none', {}) +call hi('Repeat', s:cdPink, {}, 'none', {}) +call hi('Label', s:cdPink, {}, 'none', {}) +call hi('Operator', s:cdFront, {}, 'none', {}) +call hi('Keyword', s:cdPink, {}, 'none', {}) +call hi('Exception', s:cdPink, {}, 'none', {}) + +call hi('PreProc', s:cdPink, {}, 'none', {}) +call hi('Include', s:cdPink, {}, 'none', {}) +call hi('Define', s:cdPink, {}, 'none', {}) +call hi('Macro', s:cdPink, {}, 'none', {}) +call hi('PreCondit', s:cdPink, {}, 'none', {}) + +call hi('Type', s:cdBlue, {}, 'none', {}) +call hi('StorageClass', s:cdBlue, {}, 'none', {}) +call hi('Structure', s:cdBlue, {}, 'none', {}) +call hi('Typedef', s:cdBlue, {}, 'none', {}) + +call hi('Special', s:cdYellowOrange, {}, 'none', {}) +call hi('SpecialChar', s:cdFront, {}, 'none', {}) +call hi('Tag', s:cdFront, {}, 'none', {}) +call hi('Delimiter', s:cdFront, {}, 'none', {}) +call hi('SpecialComment', s:cdGreen, {}, 'none', {}) +call hi('Debug', s:cdFront, {}, 'none', {}) + +call hi('Underlined', s:cdNone, {}, 'underline', {}) +call hi("Conceal", s:cdFront, s:cdBack, 'none', {}) + +call hi('Ignore', s:cdFront, {}, 'none', {}) + +call hi('Error', s:cdRed, s:cdBack, 'undercurl', s:cdRed) + +call hi('Todo', s:cdNone, s:cdLeftMid, 'none', {}) + +call hi('SpellCap', s:cdRed, s:cdBack, 'undercurl', s:cdRed) +call hi('SpellRare', s:cdRed, s:cdBack, 'undercurl', s:cdRed) +call hi('SpellLocal', s:cdRed, s:cdBack, 'undercurl', s:cdRed) +hi SpellBad cterm=underline ctermfg=NONE ctermbg=NONE + +" Markdown: +call hi('markdownBold', s:cdBlue, {}, 'bold', {}) +call hi('markdownCode', s:cdOrange, {}, 'none', {}) +call hi('markdownRule', s:cdBlue, {}, 'bold', {}) +call hi('markdownCodeDelimiter', s:cdOrange, {}, 'none', {}) +call hi('markdownHeadingDelimiter', s:cdBlue, {}, 'none', {}) +call hi('markdownFootnote', s:cdOrange, {}, 'none', {}) +call hi('markdownFootnoteDefinition', s:cdOrange, {}, 'none', {}) +call hi('markdownUrl', s:cdLightBlue, {}, 'underline', {}) +call hi('markdownLinkText', s:cdOrange, {}, 'none', {}) +call hi('markdownEscape', s:cdYellowOrange, {}, 'none', {}) + +" JSON: +call hi('jsonKeyword', s:cdLightBlue, {}, 'none', {}) +call hi('jsonEscape', s:cdYellowOrange, {}, 'none', {}) +call hi('jsonNull', s:cdBlue, {}, 'none', {}) +call hi('jsonBoolean', s:cdBlue, {}, 'none', {}) + +" HTML: +call hi('htmlTag', s:cdGray, {}, 'none', {}) +call hi('htmlEndTag', s:cdGray, {}, 'none', {}) +call hi('htmlTagName', s:cdBlue, {}, 'none', {}) +call hi('htmlSpecialTagName', s:cdBlue, {}, 'none', {}) +call hi('htmlArg', s:cdLightBlue, {}, 'none', {}) + +" PHP: +call hi('phpStaticClasses', s:cdBlueGreen, {}, 'none', {}) +call hi('phpMethod', s:cdYellow, {}, 'none', {}) +call hi('phpClass', s:cdBlueGreen, {}, 'none', {}) +call hi('phpFunction', s:cdYellow, {}, 'none', {}) +call hi('phpInclude', s:cdBlue, {}, 'none', {}) +call hi('phpUseClass', s:cdBlueGreen, {}, 'none', {}) +call hi('phpRegion', s:cdBlueGreen, {}, 'none', {}) +call hi('phpMethodsVar', s:cdLightBlue, {}, 'none', {}) + +" CSS: +call hi('cssBraces', s:cdFront, {}, 'none', {}) +call hi('cssInclude', s:cdPink, {}, 'none', {}) +call hi('cssTagName', s:cdYellowOrange, {}, 'none', {}) +call hi('cssClassName', s:cdYellowOrange, {}, 'none', {}) +call hi('cssPseudoClass', s:cdYellowOrange, {}, 'none', {}) +call hi('cssPseudoClassId', s:cdYellowOrange, {}, 'none', {}) +call hi('cssPseudoClassLang', s:cdYellowOrange, {}, 'none', {}) +call hi('cssIdentifier', s:cdYellowOrange, {}, 'none', {}) +call hi('cssProp', s:cdLightBlue, {}, 'none', {}) +call hi('cssDefinition', s:cdLightBlue, {}, 'none', {}) +call hi('cssAttr', s:cdOrange, {}, 'none', {}) +call hi('cssAttrRegion', s:cdOrange, {}, 'none', {}) +call hi('cssColor', s:cdOrange, {}, 'none', {}) +call hi('cssFunction', s:cdOrange, {}, 'none', {}) +call hi('cssFunctionName', s:cdOrange, {}, 'none', {}) +call hi('cssVendor', s:cdOrange, {}, 'none', {}) +call hi('cssValueNumber', s:cdOrange, {}, 'none', {}) +call hi('cssValueLength', s:cdOrange, {}, 'none', {}) +call hi('cssUnitDecorators', s:cdOrange, {}, 'none', {}) +call hi('cssStyle', s:cdLightBlue, {}, 'none', {}) +call hi('cssImportant', s:cdBlue, {}, 'none', {}) + +" JavaScript: +call hi('jsVariableDef', s:cdLightBlue, {}, 'none', {}) +call hi('jsFuncArgs', s:cdLightBlue, {}, 'none', {}) +call hi('jsFuncBlock', s:cdLightBlue, {}, 'none', {}) +call hi('jsRegexpString', s:cdLightRed, {}, 'none', {}) +call hi('jsThis', s:cdBlue, {}, 'none', {}) +call hi('jsOperatorKeyword', s:cdBlue, {}, 'none', {}) +call hi('jsDestructuringBlock', s:cdLightBlue, {}, 'none', {}) +call hi('jsObjectKey', s:cdLightBlue, {}, 'none', {}) +call hi('jsGlobalObjects', s:cdBlueGreen, {}, 'none', {}) +call hi('jsModuleKeyword', s:cdLightBlue, {}, 'none', {}) +call hi('jsClassDefinition', s:cdBlueGreen, {}, 'none', {}) +call hi('jsClassKeyword', s:cdBlue, {}, 'none', {}) +call hi('jsExtendsKeyword', s:cdBlue, {}, 'none', {}) +call hi('jsExportDefault', s:cdPink, {}, 'none', {}) +call hi('jsFuncCall', s:cdYellow, {}, 'none', {}) +call hi('jsObjectValue', s:cdLightBlue, {}, 'none', {}) +call hi('jsParen', s:cdLightBlue, {}, 'none', {}) +call hi('jsObjectProp', s:cdLightBlue, {}, 'none', {}) +call hi('jsIfElseBlock', s:cdLightBlue, {}, 'none', {}) +call hi('jsParenIfElse', s:cdLightBlue, {}, 'none', {}) +call hi('jsSpreadOperator', s:cdLightBlue, {}, 'none', {}) +call hi('jsSpreadExpression', s:cdLightBlue, {}, 'none', {}) + +" Typescript: +call hi('typescriptLabel', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptExceptions', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptBraces', s:cdFront, {}, 'none', {}) +call hi('typescriptEndColons', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptParens', s:cdFront, {}, 'none', {}) +call hi('typescriptDocTags', s:cdBlue, {}, 'none', {}) +call hi('typescriptDocComment', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptLogicSymbols', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptImport', s:cdPink, {}, 'none', {}) +call hi('typescriptBOM', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptVariableDeclaration', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptVariable', s:cdBlue, {}, 'none', {}) +call hi('typescriptExport', s:cdPink, {}, 'none', {}) +call hi('typescriptAliasDeclaration', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptAliasKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptClassName', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptAccessibilityModifier', s:cdBlue, {}, 'none', {}) +call hi('typescriptOperator', s:cdBlue, {}, 'none', {}) +call hi('typescriptArrowFunc', s:cdBlue, {}, 'none', {}) +call hi('typescriptMethodAccessor', s:cdBlue, {}, 'none', {}) +call hi('typescriptMember', s:cdYellow, {}, 'none', {}) +call hi('typescriptTypeReference', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptDefault', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptTemplateSB', s:cdYellowOrange, {}, 'none', {}) +call hi('typescriptArrowFuncArg', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptParamImpl', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptFuncComma', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptCastKeyword', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptCall', s:cdBlue, {}, 'none', {}) +call hi('typescriptCase', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptReserved', s:cdPink, {}, 'none', {}) +call hi('typescriptDefault', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptDecorator', s:cdYellow, {}, 'none', {}) +call hi('typescriptPredefinedType', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptClassHeritage', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptClassExtends', s:cdBlue, {}, 'none', {}) +call hi('typescriptClassKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptBlock', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptDOMDocProp', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptTemplateSubstitution', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptClassBlock', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptFuncCallArg', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptIndexExpr', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptConditionalParen', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptArray', s:cdYellow, {}, 'none', {}) +call hi('typescriptES6SetProp', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptObjectLiteral', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptTypeParameter', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptEnumKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptEnum', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptLoopParen', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptParenExp', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptModule', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptAmbientDeclaration', s:cdBlue, {}, 'none', {}) +call hi('typescriptModule', s:cdBlue, {}, 'none', {}) +call hi('typescriptFuncTypeArrow', s:cdBlue, {}, 'none', {}) +call hi('typescriptInterfaceHeritage', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptInterfaceName', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptInterfaceKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptInterfaceExtends', s:cdBlue, {}, 'none', {}) +call hi('typescriptGlobal', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptAsyncFuncKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptFuncKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptGlobalMethod', s:cdYellow, {}, 'none', {}) +call hi('typescriptPromiseMethod', s:cdYellow, {}, 'none', {}) + +" XML: +call hi('xmlTag', s:cdBlueGreen, {}, 'none', {}) +call hi('xmlTagName', s:cdBlueGreen, {}, 'none', {}) +call hi('xmlEndTag', s:cdBlueGreen, {}, 'none', {}) + +" Ruby: +call hi('rubyClassNameTag', s:cdBlueGreen, {}, 'none', {}) +call hi('rubyClassName', s:cdBlueGreen, {}, 'none', {}) +call hi('rubyModuleName', s:cdBlueGreen, {}, 'none', {}) +call hi('rubyConstant', s:cdBlueGreen, {}, 'none', {}) + +" Golang: +call hi('goPackage', s:cdBlue, {}, 'none', {}) +call hi('goImport', s:cdBlue, {}, 'none', {}) +call hi('goVar', s:cdBlue, {}, 'none', {}) +call hi('goConst', s:cdBlue, {}, 'none', {}) +call hi('goStatement', s:cdPink, {}, 'none', {}) +call hi('goType', s:cdBlueGreen, {}, 'none', {}) +call hi('goSignedInts', s:cdBlueGreen, {}, 'none', {}) +call hi('goUnsignedInts', s:cdBlueGreen, {}, 'none', {}) +call hi('goFloats', s:cdBlueGreen, {}, 'none', {}) +call hi('goComplexes', s:cdBlueGreen, {}, 'none', {}) +call hi('goBuiltins', s:cdYellow, {}, 'none', {}) +call hi('goBoolean', s:cdBlue, {}, 'none', {}) +call hi('goPredefinedIdentifiers', s:cdBlue, {}, 'none', {}) +call hi('goTodo', s:cdGreen, {}, 'none', {}) +call hi('goDeclaration', s:cdBlue, {}, 'none', {}) +call hi('goDeclType', s:cdBlue, {}, 'none', {}) +call hi('goTypeDecl', s:cdBlue, {}, 'none', {}) +call hi('goTypeName', s:cdBlueGreen, {}, 'none', {}) +call hi('goVarAssign', s:cdLightBlue, {}, 'none', {}) +call hi('goVarDefs', s:cdLightBlue, {}, 'none', {}) +call hi('goReceiver', s:cdFront, {}, 'none', {}) +call hi('goReceiverType', s:cdFront, {}, 'none', {}) +call hi('goFunctionCall', s:cdYellow, {}, 'none', {}) +call hi('goMethodCall', s:cdYellow, {}, 'none', {}) +call hi('goSingleDecl', s:cdLightBlue, {}, 'none', {}) + +" Python: +call hi('pythonStatement', s:cdBlue, {}, 'none', {}) +call hi('pythonOperator', s:cdBlue, {}, 'none', {}) +call hi('pythonException', s:cdPink, {}, 'none', {}) +call hi('pythonExClass', s:cdBlueGreen, {}, 'none', {}) +call hi('pythonBuiltinObj', s:cdLightBlue, {}, 'none', {}) +call hi('pythonBuiltinType', s:cdBlueGreen, {}, 'none', {}) +call hi('pythonBoolean', s:cdBlue, {}, 'none', {}) +call hi('pythonNone', s:cdBlue, {}, 'none', {}) +call hi('pythonTodo', s:cdBlue, {}, 'none', {}) +call hi('pythonClassVar', s:cdBlue, {}, 'none', {}) +call hi('pythonClassDef', s:cdBlueGreen, {}, 'none', {}) + +" TeX: +call hi('texStatement', s:cdBlue, {}, 'none', {}) +call hi('texBeginEnd', s:cdYellow, {}, 'none', {}) +call hi('texBeginEndName', s:cdLightBlue, {}, 'none', {}) +call hi('texOption', s:cdLightBlue, {}, 'none', {}) +call hi('texBeginEndModifier', s:cdLightBlue, {}, 'none', {}) +call hi('texDocType', s:cdPink, {}, 'none', {}) +call hi('texDocTypeArgs', s:cdLightBlue, {}, 'none', {}) + +" Git: +call hi('gitcommitHeader', s:cdGray, {}, 'none', {}) +call hi('gitcommitOnBranch', s:cdGray, {}, 'none', {}) +call hi('gitcommitBranch', s:cdPink, {}, 'none', {}) +call hi('gitcommitComment', s:cdGray, {}, 'none', {}) +call hi('gitcommitSelectedType', s:cdGreen, {}, 'none', {}) +call hi('gitcommitSelectedFile', s:cdGreen, {}, 'none', {}) +call hi('gitcommitDiscardedType', s:cdRed, {}, 'none', {}) +call hi('gitcommitDiscardedFile', s:cdRed, {}, 'none', {}) +call hi('gitcommitOverflow', s:cdRed, {}, 'none', {}) +call hi('gitcommitSummary', s:cdPink, {}, 'none', {}) +call hi('gitcommitBlank', s:cdPink, {}, 'none', {}) + +" Lua: +call hi('luaFuncCall', s:cdYellow, {}, 'none', {}) +call hi('luaFuncArgName', s:cdLightBlue, {}, 'none', {}) +call hi('luaFuncKeyword', s:cdPink, {}, 'none', {}) +call hi('luaLocal', s:cdPink, {}, 'none', {}) +call hi('luaBuiltIn', s:cdBlue, {}, 'none', {}) + +" SH: +call hi('shDeref', s:cdLightBlue, {}, 'none', {}) +call hi('shVariable', s:cdLightBlue, {}, 'none', {}) + +" SQL: +call hi('sqlKeyword', s:cdPink, {}, 'none', {}) +call hi('sqlFunction', s:cdYellowOrange, {}, 'none', {}) +call hi('sqlOperator', s:cdPink, {}, 'none', {}) + +" YAML: +call hi('yamlKey', s:cdBlue, {}, 'none', {}) +call hi('yamlConstant', s:cdBlue, {}, 'none', {}) + diff --git a/gvimrc b/gvimrc index 73ee178..d98fefa 100644 --- a/gvimrc +++ b/gvimrc @@ -1,6 +1,5 @@ hi Comment gui=italic cterm=italic hi htmlArg gui=italic cterm=italic -colorscheme fruity -set guifont=Martian\ Mono:h13 +set guifont=Hack:h14 set lsp=1 au! BufWritePost .gvimrc so % diff --git a/vimrc b/vimrc index 3c614f7..8d00f6d 100644 --- a/vimrc +++ b/vimrc @@ -1,13 +1,9 @@ call plug#begin('~/.vim/plugged') Plug 'tpope/vim-commentary' - Plug 'tpope/vim-dispatch' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' - Plug 'antoinemadec/coc-fzf' Plug 'neoclide/coc.nvim', {'branch': 'master'} - Plug 'yggdroot/indentline' " visualize indentation levels Plug 'vimwiki/vimwiki' - Plug 'mileszs/ack.vim' Plug 'tpope/vim-fugitive' Plug 'gruvbox-community/gruvbox' call plug#end() @@ -18,6 +14,7 @@ vmap >gv set backspace=indent,eol,start set cursorline +set termguicolors set expandtab set guioptions-=a set ignorecase " ignore the case @@ -82,6 +79,8 @@ nmap gy (coc-type-definition) nmap gr (coc-references)) nmap ev :vsplit $MYVIMRC nmap d :Dispatch make test +" nmap dt :call append('.', strftime('%c')) +nmap dt i=strftime('%c') " Keybindings { " Save file @@ -187,10 +186,11 @@ set mouse=a function! ChangeBackground() if system("defaults read -g AppleInterfaceStyle") =~ '^Dark' set background=dark " for the dark version of the theme + colorscheme gruvbox else set background=light " for the light version of the theme + colorscheme lucius endif - colorscheme gruvbox try execute "AirlineRefresh"