Colorschemes galore

This commit is contained in:
Sonny Bakker 2017-07-04 19:47:22 +02:00
parent 1e862d8c1e
commit 1cf33dd220
8 changed files with 3552 additions and 98 deletions

View file

@ -46,11 +46,14 @@ set backspace=2
set t_ut= set t_ut=
" 256 colors support, set it before colorscheme! " 256 colors support, set it before colorscheme!
set t_Co=256 "set t_Co=256
" Light colorscheme by default " Light colorscheme by default
colorscheme greygull colorscheme greygull
" Terminal colors
set termguicolors
"Automatically source vimrc on save. "Automatically source vimrc on save.
autocmd! bufwritepost $MYVIMRC source $MYVIMRC autocmd! bufwritepost $MYVIMRC source $MYVIMRC
@ -83,7 +86,7 @@ set pastetoggle=<F2>
"Default Colors for CursorLine "Default Colors for CursorLine
set cursorline set cursorline
highlight CursorLine cterm=NONE highlight CursorLine cterm=none
"Activate statusbar "Activate statusbar
set laststatus=2 set laststatus=2

430
vim/colors/basic-dark.vim Normal file
View file

@ -0,0 +1,430 @@
" A simple dark vim colorscheme.
" Maintainer: zcodes <zcodes@qq.com>
" Version: 1.0
"
" The theme file original copyed from Tomorrow theme.
" See https://github.com/chriskempson/vim-tomorrow-theme.git for it.
" And hex color conversion functions borrowed from the theme "Desert256".
"
" Most of the colors based on Google Material Design.
" Default GUI colors
let s:foreground = "cfd8dc"
let s:background = "263238"
let s:selection = "546e7a"
let s:line = "37474f"
let s:comment = "78909c"
let s:red = "ee877d"
let s:orange = "ffb74d"
let s:yellow = "fff176"
let s:green = "88b888"
let s:aqua = "00b8d4"
let s:blue = "6699cc"
let s:purple = "ce93d8"
let s:window = "37474f"
let s:grey = "b0bec5"
if !has("gui_running")
let s:background = "202020"
let s:line = "303030"
endif
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "basic-dark"
if has("gui_running") || &t_Co == 88 || &t_Co == 256
" Returns an approximate grey index for the given grey level
fun <SID>grey_number(x)
if &t_Co == 88
if a:x < 23
return 0
elseif a:x < 69
return 1
elseif a:x < 103
return 2
elseif a:x < 127
return 3
elseif a:x < 150
return 4
elseif a:x < 173
return 5
elseif a:x < 196
return 6
elseif a:x < 219
return 7
elseif a:x < 243
return 8
else
return 9
endif
else
if a:x < 14
return 0
else
let l:n = (a:x - 8) / 10
let l:m = (a:x - 8) % 10
if l:m < 5
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" Returns the actual grey level represented by the grey index
fun <SID>grey_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 46
elseif a:n == 2
return 92
elseif a:n == 3
return 115
elseif a:n == 4
return 139
elseif a:n == 5
return 162
elseif a:n == 6
return 185
elseif a:n == 7
return 208
elseif a:n == 8
return 231
else
return 255
endif
else
if a:n == 0
return 0
else
return 8 + (a:n * 10)
endif
endif
endfun
" Returns the palette index for the given grey index
fun <SID>grey_colour(n)
if &t_Co == 88
if a:n == 0
return 16
elseif a:n == 9
return 79
else
return 79 + a:n
endif
else
if a:n == 0
return 16
elseif a:n == 25
return 231
else
return 231 + a:n
endif
endif
endfun
" Returns an approximate colour index for the given colour level
fun <SID>rgb_number(x)
if &t_Co == 88
if a:x < 69
return 0
elseif a:x < 172
return 1
elseif a:x < 230
return 2
else
return 3
endif
else
if a:x < 75
return 0
else
let l:n = (a:x - 55) / 40
let l:m = (a:x - 55) % 40
if l:m < 20
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" Returns the actual colour level for the given colour index
fun <SID>rgb_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 139
elseif a:n == 2
return 205
else
return 255
endif
else
if a:n == 0
return 0
else
return 55 + (a:n * 40)
endif
endif
endfun
" Returns the palette index for the given R/G/B colour indices
fun <SID>rgb_colour(x, y, z)
if &t_Co == 88
return 16 + (a:x * 16) + (a:y * 4) + a:z
else
return 16 + (a:x * 36) + (a:y * 6) + a:z
endif
endfun
" Returns the palette index to approximate the given R/G/B colour levels
fun <SID>colour(r, g, b)
" Get the closest grey
let l:gx = <SID>grey_number(a:r)
let l:gy = <SID>grey_number(a:g)
let l:gz = <SID>grey_number(a:b)
" Get the closest colour
let l:x = <SID>rgb_number(a:r)
let l:y = <SID>rgb_number(a:g)
let l:z = <SID>rgb_number(a:b)
if l:gx == l:gy && l:gy == l:gz
" There are two possibilities
let l:dgr = <SID>grey_level(l:gx) - a:r
let l:dgg = <SID>grey_level(l:gy) - a:g
let l:dgb = <SID>grey_level(l:gz) - a:b
let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
let l:dr = <SID>rgb_level(l:gx) - a:r
let l:dg = <SID>rgb_level(l:gy) - a:g
let l:db = <SID>rgb_level(l:gz) - a:b
let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
if l:dgrey < l:drgb
" Use the grey
return <SID>grey_colour(l:gx)
else
" Use the colour
return <SID>rgb_colour(l:x, l:y, l:z)
endif
else
" Only one possibility
return <SID>rgb_colour(l:x, l:y, l:z)
endif
endfun
" Returns the palette index to approximate the 'rrggbb' hex string
fun <SID>rgb(rgb)
let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
return <SID>colour(l:r, l:g, l:b)
endfun
" Sets the highlighting for the given group
fun <SID>X(group, fg, bg, attr)
if a:fg != ""
exec "hi " . a:group . " guifg=#" . a:fg . " ctermfg=" . <SID>rgb(a:fg)
endif
if a:bg != ""
exec "hi " . a:group . " guibg=#" . a:bg . " ctermbg=" . <SID>rgb(a:bg)
endif
if a:attr != ""
exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr
endif
endfun
" Vim Highlighting
call <SID>X("Normal", s:foreground, s:background, "none")
call <SID>X("LineNr", s:grey, "", "none")
call <SID>X("NonText", s:foreground, "", "none")
call <SID>X("SpecialKey", s:blue, "", "none")
call <SID>X("Search", s:foreground, s:selection, "none")
call <SID>X("TabLine", s:foreground, s:background, "reverse")
call <SID>X("StatusLine", s:window, s:foreground, "reverse")
call <SID>X("StatusLineNC", s:window, s:comment, "reverse")
call <SID>X("VertSplit", s:window, s:window, "none")
call <SID>X("Visual", "", s:selection, "none")
call <SID>X("Directory", s:blue, "", "none")
call <SID>X("ModeMsg", s:green, "", "none")
call <SID>X("MoreMsg", s:green, "", "none")
call <SID>X("Question", s:green, "", "none")
call <SID>X("WarningMsg", s:red, "", "none")
call <SID>X("MatchParen", "", s:selection, "none")
call <SID>X("Folded", s:comment, s:background, "none")
call <SID>X("FoldColumn", s:comment, s:background, "none")
if version >= 700
call <SID>X("CursorLine", "", s:line, "none")
call <SID>X("CursorColumn", "", s:line, "none")
call <SID>X("PMenu", s:foreground, s:selection, "none")
call <SID>X("PMenuSel", s:foreground, s:selection, "reverse")
call <SID>X("SignColumn", "", s:background, "none")
end
if version >= 703
call <SID>X("ColorColumn", "", s:line, "none")
end
" Standard Highlighting
call <SID>X("Comment", s:comment, "", "none")
call <SID>X("Todo", s:red, s:background, "underline")
call <SID>X("Title", s:comment, "", "none")
call <SID>X("Cursor", "", s:foreground, "none")
call <SID>X("Identifier", s:grey, "", "none")
call <SID>X("Statement", s:yellow, "", "none")
call <SID>X("Conditional", s:foreground, "", "none")
call <SID>X("Repeat", s:yellow, "", "none")
call <SID>X("Structure", s:purple, "", "none")
call <SID>X("Function", s:aqua, "", "none")
call <SID>X("Constant", s:foreground, "", "none")
call <SID>X("String", s:green, "", "none")
call <SID>X("Special", s:foreground, "", "none")
call <SID>X("PreProc", s:aqua, "", "none")
call <SID>X("Operator", s:foreground, "", "none")
call <SID>X("Type", s:blue, "", "none")
call <SID>X("Define", s:purple, "", "none")
call <SID>X("Include", s:blue, "", "none")
call <SID>X("Number", s:orange, "", "none")
" Vim Highlighting
call <SID>X("vimCommand", s:blue, "", "")
" C Highlighting
call <SID>X("cType", s:blue, "", "")
call <SID>X("cStorageClass", s:blue, "", "")
call <SID>X("cConditional", s:red, "", "")
call <SID>X("cRepeat", s:red, "", "")
" PHP Highlighting
call <SID>X("phpVarSelector", s:red, "", "")
call <SID>X("phpIdentifier", s:red, "", "")
call <SID>X("phpFCKeyword", s:purple, "", "")
call <SID>X("phpSCKeyword", s:purple, "", "")
call <SID>X("phpKeyword", s:purple, "", "")
call <SID>X("phpType", s:purple, "", "")
call <SID>X("phpRepeat", s:red, "", "")
call <SID>X("phpDefine", s:purple, "", "")
call <SID>X("phpDocTags", s:aqua, "", "")
call <SID>X("phpDocParam", s:green, "", "")
call <SID>X("phpFunction", s:blue, "", "")
call <SID>X("phpFunctions", s:blue, "", "")
call <SID>X("phpClass", s:blue, "", "")
call <SID>X("phpClasses", s:orange, "", "")
call <SID>X("phpMagicConstants", s:yellow, "", "")
call <SID>X("phpMemberSelector", s:grey, "", "")
" Ruby Highlighting
call <SID>X("rubySymbol", s:green, "", "")
call <SID>X("rubyConstant", s:aqua, "", "")
call <SID>X("rubyAttribute", s:blue, "", "")
call <SID>X("rubyInclude", s:blue, "", "")
call <SID>X("rubyLocalVariableOrMethod", s:orange, "", "")
call <SID>X("rubyCurlyBlock", s:orange, "", "")
call <SID>X("rubyStringDelimiter", s:green, "", "")
call <SID>X("rubyInterpolationDelimiter", s:orange, "", "")
call <SID>X("rubyConditional", s:purple, "", "")
call <SID>X("rubyRepeat", s:purple, "", "")
call <SID>X("rubyIdentifier", s:orange, "", "")
" Python Highlighting
call <SID>X("pythonInclude", s:red, "", "")
call <SID>X("pythonStatement", s:blue, "", "")
call <SID>X("pythonConditional", s:purple, "", "")
call <SID>X("pythonRepeat", s:purple, "", "")
call <SID>X("pythonException", s:purple, "", "")
call <SID>X("pythonFunction", s:aqua, "", "")
call <SID>X("pythonSelf", s:grey, "", "")
call <SID>X("pythonOperator", s:purple, "", "")
call <SID>X("pythonExtraOperator", s:purple, "", "")
call <SID>X("pythonClass", s:aqua, "", "")
call <SID>X("pythonDecorator", s:orange, "", "")
call <SID>X("pythonDocstring", s:comment, "", "")
call <SID>X("pythonBuiltinObj", s:yellow, "", "")
call <SID>X("pythonBuiltinType", s:orange, "", "")
call <SID>X("pythonNumber", s:orange, "", "")
" Go Highlighting
call <SID>X("goStatement", s:purple, "", "")
call <SID>X("goConditional", s:purple, "", "")
call <SID>X("goRepeat", s:purple, "", "")
call <SID>X("goException", s:purple, "", "")
call <SID>X("goDeclaration", s:blue, "", "")
call <SID>X("goConstants", s:yellow, "", "")
call <SID>X("goBuiltins", s:orange, "", "")
" CoffeeScript Highlighting
call <SID>X("coffeeKeyword", s:purple, "", "")
call <SID>X("coffeeConditional", s:purple, "", "")
call <SID>X("coffeeSpecialVar", s:orange, "", "")
call <SID>X("coffeeSpecialIdent", s:red, "", "")
call <SID>X("coffeeObject", s:orange, "", "")
call <SID>X("coffeeObjAssign", s:blue, "", "")
call <SID>X("coffeeArrow", s:purple, "", "")
call <SID>X("coffeeBoolean", s:foreground, "", "")
call <SID>X("coffeeGlobal", s:foreground, "", "")
call <SID>X("coffeeModuleKeyword", s:aqua, "", "")
call <SID>X("coffeeFuncCall", s:blue, "", "")
" JavaScript Highlighting
call <SID>X("javaScriptBraces", s:foreground, "", "")
call <SID>X("javaScriptFunction", s:purple, "", "")
call <SID>X("javaScriptConditional", s:purple, "", "")
call <SID>X("javaScriptRepeat", s:purple, "", "")
call <SID>X("javaScriptNumber", s:orange, "", "")
call <SID>X("javaScriptMember", s:orange, "", "")
" HTML Highlighting
call <SID>X("htmlTag", s:blue, "", "")
call <SID>X("htmlTagName", s:blue, "", "")
call <SID>X("htmlArg", s:aqua, "", "")
call <SID>X("htmlScriptTag", s:blue, "", "")
" Blade Tempalte Highlight
call <SID>X("bladeDelimiter", s:orange, "", "")
call <SID>X("bladeKeyword", s:blue, "", "")
" Diff Highlighting
call <SID>X("diffAdded", "", s:green, "none")
call <SID>X("diffRemoved", "", s:red, "none")
call <SID>X("diffChanged", "", s:yellow, "none")
call <SID>X("DiffAdd", s:window, s:green, "none")
call <SID>X("DiffDelete", s:window, s:red, "none")
call <SID>X("DiffChange", s:window, s:yellow, "none")
call <SID>X("DiffText", s:background, s:yellow, "none")
call <SID>X("GitGutterAdd", s:green, "", "")
call <SID>X("GitGutterDelete", s:red, "", "")
call <SID>X("GitGutterChange", s:yellow, "", "")
call <SID>X("GitGutterChangeDelete", s:orange, "", "")
call <SID>X("VimwikiHeader1", s:red, "", "")
call <SID>X("VimwikiHeader2", s:green, "", "")
call <SID>X("VimwikiHeader3", s:blue, "", "")
call <SID>X("VimwikiHeader4", s:aqua, "", "")
call <SID>X("VimwikiHeader5", s:orange, "", "")
call <SID>X("VimwikiHeader6", s:yellow, "", "")
" YAML
call <SID>X("yamlBlockMappingKey", s:blue, "", "")
" Delete Functions
delf <SID>X
delf <SID>rgb
delf <SID>colour
delf <SID>rgb_colour
delf <SID>rgb_level
delf <SID>rgb_number
delf <SID>grey_colour
delf <SID>grey_level
delf <SID>grey_number
endif

