Skip to content

Instantly share code, notes, and snippets.

@adscriven
Last active September 25, 2020 23:54
Show Gist options
  • Save adscriven/bed796169dd79bb90d63cfd5ab194a15 to your computer and use it in GitHub Desktop.
Save adscriven/bed796169dd79bb90d63cfd5ab194a15 to your computer and use it in GitHub Desktop.
" Name: delek
" Description: Interpretation of standard delek colorscheme.
" Original Author: David Schweikert <[email protected]>
" Maintainer: [email protected]
" License: Vim License (see `:help license`)
" Last Updated: 2020-09-24 Iau 16:44
" * first draft -- maybe last? Diverges from the original.
" - 256/gui only -- no checks for color capability
" - 256 & gui colours should now look almost identical
" - preproc magenta does not work for me -- changed to green
" - html had more green in the original; moved to orange
" - tweaked other colours, and moved stuff around, but tried to keep
" the orange/blue vibe going (e.g. less statusline orange, but more
" comment orange)
" - not added :term colours
" - messes with and restores links so I can work with it on Windows
" - can remove the link restoring stuff at a later date
" - lots of guisp because something else had set it and it was messing
" up fg and bg colours for groups -- need to investigate that
hi clear
let s:name = expand('<sfile>:t:r')
let colors_name = s:name
hi Normal ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi Boolean ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi Character ctermfg=34 ctermbg=NONE cterm=NONE guifg=#00af00 guibg=NONE gui=NONE guisp=NONE
hi ColorColumn ctermfg=NONE ctermbg=224 cterm=NONE guifg=NONE guibg=#ffd7d7 gui=NONE guisp=NONE
hi Comment ctermfg=166 ctermbg=NONE cterm=NONE guifg=#d75f00 guibg=NONE gui=NONE guisp=NONE
hi Conceal ctermfg=248 ctermbg=NONE cterm=NONE guifg=#a8a8a8 guibg=NONE gui=NONE guisp=NONE
hi Conditional ctermfg=20 ctermbg=NONE cterm=NONE guifg=#0000d7 guibg=NONE gui=NONE guisp=NONE
hi Constant ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi Cursor ctermfg=231 ctermbg=160 cterm=NONE guifg=#ffffff guibg=#d70000 gui=NONE guisp=NONE
hi CursorColumn ctermfg=NONE ctermbg=254 cterm=NONE guifg=NONE guibg=#e4e4e4 gui=NONE guisp=NONE
hi CursorIM ctermfg=231 ctermbg=21 cterm=NONE guifg=#ffffff guibg=#0000ff gui=NONE guisp=NONE
hi CursorLine ctermfg=NONE ctermbg=255 cterm=NONE guifg=NONE guibg=#eeeeee gui=NONE guisp=NONE
hi CursorLineNr ctermfg=172 ctermbg=255 cterm=bold guifg=#d78700 guibg=#eeeeee gui=bold guisp=NONE
hi Debug ctermfg=244 ctermbg=NONE cterm=NONE guifg=#808080 guibg=NONE gui=NONE guisp=NONE
hi debugBreakpoint ctermfg=NONE ctermbg=216 cterm=NONE guifg=NONE guibg=#ffaf87 gui=NONE guisp=NONE
hi debugPC ctermfg=NONE ctermbg=192 cterm=NONE guifg=NONE guibg=#d7ff87 gui=NONE guisp=NONE
hi Define ctermfg=34 ctermbg=NONE cterm=NONE guifg=#00af00 guibg=NONE gui=NONE guisp=NONE
hi Delimiter ctermfg=244 ctermbg=NONE cterm=NONE guifg=#808080 guibg=NONE gui=NONE guisp=NONE
hi DiffAdd ctermfg=22 ctermbg=193 cterm=NONE guifg=#005f00 guibg=#d7ffaf gui=NONE guisp=NONE
hi DiffChange ctermfg=20 ctermbg=153 cterm=NONE guifg=#0000d7 guibg=#afd7ff gui=NONE guisp=NONE
hi DiffDelete ctermfg=178 ctermbg=255 cterm=NONE guifg=#d7af00 guibg=#eeeeee gui=NONE guisp=NONE
hi DiffText ctermfg=62 ctermbg=231 cterm=reverse guifg=#5f5fd7 guibg=#ffffff gui=reverse guisp=NONE
hi Directory ctermfg=20 ctermbg=NONE cterm=NONE guifg=#0000d7 guibg=NONE gui=NONE guisp=NONE
hi EndOfBuffer ctermfg=248 ctermbg=NONE cterm=NONE guifg=#a8a8a8 guibg=NONE gui=NONE guisp=NONE
hi Error ctermfg=196 ctermbg=231 cterm=reverse guifg=#ff0000 guibg=#ffffff gui=reverse guisp=NONE
hi ErrorMsg ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi Exception ctermfg=20 ctermbg=NONE cterm=NONE guifg=#0000d7 guibg=NONE gui=NONE guisp=NONE
hi Float ctermfg=160 ctermbg=NONE cterm=NONE guifg=#d70000 guibg=NONE gui=NONE guisp=NONE
hi FoldColumn ctermfg=244 ctermbg=255 cterm=NONE guifg=#808080 guibg=#eeeeee gui=NONE guisp=NONE
hi Folded ctermfg=244 ctermbg=NONE cterm=NONE guifg=#808080 guibg=NONE gui=NONE guisp=NONE
hi Function ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi helpCommand ctermfg=61 ctermbg=NONE cterm=NONE guifg=#5f5faf guibg=NONE gui=NONE guisp=NONE
hi helpHeader ctermfg=fg ctermbg=NONE cterm=bold guifg=fg guibg=NONE gui=bold guisp=NONE
hi helpHyperTextEntry ctermfg=248 ctermbg=NONE cterm=NONE guifg=#a8a8a8 guibg=NONE gui=NONE guisp=NONE
hi helpHyperTextJump ctermfg=20 ctermbg=NONE cterm=NONE guifg=#0000d7 guibg=NONE gui=NONE guisp=NONE
hi helpSectionDelim ctermfg=34 ctermbg=NONE cterm=NONE guifg=#00af00 guibg=NONE gui=NONE guisp=NONE
hi helpSpecial ctermfg=166 ctermbg=NONE cterm=NONE guifg=#d75f00 guibg=NONE gui=NONE guisp=NONE
hi htmlArg ctermfg=160 ctermbg=NONE cterm=NONE guifg=#d70000 guibg=NONE gui=NONE guisp=NONE
hi htmlComment ctermfg=248 ctermbg=NONE cterm=NONE guifg=#a8a8a8 guibg=NONE gui=NONE guisp=NONE
hi htmlCommentPart ctermfg=248 ctermbg=NONE cterm=NONE guifg=#a8a8a8 guibg=NONE gui=NONE guisp=NONE
hi htmlEndTag ctermfg=61 ctermbg=NONE cterm=NONE guifg=#5f5faf guibg=NONE gui=NONE guisp=NONE
hi htmlString ctermfg=166 ctermbg=NONE cterm=NONE guifg=#d75f00 guibg=NONE gui=NONE guisp=NONE
hi htmlTag ctermfg=61 ctermbg=NONE cterm=NONE guifg=#5f5faf guibg=NONE gui=NONE guisp=NONE
hi htmlTagName ctermfg=20 ctermbg=NONE cterm=NONE guifg=#0000d7 guibg=NONE gui=NONE guisp=NONE
hi htmlValue ctermfg=166 ctermbg=NONE cterm=NONE guifg=#d75f00 guibg=NONE gui=NONE guisp=NONE
hi Identifier ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi Ignore ctermfg=248 ctermbg=NONE cterm=NONE guifg=#a8a8a8 guibg=NONE gui=NONE guisp=NONE
hi Include ctermfg=34 ctermbg=NONE cterm=NONE guifg=#00af00 guibg=NONE gui=NONE guisp=NONE
hi IncSearch ctermfg=16 ctermbg=231 cterm=bold guifg=#000000 guibg=#ffffff gui=bold guisp=NONE
hi incsearch ctermfg=231 ctermbg=233 cterm=NONE guifg=#ffffff guibg=#121212 gui=NONE guisp=NONE
hi Keyword ctermfg=20 ctermbg=NONE cterm=NONE guifg=#0000d7 guibg=NONE gui=NONE guisp=NONE
hi Label ctermfg=20 ctermbg=NONE cterm=NONE guifg=#0000d7 guibg=NONE gui=NONE guisp=NONE
hi lCursor ctermfg=231 ctermbg=40 cterm=NONE guifg=#ffffff guibg=#00d700 gui=NONE guisp=NONE
hi LineNr ctermfg=248 ctermbg=NONE cterm=NONE guifg=#a8a8a8 guibg=NONE gui=NONE guisp=NONE
hi LineNrAbove ctermfg=248 ctermbg=NONE cterm=NONE guifg=#a8a8a8 guibg=NONE gui=NONE guisp=NONE
hi LineNrBelow ctermfg=248 ctermbg=NONE cterm=NONE guifg=#a8a8a8 guibg=NONE gui=NONE guisp=NONE
hi Macro ctermfg=34 ctermbg=NONE cterm=NONE guifg=#00af00 guibg=NONE gui=NONE guisp=NONE
hi MatchParen ctermfg=fg ctermbg=255 cterm=bold,underline guifg=fg guibg=#eeeeee gui=bold,underline guisp=NONE
hi ModeMsg ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi MoreMsg ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi NonText ctermfg=248 ctermbg=NONE cterm=NONE guifg=#a8a8a8 guibg=NONE gui=NONE guisp=NONE
hi Number ctermfg=160 ctermbg=NONE cterm=NONE guifg=#d70000 guibg=NONE gui=NONE guisp=NONE
hi Operator ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi Pmenu ctermfg=233 ctermbg=253 cterm=NONE guifg=#121212 guibg=#dadada gui=NONE guisp=NONE
hi PmenuSbar ctermfg=NONE ctermbg=251 cterm=NONE guifg=NONE guibg=#c6c6c6 gui=NONE guisp=NONE
hi PmenuSel ctermfg=231 ctermbg=26 cterm=NONE guifg=#ffffff guibg=#005fd7 gui=NONE guisp=NONE
hi PmenuThumb ctermfg=16 ctermbg=247 cterm=NONE guifg=#000000 guibg=#9e9e9e gui=NONE guisp=NONE
hi PreCondit ctermfg=34 ctermbg=NONE cterm=NONE guifg=#00af00 guibg=NONE gui=NONE guisp=NONE
hi PreProc ctermfg=34 ctermbg=NONE cterm=NONE guifg=#00af00 guibg=NONE gui=NONE guisp=NONE
hi Question ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi QuickFixLine ctermfg=NONE ctermbg=255 cterm=NONE guifg=NONE guibg=#eeeeee gui=NONE guisp=NONE
hi Repeat ctermfg=20 ctermbg=NONE cterm=NONE guifg=#0000d7 guibg=NONE gui=NONE guisp=NONE
hi Search ctermfg=16 ctermbg=227 cterm=NONE guifg=#000000 guibg=#ffff5f gui=NONE guisp=NONE
hi SignColumn ctermfg=244 ctermbg=255 cterm=NONE guifg=#808080 guibg=#eeeeee gui=NONE guisp=NONE
hi Special ctermfg=244 ctermbg=NONE cterm=NONE guifg=#808080 guibg=NONE gui=NONE guisp=NONE
hi SpecialChar ctermfg=244 ctermbg=NONE cterm=NONE guifg=#808080 guibg=NONE gui=NONE guisp=NONE
hi SpecialComment ctermfg=244 ctermbg=NONE cterm=NONE guifg=#808080 guibg=NONE gui=NONE guisp=NONE
hi SpecialKey ctermfg=166 ctermbg=NONE cterm=NONE guifg=#d75f00 guibg=NONE gui=NONE guisp=NONE
hi SpellBad ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline guisp=NONE
hi SpellCap ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline guisp=NONE
hi SpellLocal ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline guisp=NONE
hi SpellRare ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline guisp=NONE
hi Statement ctermfg=20 ctermbg=NONE cterm=NONE guifg=#0000d7 guibg=NONE gui=NONE guisp=NONE
hi StatusLine ctermfg=238 ctermbg=221 cterm=NONE guifg=#444444 guibg=#ffd75f gui=NONE guisp=NONE
hi StatusLineNC ctermfg=241 ctermbg=252 cterm=NONE guifg=#626262 guibg=#d0d0d0 gui=NONE guisp=NONE
hi StatusLineTerm ctermfg=238 ctermbg=156 cterm=NONE guifg=#444444 guibg=#afff87 gui=NONE guisp=NONE
hi StatusLineTermNC ctermfg=241 ctermbg=252 cterm=NONE guifg=#626262 guibg=#d0d0d0 gui=NONE guisp=NONE
hi StorageClass ctermfg=61 ctermbg=NONE cterm=NONE guifg=#5f5faf guibg=NONE gui=NONE guisp=NONE
hi String ctermfg=34 ctermbg=NONE cterm=NONE guifg=#00af00 guibg=NONE gui=NONE guisp=NONE
hi Structure ctermfg=61 ctermbg=NONE cterm=NONE guifg=#5f5faf guibg=NONE gui=NONE guisp=NONE
hi TabLine ctermfg=241 ctermbg=252 cterm=NONE guifg=#626262 guibg=#d0d0d0 gui=NONE guisp=NONE
hi TabLineFill ctermfg=241 ctermbg=248 cterm=NONE guifg=#626262 guibg=#a8a8a8 gui=NONE guisp=NONE
hi TabLineSel ctermfg=239 ctermbg=NONE cterm=NONE guifg=#4e4e4e guibg=NONE gui=NONE guisp=NONE
hi Tag ctermfg=244 ctermbg=NONE cterm=NONE guifg=#808080 guibg=NONE gui=NONE guisp=NONE
hi Terminal ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi Title ctermfg=fg ctermbg=NONE cterm=bold guifg=fg guibg=NONE gui=bold guisp=NONE
hi Todo ctermfg=202 ctermbg=NONE cterm=bold guifg=#ff5f00 guibg=NONE gui=bold guisp=NONE
hi ToolbarButton ctermfg=241 ctermbg=250 cterm=NONE guifg=#626262 guibg=#bcbcbc gui=NONE guisp=NONE
hi ToolbarLine ctermfg=16 ctermbg=253 cterm=NONE guifg=#000000 guibg=#dadada gui=NONE guisp=NONE
hi Type ctermfg=61 ctermbg=NONE cterm=NONE guifg=#5f5faf guibg=NONE gui=NONE guisp=NONE
hi Typedef ctermfg=61 ctermbg=NONE cterm=NONE guifg=#5f5faf guibg=NONE gui=NONE guisp=NONE
hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline guisp=NONE
hi VertSplit ctermfg=244 ctermbg=NONE cterm=NONE guifg=#808080 guibg=NONE gui=NONE guisp=NONE
hi vertsplit ctermfg=249 ctermbg=255 cterm=bold guifg=#b2b2b2 guibg=#eeeeee gui=bold guisp=NONE
hi Visual ctermfg=NONE ctermbg=253 cterm=NONE guifg=NONE guibg=#dadada gui=NONE guisp=NONE
hi VisualNOS ctermfg=NONE ctermbg=253 cterm=NONE guifg=NONE guibg=#dadada gui=NONE guisp=NONE
hi WarningMsg ctermfg=234 ctermbg=231 cterm=NONE guifg=#1c1c1c guibg=#ffffff gui=NONE guisp=NONE
hi WildMenu ctermfg=16 ctermbg=255 cterm=NONE guifg=#000000 guibg=#eeeeee gui=NONE guisp=NONE
let s:restore = {
\ 'htmlCommentPart': 'Comment',
\ 'htmlComment': 'Comment',
\ 'helpHeader': 'PreProc',
\ 'helpHyperTextentry': 'String',
\ 'helpSectionDelim': 'PreProc',
\ 'helpSpecial': 'Special',
\ 'htmlValue': 'String',
\ 'htmlEndTag': 'Identifier',
\ 'helpHyperTextJump': 'Identifier',
\ 'htmlArg': 'Type',
\ 'helpCommand': 'Comment',
\ 'htmlTagName': 'htmlStatement',
\ 'htmlString': 'String',
\ 'htmlTag': 'Function'}
function s:fixlinks(restore)
for [group, link] in items(a:restore)
exe 'hi! link ' . group . ' ' . link
endfor
endfunction
function s:aufixlinks()
if !has('patch-8.2.1703')
exe 'augroup colorscheme_' . s:name
au!
au colorschemepre * call s:fixlinks(s:restore) | exe 'au! colorscheme_' . s:name
augroup END
endif
endfunction
call s:aufixlinks()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment