akiicatvim-github-theme
0
-1/week
Github color theme for vim
created almost 2 years ago
last commit almost 2 years ago
github_dark_protanopia_deuteranopia
vim
12
set background=colorschemeNORMAL.vimrcunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12
github_light_tritanopia
vim
12
set background=colorschemeNORMAL.vimrcunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12
github_dark
vim
12
set background=colorschemeNORMAL.vimrcunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12
github_dark_high_contrast
vim
12
set background=colorschemeNORMAL.vimrcunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12
github_dark_tritanopia
vim
12
set background=colorschemeNORMAL.vimrcunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12
github_light
vim
12
set background=colorschemeNORMAL.vimrcunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12
github_light_high_contrast
vim
12
set background=colorschemeNORMAL.vimrcunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12
github_light_protanopia_deuteranopia
vim
12
set background=colorschemeNORMAL.vimrcunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12
github_dark_dimmed
vim
12
set background=colorschemeNORMAL.vimrcunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12