394
vim/colors/basic-light.vim Normal file
View file

@ -0,0 +1,394 @@
" basic-light -- a simple light vim theme
"
" Maintainer: zcodes <zcodes@qq.com>
" Version: 1.0
"
" the theme file original copyed from Tomorrow theme.
" see: https://github.com/chriskempson/vim-tomorrow-theme.git for it.
"
" the colors choose from Google Material Desgin and some from Sublime Text
" LAZY theme.
" default gui colors
let s:foreground = "263238"
let s:background = "fbfbfb"
let s:selection = "e3fc8d"
let s:line = "d5d5d5"
let s:comment = "7c7c7c"
let s:red = "d62a28"
let s:orange = "ff7800"
let s:yellow = "eab700"
let s:green = "409b1c"
let s:aqua = "00897b"
let s:blue = "3b5bb5"
let s:purple = "673ab7"
let s:window = "cfd8dc"
set background=light
hi clear
syntax reset
let g:colors_name = "basic-light"
if has("gui_running") || &t_Co == 88 || &t_Co == 256
" Returns an approximate grey index for the given grey level
fun <SID>grey_number(x)
if &t_Co == 88
if a:x < 23
return 0
elseif a:x < 69
return 1
elseif a:x < 103
return 2
elseif a:x < 127
return 3
elseif a:x < 150
return 4
elseif a:x < 173
return 5
elseif a:x < 196
return 6
elseif a:x < 219
return 7
elseif a:x < 243
return 8
else
return 9
endif
else
if a:x < 14
return 0
else
let l:n = (a:x - 8) / 10
let l:m = (a:x - 8) % 10
if l:m < 5
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" Returns the actual grey level represented by the grey index
fun <SID>grey_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 46
elseif a:n == 2
return 92
elseif a:n == 3
return 115
elseif a:n == 4
return 139
elseif a:n == 5
return 162
elseif a:n == 6
return 185
elseif a:n == 7
return 208
elseif a:n == 8
return 231
else
return 255
endif
else
if a:n == 0
return 0
else
return 8 + (a:n * 10)
endif
endif
endfun
" Returns the palette index for the given grey index
fun <SID>grey_colour(n)
if &t_Co == 88
if a:n == 0
return 16
elseif a:n == 9
return 79
else
return 79 + a:n
endif
else
if a:n == 0
return 16
elseif a:n == 25
return 231
else
return 231 + a:n
endif
endif
endfun
" Returns an approximate colour index for the given colour level
fun <SID>rgb_number(x)
if &t_Co == 88
if a:x < 69
return 0
elseif a:x < 172
return 1
elseif a:x < 230
return 2
else
return 3
endif
else
if a:x < 75
return 0
else
let l:n = (a:x - 55) / 40
let l:m = (a:x - 55) % 40
if l:m < 20
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" Returns the actual colour level for the given colour index
fun <SID>rgb_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 139
elseif a:n == 2
return 205
else
return 255
endif
else
if a:n == 0
return 0
else
return 55 + (a:n * 40)
endif
endif
endfun
" Returns the palette index for the given R/G/B colour indices
fun <SID>rgb_colour(x, y, z)
if &t_Co == 88
return 16 + (a:x * 16) + (a:y * 4) + a:z
else
return 16 + (a:x * 36) + (a:y * 6) + a:z
endif
endfun
" Returns the palette index to approximate the given R/G/B colour levels
fun <SID>colour(r, g, b)
" Get the closest grey
let l:gx = <SID>grey_number(a:r)
let l:gy = <SID>grey_number(a:g)
let l:gz = <SID>grey_number(a:b)
" Get the closest colour
let l:x = <SID>rgb_number(a:r)
let l:y = <SID>rgb_number(a:g)
let l:z = <SID>rgb_number(a:b)
if l:gx == l:gy && l:gy == l:gz
" There are two possibilities
let l:dgr = <SID>grey_level(l:gx) - a:r
let l:dgg = <SID>grey_level(l:gy) - a:g
let l:dgb = <SID>grey_level(l:gz) - a:b
let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
let l:dr = <SID>rgb_level(l:gx) - a:r
let l:dg = <SID>rgb_level(l:gy) - a:g
let l:db = <SID>rgb_level(l:gz) - a:b
let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
if l:dgrey < l:drgb
" Use the grey
return <SID>grey_colour(l:gx)
else
" Use the colour
return <SID>rgb_colour(l:x, l:y, l:z)
endif
else
" Only one possibility
return <SID>rgb_colour(l:x, l:y, l:z)
endif
endfun
" Returns the palette index to approximate the 'rrggbb' hex string
fun <SID>rgb(rgb)
let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
return <SID>colour(l:r, l:g, l:b)
endfun
" Sets the highlighting for the given group
fun <SID>X(group, fg, bg, attr)
if a:fg != ""
exec "hi " . a:group . " guifg=#" . a:fg . " ctermfg=" . <SID>rgb(a:fg)
endif
if a:bg != ""
exec "hi " . a:group . " guibg=#" . a:bg . " ctermbg=" . <SID>rgb(a:bg)
endif
if a:attr != ""
exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr
endif
endfun
" Vim Highlighting
call <SID>X("Normal", s:foreground, s:background, "none")
call <SID>X("LineNr", s:comment, "", "none")
call <SID>X("NonText", s:foreground, "", "none")
call <SID>X("SpecialKey", s:blue, "", "none")
call <SID>X("Search", s:foreground, s:selection, "none")
call <SID>X("TabLine", s:foreground, s:background, "reverse")
call <SID>X("StatusLine", s:window, s:foreground, "reverse")
call <SID>X("StatusLineNC", s:window, s:comment, "reverse")
call <SID>X("VertSplit", s:window, s:window, "none")
call <SID>X("Visual", "", s:selection, "none")
call <SID>X("Directory", s:blue, "", "none")
call <SID>X("ModeMsg", s:green, "", "none")
call <SID>X("MoreMsg", s:green, "", "none")
call <SID>X("Question", s:green, "", "none")
call <SID>X("WarningMsg", s:red, "", "none")
call <SID>X("MatchParen", "", s:selection, "none")
call <SID>X("Folded", s:comment, s:background, "none")
call <SID>X("FoldColumn", s:comment, s:background, "none")
if version >= 700
call <SID>X("CursorLine", "", s:line, "none")
call <SID>X("CursorColumn", "", s:line, "none")
call <SID>X("PMenu", s:foreground, s:selection, "none")
call <SID>X("PMenuSel", s:foreground, s:selection, "reverse")
call <SID>X("SignColumn", "", s:background, "none")
end
if version >= 703
call <SID>X("ColorColumn", "", s:line, "none")
end
" Standard Highlighting
call <SID>X("Comment", s:comment, "", "none")
call <SID>X("Todo", s:red, s:background, "none")
call <SID>X("Title", s:comment, "", "none")
call <SID>X("Cursor", "", s:foreground, "none")
call <SID>X("Identifier", s:aqua, "", "none")
call <SID>X("Statement", s:foreground, "", "none")
call <SID>X("Conditional", s:foreground, "", "none")
call <SID>X("Repeat", s:foreground, "", "none")
call <SID>X("Structure", s:purple, "", "none")
call <SID>X("Function", s:blue, "", "none")
call <SID>X("Constant", s:foreground, "", "none")
call <SID>X("String", s:green, "", "none")
call <SID>X("Special", s:foreground, "", "none")
call <SID>X("PreProc", s:aqua, "", "none")
call <SID>X("Operator", s:foreground, "", "none")
call <SID>X("Type", s:blue, "", "none")
call <SID>X("Define", s:purple, "", "none")
call <SID>X("Include", s:blue, "", "none")
call <SID>X("Number", s:orange, "", "none")
" Vim Highlighting
call <SID>X("vimCommand", s:blue, "", "none")
" C Highlighting
call <SID>X("cType", s:blue, "", "")
call <SID>X("cStorageClass", s:blue, "", "")
call <SID>X("cConditional", s:red, "", "")
call <SID>X("cRepeat", s:red, "", "")
" PHP Highlighting
call <SID>X("phpVarSelector", s:aqua, "", "")
call <SID>X("phpKeyword", s:blue, "", "")
call <SID>X("phpRepeat", s:red, "", "")
call <SID>X("phpConditional", s:blue, "", "")
call <SID>X("phpStatement", s:blue, "", "")
call <SID>X("phpMemberSelector", s:foreground, "", "")
" Ruby Highlighting
call <SID>X("rubySymbol", s:green, "", "")
call <SID>X("rubyConstant", s:aqua, "", "")
call <SID>X("rubyAttribute", s:blue, "", "")
call <SID>X("rubyInclude", s:blue, "", "")
call <SID>X("rubyLocalVariableOrMethod", s:orange, "", "")
call <SID>X("rubyCurlyBlock", s:orange, "", "")
call <SID>X("rubyStringDelimiter", s:green, "", "")
call <SID>X("rubyInterpolationDelimiter", s:orange, "", "")
call <SID>X("rubyConditional", s:purple, "", "")
call <SID>X("rubyRepeat", s:purple, "", "")
call <SID>X("rubyIdentifier", s:orange, "", "")
" Python Highlighting
call <SID>X("pythonInclude", s:red, "", "")
call <SID>X("pythonStatement", s:aqua, "", "")
call <SID>X("pythonConditional", s:blue, "", "")
call <SID>X("pythonRepeat", s:blue, "", "")
call <SID>X("pythonException", s:blue, "", "")
call <SID>X("pythonFunction", s:purple, "", "")
call <SID>X("pythonSelf", s:comment, "", "")
call <SID>X("pythonOperator", s:blue, "", "")
call <SID>X("pythonExtraOperator", s:blue, "", "")
call <SID>X("pythonClass", s:blue, "", "")
call <SID>X("pythonDecorator", s:yellow, "", "")
call <SID>X("pythonDocstring", s:comment, "", "")
call <SID>X("pythonBuiltinObj", s:red, "", "")
call <SID>X("pythonBuiltinType", s:orange, "", "")
call <SID>X("pythonNumber", s:orange, "", "")
" Go Highlighting
call <SID>X("goStatement", s:purple, "", "")
call <SID>X("goConditional", s:purple, "", "")
call <SID>X("goRepeat", s:purple, "", "")
call <SID>X("goException", s:purple, "", "")
call <SID>X("goDeclaration", s:blue, "", "")
call <SID>X("goConstants", s:yellow, "", "")
call <SID>X("goBuiltins", s:orange, "", "")
" CoffeeScript Highlighting
call <SID>X("coffeeKeyword", s:purple, "", "")
call <SID>X("coffeeConditional", s:purple, "", "")
" JavaScript Highlighting
call <SID>X("javaScriptBraces", s:foreground, "", "")
call <SID>X("javaScriptFunction", s:purple, "", "")
call <SID>X("javaScriptConditional", s:purple, "", "")
call <SID>X("javaScriptRepeat", s:purple, "", "")
call <SID>X("javaScriptNumber", s:orange, "", "")
call <SID>X("javaScriptMember", s:orange, "", "")
" HTML Highlighting
call <SID>X("htmlTag", s:blue, "", "")
call <SID>X("htmlTagName", s:blue, "", "")
call <SID>X("htmlArg", s:aqua, "", "")
call <SID>X("htmlScriptTag", s:blue, "", "")
" Diff Highlighting
call <SID>X("diffAdded", "", s:green, "none")
call <SID>X("diffRemoved", "", s:red, "none")
call <SID>X("diffChanged", "", s:yellow, "none")
call <SID>X("DiffAdd", s:window, s:green, "none")
call <SID>X("DiffDelete", s:window, s:red, "none")
call <SID>X("DiffChange", s:window, s:yellow, "none")
call <SID>X("DiffText", s:background, s:yellow, "none")
call <SID>X("GitGutterAdd", s:green, "", "")
call <SID>X("GitGutterDelete", s:red, "", "")
call <SID>X("GitGutterChange", s:yellow, "", "")
call <SID>X("GitGutterChangeDelete", s:orange, "", "")
" YAML
call <SID>X("yamlBlockMappingKey", s:blue, "", "")
" Delete Functions
delf <SID>X
delf <SID>rgb
delf <SID>colour
delf <SID>rgb_colour
delf <SID>rgb_level
delf <SID>rgb_number
delf <SID>grey_colour
delf <SID>grey_level
delf <SID>grey_number
endif

