" Based on the base-16 template let s:enigma = {} let s:enigma.smoke = 235 let s:enigma.aurora = 67 let s:enigma.ash = 245 let s:enigma.coral = 174 let s:enigma.sun = 138 let s:enigma.purple = 140 let s:enigma.sea = 25 let s:enigma.ocean = 24 let s:enigma.moss = 66 let s:enigma.adobe = 59 let s:enigma.mist = 67 let s:enigma.eclipse = 234 let s:enigma.white = 250 let s:enigma.gold = 226 let s:enigma.orange = 180 "145 let s:enigma.lacquer = 232 let s:enigma.lava = 167 let s:enigma.dusk = 239 " Theme setup 31 hi clear syntax reset let g:colors_name = "enigma" " highlighting function fun HL(group, ctermfg, ctermbg, attr) if a:ctermfg != "" exec "hi " . a:group . " ctermfg=" . s:enigma[a:ctermfg] endif if a:ctermbg != "" exec "hi " . a:group . " ctermbg=" . s:enigma[a:ctermbg] endif if a:attr != "" exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr endif endfun " Vim editor colors call HL("Bold", "", "", "bold") call HL("Debug", "", "", "") call HL("Directory", "ash", "", "") call HL("ErrorMsg", "", "", "") call HL("Exception", "", "", "") call HL("FoldColumn", "", "", "") call HL("Folded", "", "", "") call HL("IncSearch", "", "sea", "none") call HL("Italic", "", "", "none") call HL("Macro", "", "", "") call HL("MatchParen", "gold", "smoke", "") call HL("ModeMsg", "", "", "") call HL("MoreMsg", "", "", "") call HL("Question", "", "", "") call HL("Search", "", "", "") call HL("SpecialKey", "", "", "") call HL("TooLong", "", "", "") call HL("Underlined", "", "", "") call HL("Visual", "white", "adobe", "") call HL("VisualNOS", "sea", "", "") call HL("WarningMsg", "", "", "") call HL("WildMenu", "", "", "") call HL("Title", "", "", "none") call HL("Conceal", "", "", "") call HL("Cursor", "", "", "") call HL("NonText", "", "", "") call HL("Normal", "ash", "smoke", "") call HL("LineNr", "ash", "", "") call HL("SignColumn", "", "", "") call HL("SpecialKey", "", "", "") call HL("StatusLine", "ash", "smoke", "none") call HL("StatusLineNC", "ash", "smoke", "none") call HL("VertSplit", "", "", "none") call HL("ColorColumn", "", "", "none") call HL("CursorColumn", "", "", "none") call HL("CursorLine", "", "lacquer", "none") call HL("CursorLineNr", "gold", "", "") call HL("PMenu", "mist", "ocean", "none") call HL("PMenuSel", "", "", "") call HL("TabLine", "", "", "none") call HL("TabLineFill", "", "", "none") call HL("TabLineSel", "", "", "none") " Standard syntax highlighting call HL("Boolean", "lava", "", "") call HL("Character", "", "", "") call HL("Comment", "dusk", "", "") call HL("Conditional", "ash", "", "") call HL("Constant", "", "", "") call HL("Define", "", "", "none") call HL("Delimiter", "", "", "") call HL("Float", "", "", "") call HL("Function", "", "", "") call HL("Identifier", "ash", "", "none") call HL("Include", "", "", "") call HL("Keyword", "purple", "", "") call HL("Label", "", "", "") call HL("Number", "sun", "", "") call HL("Operator", "lava", "", "none") call HL("PreProc", "", "", "") call HL("Repeat", "coral", "", "") call HL("Special", "purple", "", "") call HL("SpecialChar", "", "", "") call HL("Statement", "", "", "") call HL("StorageClass", "moss", "", "") call HL("String", "mist", "", "") call HL("Structure", "", "", "") call HL("Tag", "", "", "") call HL("Todo", "", "", "") call HL("Type", "", "", "none") call HL("Typedef", "", "", "") " C highlighting call HL("cOperator", "", "", "") call HL("cPreCondit", "", "", "") " Diff highlighting call HL("DiffAdd", "", "", "") call HL("DiffChange", "", "", "") call HL("DiffDelete", "", "", "") call HL("DiffText", "", "", "") call HL("DiffAdded", "", "", "") call HL("DiffFile", "", "", "") call HL("DiffNewFile", "", "", "") call HL("DiffLine", "", "", "") call HL("DiffRemoved", "", "", "") " Git highlighting call HL("gitCommitOverflow", "", "", "") call HL("gitCommitSummary", "", "", "") " GitGutter highlighting call HL("GitGutterAdd", "", "smoke", "") call HL("GitGutterChange", "", "smoke", "") call HL("GitGutterDelete", "", "smoke", "") call HL("GitGutterChangeDelete", "", "smoke", "") " HTML highlighting call HL("htmlBold", "", "", "") call HL("htmlItalic", "", "", "") call HL("htmlEndTag", "", "", "") call HL("htmlTag", "", "", "") call HL("htmlTagName", "", "", "") " JavaScript highlighting call HL("javaScript", "", "", "") call HL("javaScriptBraces", "", "", "") call HL("javaScriptNumber", "", "", "") " Markdown highlighting call HL("markdownCode", "", "", "") call HL("markdownError", "", "", "") call HL("markdownCodeBlock", "", "", "") call HL("markdownHeadingDelimiter", "", "", "") " NERDTree highlighting call HL("NERDTreeDirSl", "", "", "") call HL("NERDTreeExecFile", "", "", "") " Python highlighting call HL("pythonOperator", "", "", "") call HL("pythonRepeat", "", "", "") " Ruby highlighting call HL("rubyAttribute", "", "", "") call HL("rubyConstant", "", "", "") call HL("rubyInterpolation", "", "", "") call HL("rubyInterpolationDelimiter", "", "", "") call HL("rubyRegexp", "", "", "") call HL("rubySymbol", "", "", "") call HL("rubyStringDelimiter", "", "", "") " SASS highlighting call HL("sassidChar", "", "", "") call HL("sassClassChar", "", "", "") call HL("sassInclude", "", "", "") call HL("sassMixing", "coral", "", "") call HL("sassMixinName", "", "", "") " CSS highlighting call HL("cssTagName", "aurora", "", "") " Spelling highlighting call HL("SpellBad", "white", "eclipse", "") call HL("SpellLocal", "white", "eclipse", "") call HL("SpellCap", "white", "eclipse", "") call HL("SpellRare", "white", "eclipse", "") " Custom highlighting " -------------------------------------- " --------- javascript ---------- " -------------------------------------- call HL("jsObjectKey", "sun", "", "") call HL("jsFuncAssignIdent", "", "", "") call HL("jsFuncAssignObjChain", "", "", "") call HL("jsFuncBlock", "", "", "") call HL("jsFuncCall", "", "", "") call HL("jsAssignExpIdent", "", "", "") call HL("jsAssignmentExpr", "", "", "") call HL("jsBraces", "mist", "", "") call HL("jsParens", "", "", "") call HL("jsParen", "moss", "", "") call HL("jsBrackets", "", "", "") call HL("jsBracket", "coral", "", "") call HL("jsFuncBraces", "", "", "") call HL("jsFunction", "moss", "", "") call HL("jsFuncArgs", "orange", "", "") call HL("jsReturn", "coral", "", "") call HL("jsNoise", "", "", "") call HL("jsConditional", "", "", "") call HL("jsTHLs", "", "", "") call HL("jsFuncName", "aurora", "", "") call HL("jsBlock", "", "", "") call HL("jsUndefined", "purple", "", "") call HL("jsNull", "coral", "", "") call HL("jsException", "orange", "", "") call HL("jsTernaryIfOperator", "orange", "", "") call HL("vimLet", "coral", "", "") " -------------------------------------- " ------------ go --------------- " -------------------------------------- call HL("goMethod", "moss", "", "") " Remove functions delf HL " Remove color variables unlet s:enigma