1220
vim/colors/deus.vim Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,96 +0,0 @@
" -----------------------------------------------------------------------------
" Vim color file
" Maintainer: Kai Wolf <mail@kai-wolf.me>
" Last Change: 2016 August
" License: Beer Ware
" -----------------------------------------------------------------------------
" Reset Highlighting
hi clear
if exists("syntax_on")
syntax reset
endif
" General settings
set background=dark
let g:colors_name="newproggie"
" Editor settings
hi Normal cterm=none ctermbg=0 ctermfg=7 gui=none guibg=#1E1E1E guifg=#B0B0B0
hi CursorLine cterm=bold ctermbg=0 ctermfg=15 gui=bold guibg=#1E1E1E guifg=#F7F7F7
hi Cursor cterm=none ctermbg=1 ctermfg=0 gui=none guibg=#A94744 guifg=#1E1E1E
hi LineNr cterm=none ctermbg=0 ctermfg=7 gui=none guibg=#1E1E1E guifg=#B0B0B0
hi CursorLineNR cterm=none ctermbg=1 ctermfg=0 gui=none guibg=#A94744 guifg=#1E1E1E
" Number column
hi CursorColumn cterm=none ctermbg=1 ctermfg=0 gui=none guibg=#A94744 guifg=#1E1E1E
hi FoldColumn cterm=none ctermbg=0 ctermfg=2 gui=none guibg=#1E1E1E guifg=#608B4E
hi Folded cterm=none ctermbg=0 ctermfg=2 gui=none guibg=#1E1E1E guifg=#608B4E
" Window / Tab delimiters
hi TabLine cterm=none ctermbg=0 ctermfg=3 gui=none guibg=#1E1E1E guifg=#D69831
hi TabLineFill cterm=none ctermbg=0 ctermfg=3 gui=none guibg=#1E1E1E guifg=#D69831
hi TabLineSel cterm=none ctermbg=0 ctermfg=3 gui=none guibg=#1E1E1E guifg=#D69831
hi OverLength cterm=none ctermbg=0 ctermfg=1 gui=none guibg=#1E1E1E guifg=#A94744
" File navigation / Searching
hi Directory cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi Search cterm=none ctermbg=6 ctermfg=15 gui=none guibg=#218693 guifg=#F7F7F7
hi IncSearch cterm=none ctermbg=3 ctermfg=8 gui=none guibg=#D69831 guifg=#3C3C3C
" Prompt / Status
hi StatusLine cterm=none ctermbg=8 ctermfg=15 gui=none guibg=#3C3C3C guifg=#F7F7F7
hi StatusLineNC cterm=none ctermbg=15 ctermfg=8 gui=none guibg=#F7F7F7 guifg=#3C3C3C
hi Title cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi ModeMsg cterm=bold ctermbg=0 ctermfg=10 gui=bold guibg=#1E1E1E guifg=#8FBF7F
" Visual aid
hi MatchParen cterm=bold ctermbg=0 ctermfg=15 gui=none guibg=#1E1E1E guifg=#F7F7F7
hi Visual cterm=none ctermbg=8 ctermfg=15 gui=none guibg=#3C3C3C guifg=#F7F7F7
hi NonText cterm=none ctermbg=0 ctermfg=0 gui=none guibg=#1E1E1E guifg=#1E1E1E
hi Error cterm=none ctermbg=1 ctermfg=7 gui=bold guibg=#1E1E1E guifg=#A94744
hi ErrorMsg cterm=none ctermbg=1 ctermfg=7 gui=bold guibg=#1E1E1E guifg=#A94744
hi Todo cterm=none ctermbg=1 ctermfg=3 gui=bold guibg=#1E1E1E guifg=#D69831
hi Repeat cterm=bold ctermbg=0 ctermfg=1 gui=bold guibg=#1E1E1E guifg=#A94744
" Completion menu
hi Pmenu cterm=none ctermbg=8 ctermfg=7 gui=none guibg=#3C3C3C guifg=#B0B0B0
hi PmenuSel cterm=none ctermbg=4 ctermfg=15 gui=none guibg=#569CD6 guifg=#F7F7F7
hi PmenuSbar cterm=none ctermbg=4 ctermfg=15 gui=none guibg=#569CD6 guifg=#F7F7F7
" Spelling
hi SpellBad cterm=underline ctermbg=0 ctermfg=9 gui=none guibg=#1E1E1E guifg=#E09690
hi SpellCap cterm=underline ctermbg=0 ctermfg=9 gui=none guibg=#1E1E1E guifg=#E09690
hi SpellRare cterm=underline ctermbg=0 ctermfg=9 gui=none guibg=#1E1E1E guifg=#E09690
hi SpellLocal cterm=underline ctermbg=0 ctermfg=9 gui=none guibg=#1E1E1E guifg=#E09690
" Diff
hi DiffAdd cterm=none ctermbg=2 ctermfg=10 gui=none guibg=#608B4E guifg=#B5F2A1
hi DiffChange cterm=none ctermbg=4 ctermfg=12 gui=none guibg=#569CD6 guifg=#CEEDFE
hi DiffDelete cterm=none ctermbg=1 ctermfg=9 gui=none guibg=#A94744 guifg=#FFBDB8
hi DiffText cterm=none ctermbg=3 ctermfg=11 gui=none guibg=#D69831 guifg=#FFD887
" General language constructs
hi Statement cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi Keyword cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi Comment cterm=none ctermbg=0 ctermfg=2 gui=italic guibg=#1E1E1E guifg=#608B4E
hi Special cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi Delimiter cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
" C syntax highlighting
hi PreProc cterm=none ctermbg=0 ctermfg=5 gui=none guibg=#1E1E1E guifg=#B06386
hi Include cterm=none ctermbg=0 ctermfg=5 gui=none guibg=#1E1E1E guifg=#B06386
hi Define cterm=none ctermbg=0 ctermfg=5 gui=none guibg=#1E1E1E guifg=#B06386
hi Macro cterm=none ctermbg=0 ctermfg=5 gui=none guibg=#1E1E1E guifg=#B06386
hi PreCondit cterm=none ctermbg=0 ctermfg=5 gui=none guibg=#1E1E1E guifg=#B06386
hi Type cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi String cterm=none ctermbg=0 ctermfg=3 gui=none guibg=#1E1E1E guifg=#D69831
hi Method cterm=none ctermbg=0 ctermfg=11 gui=none guibg=#1E1E1E guifg=#F8BC41
hi Function cterm=none ctermbg=0 ctermfg=11 gui=none guibg=#1E1E1E guifg=#F8BC41
hi Symbol cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi Structure cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi StorageClass cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi Typedef cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi Identifier cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi Constant cterm=none ctermbg=0 ctermfg=4 gui=none guibg=#1E1E1E guifg=#569CD6
hi Number cterm=none ctermbg=0 ctermfg=2 gui=none guibg=#1E1E1E guifg=#608B4E

833
vim/colors/one.vim Normal file
View file

@ -0,0 +1,833 @@
" Name: one vim colorscheme
" Author: Ramzi Akremi
" License: MIT
" Version: 1.1.1-pre
" Global setup =============================================================={{{
if exists("*<SID>X")
delf <SID>X
delf <SID>rgb
delf <SID>color
delf <SID>rgb_color
delf <SID>rgb_level
delf <SID>rgb_number
delf <SID>grey_color
delf <SID>grey_level
delf <SID>grey_number
endif
hi clear
syntax reset
if exists('g:colors_name')
unlet g:colors_name
endif
let g:colors_name = 'one'
if !exists('g:one_allow_italics')
let g:one_allow_italics = 0
endif
if has('gui_running') || &t_Co == 88 || &t_Co == 256
" functions
" returns an approximate grey index for the given grey level
" Utility functions -------------------------------------------------------{{{
fun <SID>grey_number(x)
if &t_Co == 88
if a:x < 23
return 0
elseif a:x < 69
return 1
elseif a:x < 103
return 2
elseif a:x < 127
return 3
elseif a:x < 150
return 4
elseif a:x < 173
return 5
elseif a:x < 196
return 6
elseif a:x < 219
return 7
elseif a:x < 243
return 8
else
return 9
endif
else
if a:x < 14
return 0
else
let l:n = (a:x - 8) / 10
let l:m = (a:x - 8) % 10
if l:m < 5
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" returns the actual grey level represented by the grey index
fun <SID>grey_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 46
elseif a:n == 2
return 92
elseif a:n == 3
return 115
elseif a:n == 4
return 139
elseif a:n == 5
return 162
elseif a:n == 6
return 185
elseif a:n == 7
return 208
elseif a:n == 8
return 231
else
return 255
endif
else
if a:n == 0
return 0
else
return 8 + (a:n * 10)
endif
endif
endfun
" returns the palette index for the given grey index
fun <SID>grey_color(n)
if &t_Co == 88
if a:n == 0
return 16
elseif a:n == 9
return 79
else
return 79 + a:n
endif
else
if a:n == 0
return 16
elseif a:n == 25
return 231
else
return 231 + a:n
endif
endif
endfun
" returns an approximate color index for the given color level
fun <SID>rgb_number(x)
if &t_Co == 88
if a:x < 69
return 0
elseif a:x < 172
return 1
elseif a:x < 230
return 2
else
return 3
endif
else
if a:x < 75
return 0
else
let l:n = (a:x - 55) / 40
let l:m = (a:x - 55) % 40
if l:m < 20
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" returns the actual color level for the given color index
fun <SID>rgb_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 139
elseif a:n == 2
return 205
else
return 255
endif
else
if a:n == 0
return 0
else
return 55 + (a:n * 40)
endif
endif
endfun
" returns the palette index for the given R/G/B color indices
fun <SID>rgb_color(x, y, z)
if &t_Co == 88
return 16 + (a:x * 16) + (a:y * 4) + a:z
else
return 16 + (a:x * 36) + (a:y * 6) + a:z
endif
endfun
" returns the palette index to approximate the given R/G/B color levels
fun <SID>color(r, g, b)
" get the closest grey
let l:gx = <SID>grey_number(a:r)
let l:gy = <SID>grey_number(a:g)
let l:gz = <SID>grey_number(a:b)
" get the closest color
let l:x = <SID>rgb_number(a:r)
let l:y = <SID>rgb_number(a:g)
let l:z = <SID>rgb_number(a:b)
if l:gx == l:gy && l:gy == l:gz
" there are two possibilities
let l:dgr = <SID>grey_level(l:gx) - a:r
let l:dgg = <SID>grey_level(l:gy) - a:g
let l:dgb = <SID>grey_level(l:gz) - a:b
let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
let l:dr = <SID>rgb_level(l:gx) - a:r
let l:dg = <SID>rgb_level(l:gy) - a:g
let l:db = <SID>rgb_level(l:gz) - a:b
let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
if l:dgrey < l:drgb
" use the grey
return <SID>grey_color(l:gx)
else
" use the color
return <SID>rgb_color(l:x, l:y, l:z)
endif
else
" only one possibility
return <SID>rgb_color(l:x, l:y, l:z)
endif
endfun
" returns the palette index to approximate the 'rrggbb' hex string
fun <SID>rgb(rgb)
let l:r = ('0x' . strpart(a:rgb, 0, 2)) + 0
let l:g = ('0x' . strpart(a:rgb, 2, 2)) + 0
let l:b = ('0x' . strpart(a:rgb, 4, 2)) + 0
return <SID>color(l:r, l:g, l:b)
endfun
" sets the highlighting for the given group
fun <sid>X(group, fg, bg, attr)
let l:attr = a:attr
if g:one_allow_italics == 0 && l:attr ==? 'italic'
let l:attr= 'none'
endif
let l:bg = ""
let l:fg = ""
let l:decoration = ""
if a:bg != ''
let l:bg = " guibg=#" . a:bg . " ctermbg=" . <SID>rgb(a:bg)
endif
if a:fg != ''
let l:fg = " guifg=#" . a:fg . " ctermfg=" . <SID>rgb(a:fg)
endif
if a:attr != ''
let l:decoration = " gui=" . l:attr . " cterm=" . l:attr
endif
let l:exec = l:fg . l:bg . l:decoration
if l:exec != ''
exec "hi " . a:group . l:exec
endif
endfun
"}}}
" Color definition --------------------------------------------------------{{{
if &background ==# 'dark'
let s:mono_1 = 'abb2bf'
let s:mono_2 = '828997'
let s:mono_3 = '5c6370'
let s:mono_4 = '4b5263'
let s:hue_1 = '56b6c2' " cyan
let s:hue_2 = '61afef' " blue
let s:hue_3 = 'c678dd' " purple
let s:hue_4 = '98c379' " green
let s:hue_5 = 'e06c75' " red 1
let s:hue_5_2 = 'be5046' " red 2
let s:hue_6 = 'd19a66' " orange 1
let s:hue_6_2 = 'e5c07b' " orange 2
let s:syntax_bg = '282c34'
let s:syntax_gutter = '636d83'
let s:syntax_cursor = '2c323c'
let s:syntax_accent = '528bff'
let s:vertsplit = '181a1f'
let s:special_grey = '3b4048'
let s:visual_grey = '3e4452'
let s:pmenu = '333841'
else
let s:mono_1 = '494b53'
let s:mono_2 = '696c77'
let s:mono_3 = 'a0a1a7'
let s:mono_4 = 'c2c2c3'
let s:hue_1 = '0184bc' " cyan
let s:hue_2 = '4078f2' " blue
let s:hue_3 = 'a626a4' " purple
let s:hue_4 = '50a14f' " green
let s:hue_5 = 'e45649' " red 1
let s:hue_5_2 = 'ca1243' " red 2
let s:hue_6 = '986801' " orange 1
let s:hue_6_2 = 'c18401' " orange 2
let s:syntax_bg = 'fafafa'
let s:syntax_gutter = '9e9e9e'
let s:syntax_cursor = 'f0f0f0'
let s:syntax_accent = '526fff'
let s:syntax_accent_2 = '0083be'
let s:vertsplit = 'e7e9e1'
let s:special_grey = 'd3d3d3'
let s:visual_grey = 'd0d0d0'
let s:pmenu = 'dfdfdf'
endif
let s:syntax_fg = s:mono_1
let s:syntax_fold_bg = s:mono_3
"}}}
" Vim editor color --------------------------------------------------------{{{
call <sid>X('Normal', s:syntax_fg, s:syntax_bg, '')
call <sid>X('bold', '', '', 'bold')
call <sid>X('ColorColumn', '', s:syntax_cursor, '')
call <sid>X('Conceal', s:mono_4, s:syntax_bg, '')
call <sid>X('Cursor', '', s:syntax_accent, '')
call <sid>X('CursorIM', '', '', '')
call <sid>X('CursorColumn', '', s:syntax_cursor, '')
call <sid>X('CursorLine', '', s:syntax_cursor, 'none')
call <sid>X('Directory', s:hue_2, '', '')
call <sid>X('ErrorMsg', s:hue_5, s:syntax_bg, 'none')
call <sid>X('VertSplit', s:vertsplit, '', 'none')
call <sid>X('Folded', s:syntax_bg, s:syntax_fold_bg, 'none')
call <sid>X('FoldColumn', s:mono_3, s:syntax_cursor, '')
call <sid>X('IncSearch', s:hue_6, '', '')
call <sid>X('LineNr', s:mono_4, '', '')
call <sid>X('CursorLineNr', s:syntax_fg, s:syntax_cursor, 'none')
call <sid>X('MatchParen', s:hue_5, s:syntax_cursor, 'underline,bold')
call <sid>X('Italic', '', '', 'italic')
call <sid>X('ModeMsg', s:syntax_fg, '', '')
call <sid>X('MoreMsg', s:syntax_fg, '', '')
call <sid>X('NonText', s:mono_3, '', 'none')
call <sid>X('PMenu', '', s:pmenu, '')
call <sid>X('PMenuSel', '', s:mono_4, '')
call <sid>X('PMenuSbar', '', s:syntax_bg, '')
call <sid>X('PMenuThumb', '', s:mono_1, '')
call <sid>X('Question', s:hue_2, '', '')
call <sid>X('Search', s:syntax_bg, s:hue_6_2, '')
call <sid>X('SpecialKey', s:special_grey, '', 'none')
call <sid>X('Whitespace', s:special_grey, '', 'none')
call <sid>X('StatusLine', s:syntax_fg, s:syntax_cursor, 'none')
call <sid>X('StatusLineNC', s:mono_3, '', '')
call <sid>X('TabLine', s:mono_1, s:syntax_bg, '')
call <sid>X('TabLineFill', s:mono_3, s:visual_grey, 'none')
call <sid>X('TabLineSel', s:syntax_bg, s:hue_2, '')
call <sid>X('Title', s:syntax_fg, '', 'bold')
call <sid>X('Visual', '', s:visual_grey, '')
call <sid>X('VisualNOS', '', s:visual_grey, '')
call <sid>X('WarningMsg', s:hue_5, '', '')
call <sid>X('TooLong', s:hue_5, '', '')
call <sid>X('WildMenu', s:syntax_fg, s:mono_3, '')
call <sid>X('SignColumn', '', s:syntax_bg, '')
call <sid>X('Special', s:hue_2, '', '')
" }}}
" Vim Help highlighting ---------------------------------------------------{{{
call <sid>X('helpCommand', s:hue_6_2, '', '')
call <sid>X('helpExample', s:hue_6_2, '', '')
call <sid>X('helpHeader', s:mono_1, '', 'bold')
call <sid>X('helpSectionDelim', s:mono_3, '', '')
" }}}
" Standard syntax highlighting --------------------------------------------{{{
call <sid>X('Comment', s:mono_3, '', 'italic')
call <sid>X('Constant', s:hue_4, '', '')
call <sid>X('String', s:hue_4, '', '')
call <sid>X('Character', s:hue_4, '', '')
call <sid>X('Number', s:hue_6, '', '')
call <sid>X('Boolean', s:hue_6, '', '')
call <sid>X('Float', s:hue_6, '', '')
call <sid>X('Identifier', s:hue_5, '', 'none')
call <sid>X('Function', s:hue_2, '', '')
call <sid>X('Statement', s:hue_3, '', 'none')
call <sid>X('Conditional', s:hue_3, '', '')
call <sid>X('Repeat', s:hue_3, '', '')
call <sid>X('Label', s:hue_3, '', '')
call <sid>X('Operator', s:syntax_accent, '', 'none')
call <sid>X('Keyword', s:hue_5, '', '')
call <sid>X('Exception', s:hue_3, '', '')
call <sid>X('PreProc', s:hue_6_2, '', '')
call <sid>X('Include', s:hue_2, '', '')
call <sid>X('Define', s:hue_3, '', 'none')
call <sid>X('Macro', s:hue_3, '', '')
call <sid>X('PreCondit', s:hue_6_2, '', '')
call <sid>X('Type', s:hue_6_2, '', 'none')
call <sid>X('StorageClass', s:hue_6_2, '', '')
call <sid>X('Structure', s:hue_6_2, '', '')
call <sid>X('Typedef', s:hue_6_2, '', '')
call <sid>X('Special', s:hue_2, '', '')
call <sid>X('SpecialChar', '', '', '')
call <sid>X('Tag', '', '', '')
call <sid>X('Delimiter', '', '', '')
call <sid>X('SpecialComment', '', '', '')
call <sid>X('Debug', '', '', '')
call <sid>X('Underlined', '', '', 'underline')
call <sid>X('Ignore', '', '', '')
call <sid>X('Error', s:hue_5, s:syntax_bg, 'bold')
call <sid>X('Todo', s:hue_3, s:syntax_bg, '')
" }}}
" Diff highlighting -------------------------------------------------------{{{
call <sid>X('DiffAdd', s:hue_4, s:visual_grey, '')
call <sid>X('DiffChange', s:hue_6, s:visual_grey, '')
call <sid>X('DiffDelete', s:hue_5, s:visual_grey, '')
call <sid>X('DiffText', s:hue_2, s:visual_grey, '')
call <sid>X('DiffAdded', s:hue_4, s:visual_grey, '')
call <sid>X('DiffFile', s:hue_5, s:visual_grey, '')
call <sid>X('DiffNewFile', s:hue_4, s:visual_grey, '')
call <sid>X('DiffLine', s:hue_2, s:visual_grey, '')
call <sid>X('DiffRemoved', s:hue_5, s:visual_grey, '')
" }}}
" Asciidoc highlighting ---------------------------------------------------{{{
call <sid>X('asciidocListingBlock', s:mono_2, '', '')
" }}}
" C/C++ highlighting ------------------------------------------------------{{{
call <sid>X('cInclude', s:hue_3, '', '')
call <sid>X('cPreCondit', s:hue_3, '', '')
call <sid>X('cPreConditMatch', s:hue_3, '', '')
call <sid>X('cType', s:hue_3, '', '')
call <sid>X('cStorageClass', s:hue_3, '', '')
call <sid>X('cStructure', s:hue_3, '', '')
call <sid>X('cOperator', s:hue_3, '', '')
call <sid>X('cStatement', s:hue_3, '', '')
call <sid>X('cTODO', s:hue_3, '', '')
call <sid>X('cConstant', s:hue_6, '', '')
call <sid>X('cSpecial', s:hue_1, '', '')
call <sid>X('cSpecialCharacter', s:hue_1, '', '')
call <sid>X('cString', s:hue_4, '', '')
call <sid>X('cppType', s:hue_3, '', '')
call <sid>X('cppStorageClass', s:hue_3, '', '')
call <sid>X('cppStructure', s:hue_3, '', '')
call <sid>X('cppModifier', s:hue_3, '', '')
call <sid>X('cppOperator', s:hue_3, '', '')
call <sid>X('cppAccess', s:hue_3, '', '')
call <sid>X('cppStatement', s:hue_3, '', '')
call <sid>X('cppConstant', s:hue_5, '', '')
call <sid>X('cCppString', s:hue_4, '', '')
" }}}
" Cucumber highlighting ---------------------------------------------------{{{
call <sid>X('cucumberGiven', s:hue_2, '', '')
call <sid>X('cucumberWhen', s:hue_2, '', '')
call <sid>X('cucumberWhenAnd', s:hue_2, '', '')
call <sid>X('cucumberThen', s:hue_2, '', '')
call <sid>X('cucumberThenAnd', s:hue_2, '', '')
call <sid>X('cucumberUnparsed', s:hue_6, '', '')
call <sid>X('cucumberFeature', s:hue_5, '', 'bold')
call <sid>X('cucumberBackground', s:hue_3, '', 'bold')
call <sid>X('cucumberScenario', s:hue_3, '', 'bold')
call <sid>X('cucumberScenarioOutline', s:hue_3, '', 'bold')
call <sid>X('cucumberTags', s:mono_3, '', 'bold')
call <sid>X('cucumberDelimiter', s:mono_3, '', 'bold')
" }}}
" CSS/Sass highlighting ---------------------------------------------------{{{
call <sid>X('cssAttrComma', s:hue_3, '', '')
call <sid>X('cssAttributeSelector', s:hue_4, '', '')
call <sid>X('cssBraces', s:mono_2, '', '')
call <sid>X('cssClassName', s:hue_6, '', '')
call <sid>X('cssClassNameDot', s:hue_6, '', '')
call <sid>X('cssDefinition', s:hue_3, '', '')
call <sid>X('cssFontAttr', s:hue_6, '', '')
call <sid>X('cssFontDescriptor', s:hue_3, '', '')
call <sid>X('cssFunctionName', s:hue_2, '', '')
call <sid>X('cssIdentifier', s:hue_2, '', '')
call <sid>X('cssImportant', s:hue_3, '', '')
call <sid>X('cssInclude', s:mono_1, '', '')
call <sid>X('cssIncludeKeyword', s:hue_3, '', '')
call <sid>X('cssMediaType', s:hue_6, '', '')
call <sid>X('cssProp', s:hue_1, '', '')
call <sid>X('cssPseudoClassId', s:hue_6, '', '')
call <sid>X('cssSelectorOp', s:hue_3, '', '')
call <sid>X('cssSelectorOp2', s:hue_3, '', '')
call <sid>X('cssStringQ', s:hue_4, '', '')
call <sid>X('cssStringQQ', s:hue_4, '', '')
call <sid>X('cssTagName', s:hue_5, '', '')
call <sid>X('cssAttr', s:hue_6, '', '')
call <sid>X('sassAmpersand', s:hue_5, '', '')
call <sid>X('sassClass', s:hue_6_2, '', '')
call <sid>X('sassControl', s:hue_3, '', '')
call <sid>X('sassExtend', s:hue_3, '', '')
call <sid>X('sassFor', s:mono_1, '', '')
call <sid>X('sassProperty', s:hue_1, '', '')
call <sid>X('sassFunction', s:hue_1, '', '')
call <sid>X('sassId', s:hue_2, '', '')
call <sid>X('sassInclude', s:hue_3, '', '')
call <sid>X('sassMedia', s:hue_3, '', '')
call <sid>X('sassMediaOperators', s:mono_1, '', '')
call <sid>X('sassMixin', s:hue_3, '', '')
call <sid>X('sassMixinName', s:hue_2, '', '')
call <sid>X('sassMixing', s:hue_3, '', '')
call <sid>X('scssSelectorName', s:hue_6_2, '', '')
" }}}
" Elixir highlighting------------------------------------------------------{{{
hi link elixirModuleDefine Define
call <sid>X('elixirAlias', s:hue_6_2, '', '')
call <sid>X('elixirAtom', s:hue_1, '', '')
call <sid>X('elixirBlockDefinition', s:hue_3, '', '')
call <sid>X('elixirModuleDeclaration', s:hue_6, '', '')
" }}}
" Git and git related plugins highlighting --------------------------------{{{
call <sid>X('gitcommitComment', s:mono_3, '', '')
call <sid>X('gitcommitUnmerged', s:hue_4, '', '')
call <sid>X('gitcommitOnBranch', '', '', '')
call <sid>X('gitcommitBranch', s:hue_3, '', '')
call <sid>X('gitcommitDiscardedType', s:hue_5, '', '')
call <sid>X('gitcommitSelectedType', s:hue_4, '', '')
call <sid>X('gitcommitHeader', '', '', '')
call <sid>X('gitcommitUntrackedFile', s:hue_1, '', '')
call <sid>X('gitcommitDiscardedFile', s:hue_5, '', '')
call <sid>X('gitcommitSelectedFile', s:hue_4, '', '')
call <sid>X('gitcommitUnmergedFile', s:hue_6_2, '', '')
call <sid>X('gitcommitFile', '', '', '')
hi link gitcommitNoBranch gitcommitBranch
hi link gitcommitUntracked gitcommitComment
hi link gitcommitDiscarded gitcommitComment
hi link gitcommitSelected gitcommitComment
hi link gitcommitDiscardedArrow gitcommitDiscardedFile
hi link gitcommitSelectedArrow gitcommitSelectedFile
hi link gitcommitUnmergedArrow gitcommitUnmergedFile
call <sid>X('SignifySignAdd', s:hue_4, '', '')
call <sid>X('SignifySignChange', s:hue_6_2, '', '')
call <sid>X('SignifySignDelete', s:hue_5, '', '')
hi link GitGutterAdd SignifySignAdd
hi link GitGutterChange SignifySignChange
hi link GitGutterDelete SignifySignDelete
call <sid>X('diffAdded', s:hue_4, '', '')
call <sid>X('diffRemoved', s:hue_5, '', '')
" }}}
" Go highlighting ---------------------------------------------------------{{{
call <sid>X('goDeclaration', s:hue_3, '', '')
call <sid>X('goField', s:hue_5, '', '')
call <sid>X('goMethod', s:hue_1, '', '')
call <sid>X('goType', s:hue_3, '', '')
call <sid>X('goUnsignedInts', s:hue_1, '', '')
" }}}
" HTML highlighting -------------------------------------------------------{{{
call <sid>X('htmlArg', s:hue_6, '', '')
call <sid>X('htmlTagName', s:hue_5, '', '')
call <sid>X('htmlTagN', s:hue_5, '', '')
call <sid>X('htmlSpecialTagName', s:hue_5, '', '')
call <sid>X('htmlTag', s:mono_2, '', '')
call <sid>X('htmlEndTag', s:mono_2, '', '')
call <sid>X('MatchTag', s:hue_5, s:syntax_cursor, 'underline,bold')
" }}}
" JavaScript highlighting -------------------------------------------------{{{
call <sid>X('coffeeString', s:hue_4, '', '')
call <sid>X('javaScriptBraces', s:mono_2, '', '')
call <sid>X('javaScriptFunction', s:hue_3, '', '')
call <sid>X('javaScriptIdentifier', s:hue_3, '', '')
call <sid>X('javaScriptNull', s:hue_6, '', '')
call <sid>X('javaScriptNumber', s:hue_6, '', '')
call <sid>X('javaScriptRequire', s:hue_1, '', '')
call <sid>X('javaScriptReserved', s:hue_3, '', '')
" https://github.com/pangloss/vim-javascript
call <sid>X('jsArrowFunction', s:hue_3, '', '')
call <sid>X('jsBraces', s:mono_2, '', '')
call <sid>X('jsClassBraces', s:mono_2, '', '')
call <sid>X('jsClassKeywords', s:hue_3, '', '')
call <sid>X('jsDocParam', s:hue_2, '', '')
call <sid>X('jsDocTags', s:hue_3, '', '')
call <sid>X('jsFuncBraces', s:mono_2, '', '')
call <sid>X('jsFuncCall', s:hue_2, '', '')
call <sid>X('jsFuncParens', s:mono_2, '', '')
call <sid>X('jsFunction', s:hue_3, '', '')
call <sid>X('jsGlobalObjects', s:hue_6_2, '', '')
call <sid>X('jsModuleWords', s:hue_3, '', '')
call <sid>X('jsModules', s:hue_3, '', '')
call <sid>X('jsNoise', s:mono_2, '', '')
call <sid>X('jsNull', s:hue_6, '', '')
call <sid>X('jsOperator', s:hue_3, '', '')
call <sid>X('jsParens', s:mono_2, '', '')
call <sid>X('jsStorageClass', s:hue_3, '', '')
call <sid>X('jsTemplateBraces', s:hue_5_2, '', '')
call <sid>X('jsTemplateVar', s:hue_4, '', '')
call <sid>X('jsThis', s:hue_5, '', '')
call <sid>X('jsUndefined', s:hue_6, '', '')
call <sid>X('jsObjectValue', s:hue_2, '', '')
call <sid>X('jsObjectKey', s:hue_1, '', '')
" https://github.com/othree/yajs.vim
call <sid>X('javascriptArrowFunc', s:hue_3, '', '')
call <sid>X('javascriptClassExtends', s:hue_3, '', '')
call <sid>X('javascriptClassKeyword', s:hue_3, '', '')
call <sid>X('javascriptDocNotation', s:hue_3, '', '')
call <sid>X('javascriptDocParamName', s:hue_2, '', '')
call <sid>X('javascriptDocTags', s:hue_3, '', '')
call <sid>X('javascriptEndColons', s:mono_3, '', '')
call <sid>X('javascriptExport', s:hue_3, '', '')
call <sid>X('javascriptFuncArg', s:mono_1, '', '')
call <sid>X('javascriptFuncKeyword', s:hue_3, '', '')
call <sid>X('javascriptIdentifier', s:hue_5, '', '')
call <sid>X('javascriptImport', s:hue_3, '', '')
call <sid>X('javascriptObjectLabel', s:mono_1, '', '')
call <sid>X('javascriptOpSymbol', s:hue_1, '', '')
call <sid>X('javascriptOpSymbols', s:hue_1, '', '')
call <sid>X('javascriptPropertyName', s:hue_4, '', '')
call <sid>X('javascriptTemplateSB', s:hue_5_2, '', '')
call <sid>X('javascriptVariable', s:hue_3, '', '')
" }}}
" JSON highlighting -------------------------------------------------------{{{
call <sid>X('jsonCommentError', s:mono_1, '', '' )
call <sid>X('jsonKeyword', s:hue_5, '', '' )
call <sid>X('jsonQuote', s:mono_3, '', '' )
call <sid>X('jsonTrailingCommaError', s:hue_5, '', 'reverse' )
call <sid>X('jsonMissingCommaError', s:hue_5, '', 'reverse' )
call <sid>X('jsonNoQuotesError', s:hue_5, '', 'reverse' )
call <sid>X('jsonNumError', s:hue_5, '', 'reverse' )
call <sid>X('jsonString', s:hue_4, '', '' )
call <sid>X('jsonStringSQError', s:hue_5, '', 'reverse' )
call <sid>X('jsonSemicolonError', s:hue_5, '', 'reverse' )
" }}}
" Markdown highlighting ---------------------------------------------------{{{
call <sid>X('markdownUrl', s:mono_3, '', '')
call <sid>X('markdownBold', s:hue_6, '', 'bold')
call <sid>X('markdownItalic', s:hue_6, '', 'bold')
call <sid>X('markdownCode', s:hue_4, '', '')
call <sid>X('markdownCodeBlock', s:hue_5, '', '')
call <sid>X('markdownCodeDelimiter', s:hue_4, '', '')
call <sid>X('markdownHeadingDelimiter', s:hue_5_2, '', '')
call <sid>X('markdownH1', s:hue_5, '', '')
call <sid>X('markdownH2', s:hue_5, '', '')
call <sid>X('markdownH3', s:hue_5, '', '')
call <sid>X('markdownH3', s:hue_5, '', '')
call <sid>X('markdownH4', s:hue_5, '', '')
call <sid>X('markdownH5', s:hue_5, '', '')
call <sid>X('markdownH6', s:hue_5, '', '')
call <sid>X('markdownListMarker', s:hue_5, '', '')
" }}}
" PHP highlighting --------------------------------------------------------{{{
call <sid>X('phpClass', s:hue_6_2, '', '')
call <sid>X('phpFunction', s:hue_2, '', '')
call <sid>X('phpFunctions', s:hue_2, '', '')
call <sid>X('phpInclude', s:hue_3, '', '')
call <sid>X('phpKeyword', s:hue_3, '', '')
call <sid>X('phpParent', s:mono_3, '', '')
call <sid>X('phpType', s:hue_3, '', '')
call <sid>X('phpSuperGlobals', s:hue_5, '', '')
" }}}
" Pug (Formerly Jade) highlighting ----------------------------------------{{{
call <sid>X('pugAttributesDelimiter', s:hue_6, '', '')
call <sid>X('pugClass', s:hue_6, '', '')
call <sid>X('pugDocType', s:mono_3, '', 'italic')
call <sid>X('pugTag', s:hue_5, '', '')
" }}}
" PureScript highlighting -------------------------------------------------{{{
call <sid>X('purescriptKeyword', s:hue_3, '', '')
call <sid>X('purescriptModuleName', s:syntax_fg, '', '')
call <sid>X('purescriptIdentifier', s:syntax_fg, '', '')
call <sid>X('purescriptType', s:hue_6_2, '', '')
call <sid>X('purescriptTypeVar', s:hue_5, '', '')
call <sid>X('purescriptConstructor', s:hue_5, '', '')
call <sid>X('purescriptOperator', s:syntax_fg, '', '')
" }}}
" Python highlighting -----------------------------------------------------{{{
call <sid>X('pythonImport', s:hue_3, '', '')
call <sid>X('pythonBuiltin', s:hue_1, '', '')
call <sid>X('pythonStatement', s:hue_3, '', '')
call <sid>X('pythonParam', s:hue_6, '', '')
call <sid>X('pythonEscape', s:hue_5, '', '')
call <sid>X('pythonSelf', s:mono_2, '', 'italic')
call <sid>X('pythonClass', s:hue_2, '', '')
call <sid>X('pythonOperator', s:hue_3, '', '')
call <sid>X('pythonEscape', s:hue_5, '', '')
call <sid>X('pythonFunction', s:hue_2, '', '')
call <sid>X('pythonKeyword', s:hue_2, '', '')
call <sid>X('pythonModule', s:hue_3, '', '')
call <sid>X('pythonStringDelimiter', s:hue_4, '', '')
call <sid>X('pythonSymbol', s:hue_1, '', '')
" }}}
" Ruby highlighting -------------------------------------------------------{{{
call <sid>X('rubyBlock', s:hue_3, '', '')
call <sid>X('rubyBlockParameter', s:hue_5, '', '')
call <sid>X('rubyBlockParameterList', s:hue_5, '', '')
call <sid>X('rubyCapitalizedMethod', s:hue_3, '', '')
call <sid>X('rubyClass', s:hue_3, '', '')
call <sid>X('rubyConstant', s:hue_6_2, '', '')
call <sid>X('rubyControl', s:hue_3, '', '')
call <sid>X('rubyDefine', s:hue_3, '', '')
call <sid>X('rubyEscape', s:hue_5, '', '')
call <sid>X('rubyFunction', s:hue_2, '', '')
call <sid>X('rubyGlobalVariable', s:hue_5, '', '')
call <sid>X('rubyInclude', s:hue_2, '', '')
call <sid>X('rubyIncluderubyGlobalVariable', s:hue_5, '', '')
call <sid>X('rubyInstanceVariable', s:hue_5, '', '')
call <sid>X('rubyInterpolation', s:hue_1, '', '')
call <sid>X('rubyInterpolationDelimiter', s:hue_5, '', '')
call <sid>X('rubyKeyword', s:hue_2, '', '')
call <sid>X('rubyModule', s:hue_3, '', '')
call <sid>X('rubyPseudoVariable', s:hue_5, '', '')
call <sid>X('rubyRegexp', s:hue_1, '', '')
call <sid>X('rubyRegexpDelimiter', s:hue_1, '', '')
call <sid>X('rubyStringDelimiter', s:hue_4, '', '')
call <sid>X('rubySymbol', s:hue_1, '', '')
" }}}
" Spelling highlighting ---------------------------------------------------{{{
call <sid>X('SpellBad', '', s:syntax_bg, 'undercurl')
call <sid>X('SpellLocal', '', s:syntax_bg, 'undercurl')
call <sid>X('SpellCap', '', s:syntax_bg, 'undercurl')
call <sid>X('SpellRare', '', s:syntax_bg, 'undercurl')
" }}}
" Vim highlighting --------------------------------------------------------{{{
call <sid>X('vimCommand', s:hue_3, '', '')
call <sid>X('vimCommentTitle', s:mono_3, '', 'bold')
call <sid>X('vimFunction', s:hue_1, '', '')
call <sid>X('vimFuncName', s:hue_3, '', '')
call <sid>X('vimHighlight', s:hue_2, '', '')
call <sid>X('vimLineComment', s:mono_3, '', 'italic')
call <sid>X('vimParenSep', s:mono_2, '', '')
call <sid>X('vimSep', s:mono_2, '', '')
call <sid>X('vimUserFunc', s:hue_1, '', '')
call <sid>X('vimVar', s:hue_5, '', '')
" }}}
" XML highlighting --------------------------------------------------------{{{
call <sid>X('xmlAttrib', s:hue_6_2, '', '')
call <sid>X('xmlEndTag', s:hue_5, '', '')
call <sid>X('xmlTag', s:hue_5, '', '')
call <sid>X('xmlTagName', s:hue_5, '', '')
" }}}
" ZSH highlighting --------------------------------------------------------{{{
call <sid>X('zshCommands', s:syntax_fg, '', '')
call <sid>X('zshDeref', s:hue_5, '', '')
call <sid>X('zshShortDeref', s:hue_5, '', '')
call <sid>X('zshFunction', s:hue_1, '', '')
call <sid>X('zshKeyword', s:hue_3, '', '')
call <sid>X('zshSubst', s:hue_5, '', '')
call <sid>X('zshSubstDelim', s:mono_3, '', '')
call <sid>X('zshTypes', s:hue_3, '', '')
call <sid>X('zshVariableDef', s:hue_6, '', '')
" }}}
" Rust highlighting -------------------------------------------------------{{{
call <sid>X('rustExternCrate', s:hue_5, '', 'bold')
call <sid>X('rustIdentifier', s:hue_2, '', '')
call <sid>X('rustDeriveTrait', s:hue_4, '', '')
call <sid>X('SpecialComment', s:mono_3, '', '')
call <sid>X('rustCommentLine', s:mono_3, '', '')
call <sid>X('rustCommentLineDoc', s:mono_3, '', '')
call <sid>X('rustCommentLineDocError', s:mono_3, '', '')
call <sid>X('rustCommentBlock', s:mono_3, '', '')
call <sid>X('rustCommentBlockDoc', s:mono_3, '', '')
call <sid>X('rustCommentBlockDocError', s:mono_3, '', '')
" }}}
" man highlighting --------------------------------------------------------{{{
hi link manTitle String
call <sid>X('manFooter', s:mono_3, '', '')
" }}}
" Neovim Terminal Colors --------------------------------------------------{{{
let g:terminal_color_0 = "#353a44"
let g:terminal_color_8 = "#353a44"
let g:terminal_color_1 = "#e88388"
let g:terminal_color_9 = "#e88388"
let g:terminal_color_2 = "#a7cc8c"
let g:terminal_color_10 = "#a7cc8c"
let g:terminal_color_3 = "#ebca8d"
let g:terminal_color_11 = "#ebca8d"
let g:terminal_color_4 = "#72bef2"
let g:terminal_color_12 = "#72bef2"
let g:terminal_color_5 = "#d291e4"
let g:terminal_color_13 = "#d291e4"
let g:terminal_color_6 = "#65c2cd"
let g:terminal_color_14 = "#65c2cd"
let g:terminal_color_7 = "#e3e5e9"
let g:terminal_color_15 = "#e3e5e9"
"}}}
" ALE (Asynchronous Lint Engine) highlighting -----------------------------{{{
call <sid>X('ALEWarningSign', s:hue_6_2, '', '')
call <sid>X('ALEErrorSign', s:hue_5, '', '')
" }}}
" Delete functions =========================================================={{{
" delf <SID>X
" delf <SID>rgb
" delf <SID>color
" delf <SID>rgb_color
" delf <SID>rgb_level
" delf <SID>rgb_number
" delf <SID>grey_color
" delf <SID>grey_level
" delf <SID>grey_number
"}}}
endif
"}}}
" Public API --------------------------------------------------------------{{{
function! one#highlight(group, fg, bg, attr)
call <sid>X(a:group, a:fg, a:bg, a:attr)
endfunction
"}}}
" vim: set fdl=0 fdm=marker:

327
vim/colors/petrel.vim Normal file
View file

@ -0,0 +1,327 @@
hi clear
if exists('syntax_on')
syntax reset
endif
let colors_name = 'petrel'
hi Normal ctermfg=12 ctermbg=8 guifg=#787e82 guibg=#0b141a gui=NONE
set background=dark
hi ColorColumn ctermbg=0 guibg=#1d252b gui=NONE
hi Comment ctermfg=10 guifg=#61707a gui=italic
hi ConId ctermfg=3 guifg=#947b38 gui=NONE
hi Conceal ctermfg=4 guifg=#4384b0 gui=NONE
hi Constant ctermfg=6 guifg=#35898c gui=NONE
hi Cursor ctermfg=8 ctermbg=10 guifg=#0b141a guibg=#61707a gui=NONE
hi CursorColumn ctermbg=0 guibg=#1d252b gui=NONE
hi CursorLine cterm=NONE ctermbg=0 guibg=#1d252b guisp=#808487 gui=NONE
hi CursorLineNr cterm=NONE ctermfg=12 guifg=#787e82 gui=bold
hi DiffAdd ctermfg=2 ctermbg=0 guifg=#3f8f36 guibg=#1d252b guisp=#3f8f36 gui=NONE
hi DiffChange ctermfg=3 ctermbg=0 guifg=#947b38 guibg=#1d252b guisp=#947b38 gui=NONE
hi DiffDelete ctermfg=1 ctermbg=0 guifg=#ba656d guibg=#1d252b gui=NONE
hi DiffText ctermfg=4 ctermbg=0 guifg=#4384b0 guibg=#1d252b guisp=#4384b0 gui=NONE
hi Directory ctermfg=4 guifg=#4384b0 gui=NONE
hi Error cterm=NONE ctermfg=1 ctermbg=NONE guifg=#ba656d guibg=#0b141a gui=NONE
hi ErrorMsg cterm=reverse ctermfg=1 ctermbg=NONE guifg=#ba656d guibg=NONE gui=reverse
hi FoldColumn ctermfg=12 ctermbg=0 guifg=#787e82 guibg=#1d252b gui=NONE
hi Folded cterm=NONE,underline ctermfg=12 ctermbg=0 guifg=#787e82 guibg=#1d252b guisp=#0b141a gui=NONE
hi HelpExample ctermfg=14 guifg=#808487 gui=NONE
hi Identifier ctermfg=4 guifg=#4384b0 gui=NONE
hi IncSearch cterm=standout ctermfg=9 guifg=#b06d43 gui=standout
hi LineNr ctermfg=10 ctermbg=0 guifg=#61707a guibg=#1d252b gui=NONE
hi MatchParen cterm=NONE ctermfg=1 ctermbg=10 guifg=#ba656d guibg=#61707a gui=NONE
hi ModeMsg ctermfg=4 guifg=#4384b0 gui=NONE
hi MoreMsg ctermfg=4 guifg=#4384b0 gui=NONE
hi NonText cterm=NONE ctermfg=11 guifg=#6d767d gui=NONE
hi Pmenu cterm=reverse ctermfg=12 ctermbg=0 guifg=#787e82 guibg=#1d252b gui=reverse
hi PmenuSbar cterm=reverse ctermfg=7 ctermbg=12 guifg=#e6eaed guibg=#787e82 gui=reverse
hi PmenuSel cterm=reverse ctermfg=10 ctermbg=7 guifg=#61707a guibg=#e6eaed gui=reverse
hi PmenuThumb cterm=reverse ctermfg=12 ctermbg=8 guifg=#787e82 guibg=#0b141a gui=reverse
hi PreProc cterm=NONE ctermfg=1 guifg=#b06d43 gui=NONE
hi Question cterm=NONE ctermfg=6 guifg=#35898c gui=NONE
hi Search cterm=reverse ctermfg=3 ctermbg=NONE guifg=#947b38 guibg=NONE gui=reverse
hi SignColumn cterm=NONE ctermfg=12 ctermbg=NONE guifg=#787e82 guibg=NONE gui=NONE
hi Special cterm=NONE ctermfg=1 guifg=#ba656d gui=NONE
hi SpecialKey cterm=NONE ctermfg=11 ctermbg=0 guifg=#6d767d guibg=#1d252b gui=NONE
hi SpellBad cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#ba656d gui=undercurl
hi SpellCap cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#8e6fbd gui=undercurl
hi SpellLocal cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#947b38 gui=undercurl
hi SpellRare cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#35898c gui=undercurl
hi Statement ctermfg=2 guifg=#3f8f36 gui=NONE
hi StatusLine cterm=reverse ctermfg=10 ctermbg=8 guifg=#61707a guibg=#0b141a gui=reverse
hi StatusLineNC cterm=reverse ctermfg=11 ctermbg=0 guifg=#6d767d guibg=#1d252b gui=reverse
hi TabLine cterm=underline ctermfg=12 ctermbg=0 guifg=#787e82 guibg=#1d252b guisp=#787e82 gui=underline
hi TabLineFill cterm=underline ctermfg=12 ctermbg=0 guifg=#787e82 guibg=#1d252b guisp=#787e82 gui=underline
hi TabLineSel cterm=underline,reverse ctermfg=10 ctermbg=7 guifg=#61707a guibg=#e6eaed guisp=#787e82 gui=underline,reverse
hi Title cterm=NONE ctermfg=9 guifg=#b06d43 gui=NONE
hi Todo cterm=NONE ctermfg=5 guifg=#b06886 guibg=NONE gui=bold
hi Type ctermfg=3 guifg=#947b38 gui=NONE
hi Underlined ctermfg=13 guifg=#8e6fbd gui=NONE
hi VarId ctermfg=4 guifg=#4384b0 gui=NONE
hi VertSplit ctermfg=11 ctermbg=11 guifg=#6d767d guibg=#6d767d gui=NONE
hi Visual cterm=reverse ctermfg=10 ctermbg=8 guifg=#61707a guibg=#0b141a gui=reverse
hi VisualNOS cterm=reverse ctermbg=0 ctermbg=NONE guibg=#1d252b guifg=NONE gui=reverse
hi WarningMsg cterm=NONE ctermfg=9 guifg=#ba656d gui=NONE
hi WildMenu cterm=reverse ctermfg=7 ctermbg=0 guifg=#e6eaed guibg=#1d252b gui=reverse
hi cPreCondit ctermfg=9 guifg=#b06d43 gui=NONE
hi gitcommitBranch cterm=NONE ctermfg=5 guifg=#b06886 gui=NONE
hi gitcommitComment ctermfg=10 guifg=#61707a gui=italic
hi gitcommitDiscardedFile cterm=NONE ctermfg=1 guifg=#ba656d gui=NONE
hi gitcommitDiscardedType ctermfg=1 guifg=#ba656d gui=NONE
hi gitcommitFile cterm=NONE ctermfg=12 guifg=#787e82 gui=NONE
hi gitcommitHeader ctermfg=10 guifg=#61707a gui=NONE
hi gitcommitOnBranch cterm=NONE ctermfg=10 guifg=#61707a gui=NONE
hi gitcommitSelectedFile cterm=NONE ctermfg=2 guifg=#3f8f36 gui=NONE
hi gitcommitSelectedType ctermfg=2 guifg=#3f8f36 gui=NONE
hi gitcommitUnmerged cterm=NONE ctermfg=2 guifg=#3f8f36 gui=NONE
hi gitcommitUnmergedFile cterm=NONE ctermfg=3 guifg=#947b38 gui=NONE
hi gitcommitUntrackedFile cterm=NONE ctermfg=6 guifg=#35898c gui=NONE
hi helpHyperTextEntry ctermfg=2 guifg=#3f8f36 gui=NONE
hi helpHyperTextJump cterm=underline ctermfg=4 guifg=#4384b0 gui=underline
hi helpNote ctermfg=5 guifg=#b06886 gui=NONE
hi helpOption ctermfg=6 guifg=#35898c gui=NONE
hi helpVim ctermfg=5 guifg=#b06886 gui=NONE
hi hsImport ctermfg=5 guifg=#b06886 gui=NONE
hi hsImportLabel ctermfg=6 guifg=#35898c gui=NONE
hi hsModuleName cterm=underline ctermfg=2 guifg=#3f8f36 gui=underline
hi hsNiceOperator ctermfg=6 guifg=#35898c gui=NONE
hi hsStatement ctermfg=6 guifg=#35898c gui=NONE
hi hsString ctermfg=11 guifg=#6d767d gui=NONE
hi hsStructure ctermfg=6 guifg=#35898c gui=NONE
hi hsType ctermfg=3 guifg=#947b38 gui=NONE
hi hsTypedef ctermfg=6 guifg=#35898c gui=NONE
hi hsVarSym ctermfg=6 guifg=#35898c gui=NONE
hi hs_DeclareFunction ctermfg=9 guifg=#b06d43 gui=NONE
hi hs_OpFunctionName ctermfg=3 guifg=#947b38 gui=NONE
hi hs_hlFunctionName ctermfg=4 guifg=#4384b0 gui=NONE
hi htmlArg ctermfg=11 guifg=#6d767d gui=NONE
hi htmlEndTag ctermfg=10 guifg=#61707a gui=NONE
hi htmlSpecialTagName ctermfg=4 guifg=#4384b0 gui=italic
hi htmlTag ctermfg=10 guifg=#61707a gui=NONE
hi htmlTagN cterm=NONE ctermfg=14 guifg=#808487 gui=NONE
hi htmlTagName cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi javaScript ctermfg=3 guifg=#947b38 gui=NONE
hi pandocBlockQuote ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocBlockQuoteLeader1 ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocBlockQuoteLeader2 ctermfg=6 guifg=#35898c gui=NONE
hi pandocBlockQuoteLeader3 ctermfg=3 guifg=#947b38 gui=NONE
hi pandocBlockQuoteLeader4 ctermfg=1 guifg=#ba656d gui=NONE
hi pandocBlockQuoteLeader5 ctermfg=12 guifg=#787e82 gui=NONE
hi pandocBlockQuoteLeader6 ctermfg=10 guifg=#61707a gui=NONE
hi pandocCitation ctermfg=5 guifg=#b06886 gui=NONE
hi pandocCitationDelim ctermfg=5 guifg=#b06886 gui=NONE
hi pandocCitationID cterm=underline ctermfg=5 guifg=#b06886 gui=underline
hi pandocCitationRef ctermfg=5 guifg=#b06886 gui=NONE
hi pandocComment ctermfg=10 guifg=#61707a gui=italic
hi pandocDefinitionBlock ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocDefinitionIndctr cterm=NONE ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocDefinitionTerm cterm=standout ctermfg=13 guifg=#8e6fbd gui=standout
hi pandocEmphasis ctermfg=12 guifg=#787e82 gui=italic
hi pandocEmphasisDefinition ctermfg=13 guifg=#8e6fbd gui=italic
hi pandocEmphasisHeading cterm=NONE ctermfg=9 guifg=#b06d43 gui=NONE
hi pandocEmphasisNested cterm=NONE ctermfg=12 guifg=#787e82 gui=NONE
hi pandocEmphasisNestedDefinition cterm=NONE ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocEmphasisNestedHeading cterm=NONE ctermfg=9 guifg=#b06d43 gui=NONE
hi pandocEmphasisNestedTable cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocEmphasisTable ctermfg=4 guifg=#4384b0 gui=italic
hi pandocEscapePair cterm=NONE ctermfg=1 guifg=#ba656d gui=NONE
hi pandocFootnote ctermfg=2 guifg=#3f8f36 gui=NONE
hi pandocFootnoteDefLink cterm=NONE ctermfg=2 guifg=#3f8f36 gui=NONE
hi pandocFootnoteInline cterm=NONE,underline ctermfg=2 guifg=#3f8f36 gui=NONE,underline
hi pandocFootnoteLink cterm=underline ctermfg=2 guifg=#3f8f36 gui=underline
hi pandocHeading cterm=NONE ctermfg=9 guifg=#b06d43 gui=NONE
hi pandocHeadingMarker cterm=NONE ctermfg=3 guifg=#947b38 gui=NONE
hi pandocImageCaption cterm=NONE,underline ctermfg=13 guifg=#8e6fbd gui=NONE,underline
hi pandocLinkDefinition cterm=underline ctermfg=6 guifg=#35898c guisp=#6d767d gui=underline
hi pandocLinkDefinitionID cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocLinkDelim ctermfg=10 guifg=#61707a gui=NONE
hi pandocLinkLabel cterm=underline ctermfg=4 guifg=#4384b0 gui=underline
hi pandocLinkText cterm=NONE,underline ctermfg=4 guifg=#4384b0 gui=NONE,underline
hi pandocLinkTitle cterm=underline ctermfg=11 guifg=#6d767d gui=underline
hi pandocLinkTitleDelim cterm=underline ctermfg=10 guifg=#61707a guisp=#6d767d gui=underline
hi pandocLinkURL cterm=underline ctermfg=11 guifg=#6d767d gui=underline
hi pandocListMarker ctermfg=5 guifg=#b06886 gui=NONE
hi pandocListReference cterm=underline ctermfg=5 guifg=#b06886 gui=underline
hi pandocMetadata cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocMetadataDelim ctermfg=10 guifg=#61707a gui=NONE
hi pandocMetadataKey ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocNonBreakingSpace cterm=reverse ctermfg=1 ctermbg=NONE guifg=#ba656d guibg=NONE gui=reverse
hi pandocRule cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocRuleLine cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocStrikeout cterm=reverse ctermfg=10 ctermbg=NONE guibg=NONE guifg=#61707a gui=reverse
hi pandocStrikeoutDefinition cterm=reverse ctermfg=13 ctermbg=NONE guibg=NONE guifg=#8e6fbd gui=reverse
hi pandocStrikeoutHeading cterm=reverse ctermfg=9 ctermbg=NONE guibg=NONE guifg=#b06d43 gui=reverse
hi pandocStrikeoutTable cterm=reverse ctermfg=4 ctermbg=NONE guibg=NONE guifg=#4384b0 gui=reverse
hi pandocStrongEmphasis cterm=NONE ctermfg=12 guifg=#787e82 gui=NONE
hi pandocStrongEmphasisDefinition cterm=NONE ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocStrongEmphasisEmphasis cterm=NONE ctermfg=12 guifg=#787e82 gui=NONE
hi pandocStrongEmphasisEmphasisDefinition cterm=NONE ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocStrongEmphasisEmphasisHeading cterm=NONE ctermfg=9 guifg=#b06d43 gui=NONE
hi pandocStrongEmphasisEmphasisTable cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocStrongEmphasisHeading cterm=NONE ctermfg=9 guifg=#b06d43 gui=NONE
hi pandocStrongEmphasisNested cterm=NONE ctermfg=12 guifg=#787e82 gui=NONE
hi pandocStrongEmphasisNestedDefinition cterm=NONE ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocStrongEmphasisNestedHeading cterm=NONE ctermfg=9 guifg=#b06d43 gui=NONE
hi pandocStrongEmphasisNestedTable cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocStrongEmphasisTable cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocStyleDelim ctermfg=10 guifg=#61707a gui=NONE
hi pandocSubscript ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocSubscriptDefinition ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocSubscriptHeading cterm=NONE ctermfg=9 guifg=#b06d43 gui=NONE
hi pandocSubscriptTable ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocSuperscript ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocSuperscriptDefinition ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocSuperscriptHeading cterm=NONE ctermfg=9 guifg=#b06d43 gui=NONE
hi pandocSuperscriptTable ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocTable ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocTableStructure ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocTableZebraDark ctermfg=4 ctermbg=0 guifg=#4384b0 guibg=#1d252b gui=NONE
hi pandocTableZebraLight ctermfg=4 ctermbg=8 guifg=#4384b0 guibg=#0b141a gui=NONE
hi pandocTitleBlock ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocTitleBlockTitle cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocTitleComment cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi pandocVerbatimBlock ctermfg=3 guifg=#947b38 gui=NONE
hi pandocVerbatimInline ctermfg=3 guifg=#947b38 gui=NONE
hi pandocVerbatimInlineDefinition ctermfg=13 guifg=#8e6fbd gui=NONE
hi pandocVerbatimInlineHeading cterm=NONE ctermfg=9 guifg=#b06d43 gui=NONE
hi pandocVerbatimInlineTable ctermfg=4 guifg=#4384b0 gui=NONE
hi perlHereDoc ctermfg=14 ctermbg=8 guifg=#808487 guibg=#0b141a gui=NONE
hi perlStatementFileDesc ctermfg=6 ctermbg=8 guifg=#35898c guibg=#0b141a gui=NONE
hi perlVarPlain ctermfg=3 ctermbg=8 guifg=#947b38 guibg=#0b141a gui=NONE
hi rubyDefine cterm=NONE ctermfg=14 ctermbg=8 guifg=#808487 guibg=#0b141a gui=NONE
hi texMathMatcher ctermfg=3 ctermbg=8 guifg=#947b38 guibg=#0b141a gui=NONE
hi texMathZoneX ctermfg=3 ctermbg=8 guifg=#947b38 guibg=#0b141a gui=NONE
hi texRefLabel ctermfg=3 ctermbg=8 guifg=#947b38 guibg=#0b141a gui=NONE
hi texStatement ctermfg=6 ctermbg=8 guifg=#35898c guibg=#0b141a gui=NONE
hi vimCmdSep cterm=NONE ctermfg=4 guifg=#4384b0 gui=NONE
hi vimCommand ctermfg=3 guifg=#947b38 gui=NONE
hi vimCommentString ctermfg=13 guifg=#8e6fbd gui=NONE
hi vimGroup cterm=NONE,underline ctermfg=4 guifg=#4384b0 gui=NONE,underline
hi vimHiGroup ctermfg=4 guifg=#4384b0 gui=NONE
hi vimHiLink ctermfg=4 guifg=#4384b0 gui=NONE
hi vimIsCommand ctermfg=11 guifg=#6d767d gui=NONE
hi vimSynMtchOpt ctermfg=3 guifg=#947b38 gui=NONE
hi vimSynType ctermfg=6 guifg=#35898c gui=NONE
hi link Boolean Constant
hi link Character Constant
hi link Conditional Statement
hi link Debug Special
hi link Define PreProc
hi link Delimiter Special
hi link Exception Statement
hi link Float Number
hi link Function Identifier
hi link HelpCommand Statement
hi link Include PreProc
hi link Keyword Statement
hi link Label Statement
hi link Macro PreProc
hi link Number Constant
hi link Operator Statement
hi link PreCondit PreProc
hi link Repeat Statement
hi link SpecialChar Special
hi link SpecialComment Special
hi link StorageClass Type
hi link String Constant
hi link Structure Type
hi link SyntasticError SpellBad
hi link SyntasticErrorSign Error
hi link SyntasticStyleErrorLine SyntasticErrorLine
hi link SyntasticStyleErrorSign SyntasticErrorSign
hi link SyntasticStyleWarningLine SyntasticWarningLine
hi link SyntasticStyleWarningSign SyntasticWarningSign
hi link SyntasticWarning SpellCap
hi link SyntasticWarningSign Todo
hi link Tag Special
hi link Typedef Type
hi link diffAdded Statement
hi link diffBDiffer WarningMsg
hi link diffCommon WarningMsg
hi link diffDiffer WarningMsg
hi link diffIdentical WarningMsg
hi link diffIsA WarningMsg
hi link diffLine Identifier
hi link diffNoEOL WarningMsg
hi link diffOnly WarningMsg
hi link diffRemoved WarningMsg
hi link gitcommitDiscarded gitcommitComment
hi link gitcommitDiscardedArrow gitcommitDiscardedFile
hi link gitcommitNoBranch gitcommitBranch
hi link gitcommitSelected gitcommitComment
hi link gitcommitSelectedArrow gitcommitSelectedFile
hi link gitcommitUnmergedArrow gitcommitUnmergedFile
hi link gitcommitUntracked gitcommitComment
hi link helpSpecial Special
hi link hsDelimTypeExport Delimiter
hi link hsImportParams Delimiter
hi link hsModuleStartLabel hsStructure
hi link hsModuleWhereLabel hsModuleStartLabel
hi link htmlLink Function
hi link lCursor Cursor
hi link pandocCodeBlock pandocVerbatimBlock
hi link pandocCodeBlockDelim pandocVerbatimBlock
hi link pandocEscapedCharacter pandocEscapePair
hi link pandocLineBreak pandocEscapePair
hi link pandocMetadataTitle pandocMetadata
hi link pandocTableStructureEnd pandocTableStructre
hi link pandocTableStructureTop pandocTableStructre
hi link pandocVerbatimBlockDeep pandocVerbatimBlock
hi link vimFunc Function
hi link vimSet Normal
hi link vimSetEqual Normal
hi link vimUserFunc Function
hi link vipmVar Identifier
hi clear SyntasticErrorLine
hi clear SyntasticWarningLine
hi clear helpLeadBlank
hi clear helpNormal
hi clear pandocTableStructre
if has('nvim')
let g:terminal_color_0 = '#1d252b'
let g:terminal_color_1 = '#ba656d'
let g:terminal_color_2 = '#3f8f36'
let g:terminal_color_3 = '#947b38'
let g:terminal_color_4 = '#4384b0'
let g:terminal_color_5 = '#b06886'
let g:terminal_color_6 = '#35898c'
let g:terminal_color_7 = '#e6eaed'
let g:terminal_color_8 = '#0b141a'
let g:terminal_color_9 = '#b06d43'
let g:terminal_color_10 = '#61707a'
let g:terminal_color_11 = '#6d767d'
let g:terminal_color_12 = '#787e82'
let g:terminal_color_13 = '#8e6fbd'
let g:terminal_color_14 = '#808487'
let g:terminal_color_15 = '#ffffff'
endif
" This colour scheme was generated by modifying the 'flattened_dark' colour
" scheme by Romain Lafourcade (https://github.com/romainl/flattened), which
" is in turn derived from the 'Solarized' colour scheme by Ethan Schnoonover
" (https://github.com/altercation/vim-colors-solarized).

343
vim/colors/spacemacs.vim Normal file
View file

@ -0,0 +1,343 @@
" Spacemacs-theme.vim
" Scheme: Cole Peters, based on nashamri/spacemacs-theme
" GUI color definitions
" ---|-----------------------|--------------
" ## | ORIGINAL THEME SWATCH | ACTUAL COLOUR
" ---|-----------------------|--------------
" 00 | bg1 | dark grey
" 01 | bg2 | darker grey
" 02 | act2 | dark purple
" 03 | n/a | medium cool grey
" 04 | base | light grey
" 05 | base | light grey
" 06 | cblk-ln | purple grey
" 07 | cblk-ln-bg | dark purple grey
" 08 | var | azure
" 09 | const | medium purple
" 0A | comment | teal
" 0B | str | cool green
" 0C | type | coral
" 0D | func | pink
" 0E | keyword | blue
" 0F | act2 | dark purple
" ---|-----------------------|--------------
let s:gui00 = "292b2e"
let s:gui01 = "212026"
let s:gui02 = "5d4d7a"
let s:gui03 = "68727c"
let s:gui04 = "b2b2b2"
let s:gui05 = "b2b2b2"
let s:gui06 = "827591"
let s:gui07 = "373040"
let s:gui08 = "7590db"
let s:gui09 = "a45bad"
let s:gui0A = "2aa1ae"
let s:gui0B = "2d9574"
let s:gui0C = "ce537a"
let s:gui0D = "bc6ec5"
let s:gui0E = "4f97d7"
let s:gui0F = "5d4d7a"
" Additional gui colours
let s:yellow = "b1951d"
let s:green = "67b11d"
let s:white = "ffffff"
" Terminal color definitions
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 = "10"
let s:cterm02 = "11"
let s:cterm04 = "12"
let s:cterm06 = "13"
let s:cterm09 = "09"
let s:cterm0F = "14"
endif
" Theme setup
hi clear
syntax reset
let g:colors_name = "spacemacs-theme"
" Highlighting function
fun <sid>hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp)
if a:guifg != ""
exec "hi " . a:group . " guifg=#" . s:gui(a:guifg)
endif
if a:guibg != ""
exec "hi " . a:group . " guibg=#" . s:gui(a:guibg)
endif
if a:ctermfg != ""
exec "hi " . a:group . " ctermfg=" . s:cterm(a:ctermfg)
endif
if a:ctermbg != ""
exec "hi " . a:group . " ctermbg=" . s:cterm(a:ctermbg)
endif
if a:attr != ""
exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr
endif
if a:guisp != ""
exec "hi " . a:group . " guisp=#" . a:guisp
endif
endfun
" Return GUI color for light/dark variants
fun s:gui(color)
if &background == "dark"
return a:color
endif
if a:color == s:gui00
return s:gui07
elseif a:color == s:gui01
return s:gui06
elseif a:color == s:gui02
return s:gui05
elseif a:color == s:gui03
return s:gui04
elseif a:color == s:gui04
return s:gui03
elseif a:color == s:gui05
return s:gui02
elseif a:color == s:gui06
return s:gui01
elseif a:color == s:gui07
return s:gui00
endif
return a:color
endfun
" Return terminal color for light/dark variants
fun s:cterm(color)
if &background == "dark"
return a:color
endif
if a:color == s:cterm00
return s:cterm07
elseif a:color == s:cterm01
return s:cterm06
elseif a:color == s:cterm02
return s:cterm05
elseif a:color == s:cterm03
return s:cterm04
elseif a:color == s:cterm04
return s:cterm03
elseif a:color == s:cterm05
return s:cterm02
elseif a:color == s:cterm06
return s:cterm01
elseif a:color == s:cterm07
return s:cterm00
endif
return a:color
endfun
" Vim editor colors
call <sid>hi("Bold", "", "", "", "", "bold", "")
call <sid>hi("Debug", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Directory", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Error", s:yellow, s:gui01, s:cterm00, s:cterm08, "", "")
call <sid>hi("ErrorMsg", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "")
call <sid>hi("Exception", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("FoldColumn", s:gui0C, s:gui01, s:cterm0C, s:cterm01, "", "")
call <sid>hi("Folded", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("IncSearch", s:white, s:gui09, s:cterm01, s:cterm09, "none", "")
call <sid>hi("Italic", "", "", "", "", "none", "")
call <sid>hi("Macro", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("MatchParen", s:gui00, s:gui03, s:cterm00, s:cterm03, "", "")
call <sid>hi("ModeMsg", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("MoreMsg", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("Question", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Search", s:gui01, s:green, s:cterm03, s:cterm0A, "", "")
call <sid>hi("SpecialKey", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("TooLong", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Underlined", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Visual", "", s:gui02, "", s:cterm02, "", "")
call <sid>hi("VisualNOS", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("WarningMsg", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("WildMenu", s:white, s:gui0D, s:cterm08, "", "", "")
call <sid>hi("Title", s:gui0D, "", s:cterm0D, "", "none", "")
call <sid>hi("Conceal", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "")
call <sid>hi("Cursor", s:gui00, s:gui05, s:cterm00, s:cterm05, "", "")
call <sid>hi("NonText", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("Normal", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "")
call <sid>hi("LineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("SignColumn", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("StatusLine", s:gui04, s:gui02, s:cterm04, s:cterm02, "none", "")
call <sid>hi("StatusLineNC", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "")
call <sid>hi("VertSplit", s:gui02, s:gui02, s:cterm02, s:cterm02, "none", "")
call <sid>hi("ColorColumn", "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("CursorColumn", "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("CursorLine", "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("CursorLineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("PMenu", s:gui04, s:gui01, s:cterm04, s:cterm01, "none", "")
call <sid>hi("PMenuSel", s:gui01, s:gui04, s:cterm01, s:cterm04, "", "")
call <sid>hi("TabLine", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "")
call <sid>hi("TabLineFill", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "")
call <sid>hi("TabLineSel", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "none", "")
" Standard syntax highlighting
call <sid>hi("Boolean", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Character", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Comment", s:gui06, "", s:cterm03, "", "", "")
call <sid>hi("Conditional", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("Constant", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Define", s:gui0E, "", s:cterm0E, "", "none", "")
call <sid>hi("Delimiter", s:gui0F, "", s:cterm0F, "", "", "")
call <sid>hi("Float", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Function", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Identifier", s:gui08, "", s:cterm08, "", "none", "")
call <sid>hi("Include", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Keyword", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("Label", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Number", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Operator", s:gui05, "", s:cterm05, "", "none", "")
call <sid>hi("PreProc", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Repeat", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Special", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("SpecialChar", s:gui0F, "", s:cterm0F, "", "", "")
call <sid>hi("Statement", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("StorageClass", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("String", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("Structure", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("Tag", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Todo", s:gui0A, s:gui01, s:cterm0A, s:cterm01, "", "")
call <sid>hi("Type", s:gui0A, "", s:cterm0A, "", "none", "")
call <sid>hi("Typedef", s:gui0A, "", s:cterm0A, "", "", "")
" C highlighting
call <sid>hi("cOperator", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("cPreCondit", s:gui0E, "", s:cterm0E, "", "", "")
" C# highlighting
call <sid>hi("csClass", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("csAttribute", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("csModifier", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("csType", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("csUnspecifiedStatement", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("csContextualStatement", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("csNewDecleration", s:gui08, "", s:cterm08, "", "", "")
" CSS highlighting
call <sid>hi("cssBraces", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("cssClassName", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("cssColor", s:gui0C, "", s:cterm0C, "", "", "")
" Diff highlighting
call <sid>hi("DiffAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "")
call <sid>hi("DiffChange", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("DiffDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "")
call <sid>hi("DiffText", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "")
call <sid>hi("DiffAdded", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "")
call <sid>hi("DiffFile", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "")
call <sid>hi("DiffNewFile", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "")
call <sid>hi("DiffLine", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "")
call <sid>hi("DiffRemoved", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "")
" Git highlighting
call <sid>hi("gitCommitOverflow", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("gitCommitSummary", s:gui0B, "", s:cterm0B, "", "", "")
" GitGutter highlighting
call <sid>hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "")
call <sid>hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "")
call <sid>hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "")
call <sid>hi("GitGutterChangeDelete", s:gui0E, s:gui01, s:cterm0E, s:cterm01, "", "")
" HTML highlighting
call <sid>hi("htmlBold", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("htmlItalic", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("htmlEndTag", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("htmlTag", s:gui05, "", s:cterm05, "", "", "")
" JavaScript highlighting
call <sid>hi("javaScript", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("javaScriptBraces", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("javaScriptNumber", s:gui09, "", s:cterm09, "", "", "")
" Mail highlighting
call <sid>hi("mailQuoted1", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("mailQuoted2", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("mailQuoted3", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("mailQuoted4", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("mailQuoted5", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("mailQuoted6", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("mailURL", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("mailEmail", s:gui0D, "", s:cterm0D, "", "", "")
" Markdown highlighting
call <sid>hi("markdownCode", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("markdownError", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "")
call <sid>hi("markdownCodeBlock", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("markdownHeadingDelimiter", s:gui0D, "", s:cterm0D, "", "", "")
" NERDTree highlighting
call <sid>hi("NERDTreeDirSlash", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("NERDTreeExecFile", s:gui05, "", s:cterm05, "", "", "")
" PHP highlighting
call <sid>hi("phpMemberSelector", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("phpComparison", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("phpParent", s:gui05, "", s:cterm05, "", "", "")
" Python highlighting
call <sid>hi("pythonOperator", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("pythonRepeat", s:gui0E, "", s:cterm0E, "", "", "")
" Ruby highlighting
call <sid>hi("rubyAttribute", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("rubyConstant", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("rubyInterpolation", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("rubyInterpolationDelimiter", s:gui0F, "", s:cterm0F, "", "", "")
call <sid>hi("rubyRegexp", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("rubySymbol", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("rubyStringDelimiter", s:gui0B, "", s:cterm0B, "", "", "")
" SASS highlighting
call <sid>hi("sassidChar", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("sassClassChar", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("sassInclude", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("sassMixing", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("sassMixinName", s:gui0D, "", s:cterm0D, "", "", "")
" Signify highlighting
call <sid>hi("SignifySignAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "")
call <sid>hi("SignifySignChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "")
call <sid>hi("SignifySignDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "")
" Spelling highlighting
call <sid>hi("SpellBad", "", s:gui00, "", s:cterm00, "undercurl", s:gui08)
call <sid>hi("SpellLocal", "", s:gui00, "", s:cterm00, "undercurl", s:gui0C)
call <sid>hi("SpellCap", "", s:gui00, "", s:cterm00, "undercurl", s:gui0D)
call <sid>hi("SpellRare", "", s:gui00, "", s:cterm00, "undercurl", s:gui0E)
" Remove functions
delf <sid>hi
delf <sid>gui
delf <sid>cterm
" 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