From 72ce081b2d32810ea71df102a1714c8513757923 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Mon, 11 Sep 2017 06:44:31 +0200 Subject: [PATCH] Remove termguicolors --- tmux/.tmux.conf | 1 - vim/.vimrc | 17 +- vim/colors/PaperColor.vim | 2093 +++++++++++++++++++++++++ vim/colors/afterglow.vim | 538 ------- vim/colors/alduin.vim | 284 ---- vim/colors/base16-atelier-savanna.vim | 330 ---- vim/colors/base16-eighties.vim | 330 ---- vim/colors/base16-github.vim | 330 ---- vim/colors/base16-google-dark.vim | 330 ---- vim/colors/basic-dark.vim | 430 ----- vim/colors/basic-light.vim | 394 ----- vim/colors/bubblegum-256-light.vim | 160 ++ vim/colors/crunchbang.vim | 327 ---- vim/colors/deus.vim | 1220 -------------- vim/colors/garden.vim | 97 -- vim/colors/greygull.vim | 315 ---- vim/colors/gruvbox.vim | 1239 --------------- vim/colors/kalisi.vim | 621 ++++++++ vim/colors/mayansmoke.vim | 342 ---- vim/colors/messy.vim | 97 -- vim/colors/molokai.vim | 276 ---- vim/colors/petrel.vim | 327 ---- vim/colors/seagull.vim | 315 ---- vim/colors/solarized.vim | 1117 ------------- vim/colors/spacegray.vim | 159 -- vim/colors/spacemacs.vim | 343 ---- vim/colors/summerfruit256.vim | 321 ---- vim/colors/xcode.vim | 273 ---- 28 files changed, 2878 insertions(+), 9748 deletions(-) create mode 100644 vim/colors/PaperColor.vim delete mode 100644 vim/colors/afterglow.vim delete mode 100755 vim/colors/alduin.vim delete mode 100644 vim/colors/base16-atelier-savanna.vim delete mode 100644 vim/colors/base16-eighties.vim delete mode 100644 vim/colors/base16-github.vim delete mode 100644 vim/colors/base16-google-dark.vim delete mode 100644 vim/colors/basic-dark.vim delete mode 100644 vim/colors/basic-light.vim create mode 100644 vim/colors/bubblegum-256-light.vim delete mode 100644 vim/colors/crunchbang.vim delete mode 100644 vim/colors/deus.vim delete mode 100644 vim/colors/garden.vim delete mode 100644 vim/colors/greygull.vim delete mode 100644 vim/colors/gruvbox.vim create mode 100644 vim/colors/kalisi.vim delete mode 100644 vim/colors/mayansmoke.vim delete mode 100644 vim/colors/messy.vim delete mode 100644 vim/colors/molokai.vim delete mode 100644 vim/colors/petrel.vim delete mode 100644 vim/colors/seagull.vim delete mode 100644 vim/colors/solarized.vim delete mode 100644 vim/colors/spacegray.vim delete mode 100644 vim/colors/spacemacs.vim delete mode 100644 vim/colors/summerfruit256.vim delete mode 100644 vim/colors/xcode.vim diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index ce73835..f1ca62a 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -35,7 +35,6 @@ set -g mouse on # Terminal colors set -g default-terminal "xterm-256color" -set-option -ga terminal-overrides ",xterm-256color:Tc" set-option -ga update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID \ SSH_CONNECTION WINDOWID XAUTHORITY" diff --git a/vim/.vimrc b/vim/.vimrc index 85f730d..39f4878 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -6,7 +6,7 @@ filetype indent on "Fix different locale settings when ssh'ing set encoding=utf-8 -"Set syntax on +"syntax on syntax enable "4 spaces instead of tabs @@ -26,25 +26,16 @@ set wildmenu set backspace=2 -" Vim & Tmux background color fix -set t_ut= - -" Light colorscheme by default -colorscheme seagull - "Change theme depending on the time of day let hr = (strftime('%H')) if hr >= 19 - colorscheme base16-eighties + colorscheme Tomorrow-Night elseif hr >= 8 - colorscheme xcode + colorscheme bubblegum-256-light elseif hr >= 0 - colorscheme base16-eighties + colorscheme Tomorrow-Night endif -" Terminal colors -set termguicolors - "Automatically source vimrc on save. autocmd! bufwritepost $MYVIMRC source $MYVIMRC diff --git a/vim/colors/PaperColor.vim b/vim/colors/PaperColor.vim new file mode 100644 index 0000000..d13cec5 --- /dev/null +++ b/vim/colors/PaperColor.vim @@ -0,0 +1,2093 @@ +" Theme: PaperColor +" Author: Nikyle Nguyen +" License: MIT +" Source: http://github.com/NLKNguyen/papercolor-theme + +let s:version = '0.9.x' + +" Note on navigating this source code: +" - Use folding feature to collapse/uncollapse blocks of marked code +" zM to fold all markers in this file to see the structure of the source code +" zR to unfold all recursively +" za to toggle a fold +" See: http://vim.wikia.com/wiki/Folding +" - The main section where functions are actually called is located at the end. +" - The first section right after this note is where themes are defined. Theme +" designers only need to work on this section. + +" THEMES: {{{ + +let s:themes = {} + +" Theme name should be lowercase +let s:themes['default'] = { + \ 'maintainer' : 'Nikyle Nguyen', + \ 'source' : 'http://github.com/NLKNguyen/papercolor-theme', + \ 'description' : 'Original PaperColor Theme, inspired by Google Material Design', + \ } + +" Theme can have 'light' and/or 'dark' color palette. +" Color values can be HEX and/or 256-color. Use empty string '' if not provided. +" Only color00 -> color15 are required. The rest are optional. +let s:themes['default'].light = { + \ 'TEST_256_COLOR_CONSISTENCY' : 1, + \ 'palette' : { + \ 'color00' : ['#eeeeee', '255'], + \ 'color01' : ['#af0000', '124'], + \ 'color02' : ['#008700', '28'], + \ 'color03' : ['#5f8700', '64'], + \ 'color04' : ['#0087af', '31'], + \ 'color05' : ['#878787', '102'], + \ 'color06' : ['#005f87', '24'], + \ 'color07' : ['#444444', '238'], + \ 'color08' : ['#bcbcbc', '250'], + \ 'color09' : ['#d70000', '160'], + \ 'color10' : ['#d70087', '162'], + \ 'color11' : ['#8700af', '91'], + \ 'color12' : ['#d75f00', '166'], + \ 'color13' : ['#d75f00', '166'], + \ 'color14' : ['#005faf', '25'], + \ 'color15' : ['#005f87', '24'], + \ 'color16' : ['#0087af', '31'], + \ 'color17' : ['#008700', '28'], + \ 'cursor_fg' : ['#eeeeee', '255'], + \ 'cursor_bg' : ['#005f87', '24'], + \ 'cursorline' : ['#e4e4e4', '254'], + \ 'cursorcolumn' : ['#e4e4e4', '254'], + \ 'cursorlinenr_fg' : ['#af5f00', '130'], + \ 'cursorlinenr_bg' : ['#eeeeee', '255'], + \ 'popupmenu_fg' : ['#444444', '238'], + \ 'popupmenu_bg' : ['#d0d0d0', '252'], + \ 'search_fg' : ['#444444', '238'], + \ 'search_bg' : ['#ffff5f', '227'], + \ 'linenumber_fg' : ['#b2b2b2', '249'], + \ 'linenumber_bg' : ['#eeeeee', '255'], + \ 'vertsplit_fg' : ['#005f87', '24'], + \ 'vertsplit_bg' : ['#eeeeee', '255'], + \ 'statusline_active_fg' : ['#e4e4e4', '254'], + \ 'statusline_active_bg' : ['#005f87', '24'], + \ 'statusline_inactive_fg' : ['#444444', '238'], + \ 'statusline_inactive_bg' : ['#d0d0d0', '252'], + \ 'todo_fg' : ['#00af5f', '35'], + \ 'todo_bg' : ['#eeeeee', '255'], + \ 'error_fg' : ['#af0000', '124'], + \ 'error_bg' : ['#ffd7ff', '225'], + \ 'matchparen_bg' : ['#c6c6c6', '251'], + \ 'matchparen_fg' : ['#005f87', '24'], + \ 'visual_fg' : ['#eeeeee', '255'], + \ 'visual_bg' : ['#0087af', '31'], + \ 'folded_fg' : ['#0087af', '31'], + \ 'folded_bg' : ['#afd7ff', '153'], + \ 'wildmenu_fg': ['#444444', '238'], + \ 'wildmenu_bg': ['#ffff00', '226'], + \ 'spellbad': ['#ffafd7', '218'], + \ 'spellcap': ['#ffffaf', '229'], + \ 'spellrare': ['#afff87', '156'], + \ 'spelllocal': ['#d7d7ff', '189'], + \ 'diffadd_fg': ['#008700', '28'], + \ 'diffadd_bg': ['#afffaf', '157'], + \ 'diffdelete_fg': ['#af0000', '124'], + \ 'diffdelete_bg': ['#ffd7ff', '225'], + \ 'difftext_fg': ['#0087af', '31'], + \ 'difftext_bg': ['#ffffd7', '230'], + \ 'diffchange_fg': ['#444444', '238'], + \ 'diffchange_bg': ['#ffd787', '222'], + \ 'tabline_bg': ['#005f87', '24'], + \ 'tabline_active_fg': ['#444444', '238'], + \ 'tabline_active_bg': ['#e4e4e4', '254'], + \ 'tabline_inactive_fg': ['#eeeeee', '255'], + \ 'tabline_inactive_bg': ['#0087af', '31'], + \ 'buftabline_bg': ['#005f87', '24'], + \ 'buftabline_current_fg': ['#444444', '238'], + \ 'buftabline_current_bg': ['#e4e4e4', '254'], + \ 'buftabline_active_fg': ['#eeeeee', '255'], + \ 'buftabline_active_bg': ['#005faf', '25'], + \ 'buftabline_inactive_fg': ['#eeeeee', '255'], + \ 'buftabline_inactive_bg': ['#0087af', '31'] + \ } + \ } + +let s:themes['default'].dark = { + \ 'TEST_256_COLOR_CONSISTENCY' : 1, + \ 'palette' : { + \ 'color00' : ['#1c1c1c', '234'], + \ 'color01' : ['#af005f', '125'], + \ 'color02' : ['#5faf00', '70'], + \ 'color03' : ['#d7af5f', '179'], + \ 'color04' : ['#5fafd7', '74'], + \ 'color05' : ['#808080', '244'], + \ 'color06' : ['#d7875f', '173'], + \ 'color07' : ['#d0d0d0', '252'], + \ 'color08' : ['#585858', '240'], + \ 'color09' : ['#5faf5f', '71'], + \ 'color10' : ['#afd700', '148'], + \ 'color11' : ['#af87d7', '140'], + \ 'color12' : ['#ffaf00', '214'], + \ 'color13' : ['#ff5faf', '205'], + \ 'color14' : ['#00afaf', '37'], + \ 'color15' : ['#5f8787', '66'], + \ 'color16' : ['#5fafd7', '74'], + \ 'color17' : ['#d7af00', '178'], + \ 'cursor_fg' : ['#1c1c1c', '234'], + \ 'cursor_bg' : ['#c6c6c6', '251'], + \ 'cursorline' : ['#303030', '236'], + \ 'cursorcolumn' : ['#303030', '236'], + \ 'cursorlinenr_fg' : ['#ffff00', '226'], + \ 'cursorlinenr_bg' : ['#1c1c1c', '234'], + \ 'popupmenu_fg' : ['#c6c6c6', '251'], + \ 'popupmenu_bg' : ['#303030', '236'], + \ 'search_fg' : ['#000000', '16'], + \ 'search_bg' : ['#00875f', '29'], + \ 'linenumber_fg' : ['#585858', '240'], + \ 'linenumber_bg' : ['#1c1c1c', '234'], + \ 'vertsplit_fg' : ['#5f8787', '66'], + \ 'vertsplit_bg' : ['#1c1c1c', '234'], + \ 'statusline_active_fg' : ['#1c1c1c', '234'], + \ 'statusline_active_bg' : ['#5f8787', '66'], + \ 'statusline_inactive_fg' : ['#bcbcbc', '250'], + \ 'statusline_inactive_bg' : ['#3a3a3a', '237'], + \ 'todo_fg' : ['#ff8700', '208'], + \ 'todo_bg' : ['#1c1c1c', '234'], + \ 'error_fg' : ['#af005f', '125'], + \ 'error_bg' : ['#5f0000', '52'], + \ 'matchparen_bg' : ['#4e4e4e', '239'], + \ 'matchparen_fg' : ['#c6c6c6', '251'], + \ 'visual_fg' : ['#000000', '16'], + \ 'visual_bg' : ['#8787af', '103'], + \ 'folded_fg' : ['#d787ff', '177'], + \ 'folded_bg' : ['#5f005f', '53'], + \ 'wildmenu_fg': ['#1c1c1c', '234'], + \ 'wildmenu_bg': ['#afd700', '148'], + \ 'tabline_bg': ['#262626', '235'], + \ 'tabline_active_fg': ['#121212', '233'], + \ 'tabline_active_bg': ['#00afaf', '37'], + \ 'tabline_inactive_fg': ['#bcbcbc', '250'], + \ 'tabline_inactive_bg': ['#585858', '240'], + \ 'spellbad': ['#5f0000', '52'], + \ 'spellcap': ['#5f005f', '53'], + \ 'spellrare': ['#005f00', '22'], + \ 'spelllocal': ['#00005f', '17'], + \ 'diffadd_fg': ['#87d700', '112'], + \ 'diffadd_bg': ['#005f00', '22'], + \ 'diffdelete_fg': ['#af005f', '125'], + \ 'diffdelete_bg': ['#5f0000', '52'], + \ 'difftext_fg': ['#5fffff', '87'], + \ 'difftext_bg': ['#008787', '30'], + \ 'diffchange_fg': ['#d0d0d0', '252'], + \ 'diffchange_bg': ['#005f5f', '23'] + \ } + \ } + + +" }}} + +" Get Selected Theme: {{{ + +let s:theme_name = 'default' + +if exists("g:PaperColor_Theme") " Users expressed theme preference + let lowercase_theme_name = tolower(g:PaperColor_Theme) + + if has_key(s:themes, lowercase_theme_name) "the name is part of built-in themes + let s:theme_name = lowercase_theme_name + + else "expect a variable with a designated theme name + let theme_variable = "g:PaperColor_Theme_" . lowercase_theme_name + + if exists(theme_variable) + " Register custom theme to theme dictionary + let s:themes[lowercase_theme_name] = {theme_variable} + let s:theme_name = lowercase_theme_name + else + echom "Cannot find variable " . theme_variable + " Still use 'default' theme + endif + + endif +endif + +let s:selected_theme = s:themes[s:theme_name] + + +" }}} + +" Command to show theme information {{{ +fun! g:PaperColor() + echom 'PaperColor Theme Framework' + echom ' version ' . s:version + echom ' by Nikyle Nguyen et al.' + echom ' at https://github.com/NLKNguyen/papercolor-theme/' + echom ' ' + echom 'Current theme: ' . s:theme_name + echom ' ' . s:selected_theme['description'] + echom ' by ' . s:selected_theme['maintainer'] + echom ' at ' . s:selected_theme['source'] + + " TODO: add diff display for theme color names between 'default' and current + " theme if it is a custom theme, i.e. child theme. +endfun + +" @brief command alias for g:PaperColor() +command! -nargs=0 PaperColor :call g:PaperColor() +" }}} + +" Get Theme Variant: either dark or light {{{ +let s:selected_variant = 'dark' + +let s:is_dark=(&background == 'dark') + +if s:is_dark + if has_key(s:selected_theme, 'dark') + let s:selected_variant = 'dark' + else " in case the theme only provides the other variant + let s:selected_variant = 'light' + endif + +else " is light background + if has_key(s:selected_theme, 'light') + let s:selected_variant = 'light' + else " in case the theme only provides the other variant + let s:selected_variant = 'dark' + endif +endif + +let s:palette = s:selected_theme[s:selected_variant].palette +" }}} + +" Systematic User-Config Options: {{{ +" Example config in .vimrc +" let g:PaperColor_Theme_Options = { +" \ 'theme': { +" \ 'default': { +" \ 'allow_bold': 1, +" \ 'allow_italic': 0, +" \ 'transparent_background': 1 +" \ } +" \ }, +" \ 'language': { +" \ 'python': { +" \ 'highlight_builtins' : 1 +" \ }, +" \ 'c': { +" \ 'highlight_builtins' : 1 +" \ }, +" \ 'cpp': { +" \ 'highlight_standard_library': 1 +" \ } +" \ } +" \ } +" +let s:options = {} +if exists("g:PaperColor_Theme_Options") + let s:options = g:PaperColor_Theme_Options +endif + +" }}} + +" Theme Options: {{{ +" Part of user-config options +let s:theme_options = {} +if has_key(s:options, 'theme') + let s:theme_options = s:options['theme'] +endif + + +" Function to obtain theme option for the current theme +" @param option - string +" @return the value of that option if specified; empty string otherwise +" Example: s:Theme_Options('transparent_background') +" returns 1 if there is an option for current theme in `theme` section in +" g:PaperColor_Theme_Options such as: +" 'theme': { +" \ 'default': { +" \ 'transparent_background': 1 +" \ } +" } +" OR it could specify for the exact light or dark variant of the theme, +" which will take higher precedence for the current theme variant +" 'theme': { +" \ 'default': { +" \ 'transparent_background': 0 +" \ }, +" \ 'default.light': { +" \ 'transparent_background': 1 +" \ } +" } +fun! s:Theme_Options(option) + let l:value = '' + + let l:variant = 'light' + if s:is_dark + let l:variant = 'dark' + endif + let l:specific_theme_variant = s:theme_name . '.' . l:variant + + if has_key(s:theme_options, l:specific_theme_variant) + let l:theme_option = s:theme_options[l:specific_theme_variant] + if has_key(l:theme_option, a:option) + let l:value = l:theme_option[a:option] + endif + elseif has_key(s:theme_options, s:theme_name) + let l:theme_option = s:theme_options[s:theme_name] + if has_key(l:theme_option, a:option) + let l:value = l:theme_option[a:option] + endif + endif + + return l:value +endfun + +" These options will be checked at many place so better be cached to variables +let s:TRANSPARENT_BACKGROUND = s:Theme_Options('transparent_background') == 1 + + +" }}} + +" Language Options: {{{ +" Part of user-config options +let s:language_options = {} +if has_key(s:options, 'language') + let s:language_options = s:options['language'] +endif + +" Function to obtain a language option +" @param option - string pattern [language].[option] +" @param value - number or string +" @return the option value if it is provided; empty string otherwise +" Example: s:Language_Options('python.highlight_builtins', 1) +" returns 1 if there is an option in `language` section in +" g:PaperColor_Theme_Options such as: +" 'language': { +" \ 'python': { +" \ 'highlight_builtins': 1 +" \ } +" } +fun! s:Language_Options(option) + let l:parts = split(a:option, "\\.") + let l:language = l:parts[0] + let l:option = l:parts[1] + + if has_key(s:language_options, l:language) + let l:language_option = s:language_options[l:language] + if has_key(l:language_option, l:option) + return l:language_option[l:option] + endif + endif + + return '' +endfun + +" }}} + +" HEX TO 256-COLOR CONVERTER: {{{ +" Returns an approximate grey index for the given grey level +fun! s: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! s: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! s: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! s: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! s: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! s: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! s:colour(r, g, b) + " Get the closest grey + let l:gx = s:grey_number(a:r) + let l:gy = s:grey_number(a:g) + let l:gz = s:grey_number(a:b) + + " Get the closest colour + let l:x = s:rgb_number(a:r) + let l:y = s:rgb_number(a:g) + let l:z = s:rgb_number(a:b) + + if l:gx == l:gy && l:gy == l:gz + " There are two possibilities + let l:dgr = s:grey_level(l:gx) - a:r + let l:dgg = s:grey_level(l:gy) - a:g + let l:dgb = s:grey_level(l:gz) - a:b + let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb) + let l:dr = s:rgb_level(l:gx) - a:r + let l:dg = s:rgb_level(l:gy) - a:g + let l:db = s: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 s:grey_colour(l:gx) + else + " Use the colour + return s:rgb_colour(l:x, l:y, l:z) + endif + else + " Only one possibility + return s:rgb_colour(l:x, l:y, l:z) + endif +endfun + +" Returns the palette index to approximate the '#rrggbb' hex string +fun! s:to_256(rgb) + let l:r = ("0x" . strpart(a:rgb, 1, 2)) + 0 + let l:g = ("0x" . strpart(a:rgb, 3, 2)) + 0 + let l:b = ("0x" . strpart(a:rgb, 5, 2)) + 0 + + return s:colour(l:r, l:g, l:b) +endfun + + + +" }}} + +" 256-COLOR TO HEX TABLE: {{{ + +""" Xterm 256 color dictionary +" See: http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html +" +let s:to_HEX = { + \ '00': '#000000', '01': '#800000', '02': '#008000', '03': '#808000', '04': '#000080', + \ '05': '#800080', '06': '#008080', '07': '#c0c0c0', '08': '#808080', '09': '#ff0000', + \ '10': '#00ff00', '11': '#ffff00', '12': '#0000ff', '13': '#ff00ff', '14': '#00ffff', + \ '15': '#ffffff', '16': '#000000', '17': '#00005f', '18': '#000087', '19': '#0000af', + \ '20': '#0000d7', '21': '#0000ff', '22': '#005f00', '23': '#005f5f', '24': '#005f87', + \ '25': '#005faf', '26': '#005fd7', '27': '#005fff', '28': '#008700', '29': '#00875f', + \ '30': '#008787', '31': '#0087af', '32': '#0087d7', '33': '#0087ff', '34': '#00af00', + \ '35': '#00af5f', '36': '#00af87', '37': '#00afaf', '38': '#00afd7', '39': '#00afff', + \ '40': '#00d700', '41': '#00d75f', '42': '#00d787', '43': '#00d7af', '44': '#00d7d7', + \ '45': '#00d7ff', '46': '#00ff00', '47': '#00ff5f', '48': '#00ff87', '49': '#00ffaf', + \ '50': '#00ffd7', '51': '#00ffff', '52': '#5f0000', '53': '#5f005f', '54': '#5f0087', + \ '55': '#5f00af', '56': '#5f00d7', '57': '#5f00ff', '58': '#5f5f00', '59': '#5f5f5f', + \ '60': '#5f5f87', '61': '#5f5faf', '62': '#5f5fd7', '63': '#5f5fff', '64': '#5f8700', + \ '65': '#5f875f', '66': '#5f8787', '67': '#5f87af', '68': '#5f87d7', '69': '#5f87ff', + \ '70': '#5faf00', '71': '#5faf5f', '72': '#5faf87', '73': '#5fafaf', '74': '#5fafd7', + \ '75': '#5fafff', '76': '#5fd700', '77': '#5fd75f', '78': '#5fd787', '79': '#5fd7af', + \ '80': '#5fd7d7', '81': '#5fd7ff', '82': '#5fff00', '83': '#5fff5f', '84': '#5fff87', + \ '85': '#5fffaf', '86': '#5fffd7', '87': '#5fffff', '88': '#870000', '89': '#87005f', + \ '90': '#870087', '91': '#8700af', '92': '#8700d7', '93': '#8700ff', '94': '#875f00', + \ '95': '#875f5f', '96': '#875f87', '97': '#875faf', '98': '#875fd7', '99': '#875fff', + \ '100': '#878700', '101': '#87875f', '102': '#878787', '103': '#8787af', '104': '#8787d7', + \ '105': '#8787ff', '106': '#87af00', '107': '#87af5f', '108': '#87af87', '109': '#87afaf', + \ '110': '#87afd7', '111': '#87afff', '112': '#87d700', '113': '#87d75f', '114': '#87d787', + \ '115': '#87d7af', '116': '#87d7d7', '117': '#87d7ff', '118': '#87ff00', '119': '#87ff5f', + \ '120': '#87ff87', '121': '#87ffaf', '122': '#87ffd7', '123': '#87ffff', '124': '#af0000', + \ '125': '#af005f', '126': '#af0087', '127': '#af00af', '128': '#af00d7', '129': '#af00ff', + \ '130': '#af5f00', '131': '#af5f5f', '132': '#af5f87', '133': '#af5faf', '134': '#af5fd7', + \ '135': '#af5fff', '136': '#af8700', '137': '#af875f', '138': '#af8787', '139': '#af87af', + \ '140': '#af87d7', '141': '#af87ff', '142': '#afaf00', '143': '#afaf5f', '144': '#afaf87', + \ '145': '#afafaf', '146': '#afafd7', '147': '#afafff', '148': '#afd700', '149': '#afd75f', + \ '150': '#afd787', '151': '#afd7af', '152': '#afd7d7', '153': '#afd7ff', '154': '#afff00', + \ '155': '#afff5f', '156': '#afff87', '157': '#afffaf', '158': '#afffd7', '159': '#afffff', + \ '160': '#d70000', '161': '#d7005f', '162': '#d70087', '163': '#d700af', '164': '#d700d7', + \ '165': '#d700ff', '166': '#d75f00', '167': '#d75f5f', '168': '#d75f87', '169': '#d75faf', + \ '170': '#d75fd7', '171': '#d75fff', '172': '#d78700', '173': '#d7875f', '174': '#d78787', + \ '175': '#d787af', '176': '#d787d7', '177': '#d787ff', '178': '#d7af00', '179': '#d7af5f', + \ '180': '#d7af87', '181': '#d7afaf', '182': '#d7afd7', '183': '#d7afff', '184': '#d7d700', + \ '185': '#d7d75f', '186': '#d7d787', '187': '#d7d7af', '188': '#d7d7d7', '189': '#d7d7ff', + \ '190': '#d7ff00', '191': '#d7ff5f', '192': '#d7ff87', '193': '#d7ffaf', '194': '#d7ffd7', + \ '195': '#d7ffff', '196': '#ff0000', '197': '#ff005f', '198': '#ff0087', '199': '#ff00af', + \ '200': '#ff00d7', '201': '#ff00ff', '202': '#ff5f00', '203': '#ff5f5f', '204': '#ff5f87', + \ '205': '#ff5faf', '206': '#ff5fd7', '207': '#ff5fff', '208': '#ff8700', '209': '#ff875f', + \ '210': '#ff8787', '211': '#ff87af', '212': '#ff87d7', '213': '#ff87ff', '214': '#ffaf00', + \ '215': '#ffaf5f', '216': '#ffaf87', '217': '#ffafaf', '218': '#ffafd7', '219': '#ffafff', + \ '220': '#ffd700', '221': '#ffd75f', '222': '#ffd787', '223': '#ffd7af', '224': '#ffd7d7', + \ '225': '#ffd7ff', '226': '#ffff00', '227': '#ffff5f', '228': '#ffff87', '229': '#ffffaf', + \ '230': '#ffffd7', '231': '#ffffff', '232': '#080808', '233': '#121212', '234': '#1c1c1c', + \ '235': '#262626', '236': '#303030', '237': '#3a3a3a', '238': '#444444', '239': '#4e4e4e', + \ '240': '#585858', '241': '#626262', '242': '#6c6c6c', '243': '#767676', '244': '#808080', + \ '245': '#8a8a8a', '246': '#949494', '247': '#9e9e9e', '248': '#a8a8a8', '249': '#b2b2b2', + \ '250': '#bcbcbc', '251': '#c6c6c6', '252': '#d0d0d0', '253': '#dadada', '254': '#e4e4e4', + \ '255': '#eeeeee' } + +" }}} + +" COLOR MODE IDENTIFICATION: {{{ +let s:MODE_16_COLOR = 0 +let s:MODE_256_COLOR = 1 +let s:MODE_GUI_COLOR = 2 + +if has("gui_running") || has('termguicolors') && &termguicolors || has('nvim') && $NVIM_TUI_ENABLE_TRUE_COLOR + let s:mode = s:MODE_GUI_COLOR +elseif (&t_Co >= 256) + let s:mode = s:MODE_256_COLOR +else + let s:mode = s:MODE_16_COLOR +endif + +" }}} + +" COLOR MODE ADAPTATION: {{{ +" Handle Preprocessing For Current Color Set If Necessary +fun! s:adapt_to_environment() + if s:mode == s:MODE_GUI_COLOR + let s:ft_bold = " gui=bold " + let s:ft_italic = " gui=italic " + let s:ft_none = " gui=none " + let s:ft_reverse = " gui=reverse " + " TODO: if require auto-gui-color coversion + elseif s:mode == s:MODE_256_COLOR + let s:ft_bold = " cterm=bold " + let s:ft_italic = " cterm=italic " + let s:ft_none = " cterm=none " + let s:ft_reverse = " cterm=reverse " + " TODO: if require auto-256-color coversion + else + let s:ft_bold = "" + let s:ft_italic = "" + let s:ft_none = " cterm=none " + let s:ft_reverse = " cterm=reverse " + endif +endfun +" }}} + + + +" SET COLOR VARIABLES: {{{ +fun! s:set_color_variables() + + " Helper: {{{ + " ------- + " Function to dynamically generate variables that store the color strings + " for setting highlighting. Each color name will have 2 variables with prefix + " s:fg_ and s:bg_. For example: + " if a:color_name is 'Normal' and a:color_value is ['#000000', '0', 'Black'], + " the following 2 variables will be created: + " s:fg_Normal that stores the string ' guifg=#000000 ' + " s:bg_Normal that stores the string ' guibg=#000000 ' + " Depending on the color mode, ctermfg and ctermbg will be either 0 or Black + " + " Rationale: + " The whole purpose is for speed. We generate these ahead of time so that we + " don't have to do look up or do any if-branch when we set the highlightings. + " + " Furthermore, multiple function definitions for each mode actually reduces + " the need for multiple if-branches inside a single function. This is not + " pretty, but Vim Script is slow, so reducing if-branches in function that is + " often called helps speeding things up quite a bit. Think of this like macro. + " + " If you are familiar with the old code base (v0.9 and ealier), this way of + " generate variables dramatically increases the loading speed. + " None of previous optimization tricks gets anywhere near this. + if s:mode == s:MODE_GUI_COLOR + fun! s:create_color_variables(color_name, color_value) + let {'s:fg_' . a:color_name} = ' guifg=' . a:color_value[0] . ' ' + let {'s:bg_' . a:color_name} = ' guibg=' . a:color_value[0] . ' ' + endfun + elseif s:mode == s:MODE_256_COLOR + fun! s:create_color_variables(color_name, color_value) + let {'s:fg_' . a:color_name} = ' ctermfg=' . a:color_value[1] . ' ' + let {'s:bg_' . a:color_name} = ' ctermbg=' . a:color_value[1] . ' ' + endfun + else + fun! s:create_color_variables(color_name, color_value) + let {'s:fg_' . a:color_name} = ' ctermfg=' . a:color_value[2] . ' ' + let {'s:bg_' . a:color_name} = ' ctermbg=' . a:color_value[2] . ' ' + endfun + endif + " }}} + + " Color value format: Array [, <256-Base>, <16-Base>] + " 16-Base is terminal's native color palette that can be alternated through + " the terminal settings. The 16-color names are according to `:h cterm-colors` + + " BASIC COLORS: + " color00-15 are required by all themes. + " These are also how the terminal color palette for the target theme should be. + " See README for theme design guideline + " + " An example format of the below variable's value: ['#262626', '234', 'Black'] + " Where the 1st value is HEX color for GUI Vim, 2nd value is for 256-color terminal, + " and the color name on the right is for 16-color terminal (the actual terminal colors + " can be different from what the color names suggest). See :h cterm-colors + " + " Depending on the provided color palette and current Vim, the 1st and 2nd + " parameter might not exist, for example, on 16-color terminal, the variables below + " only store the color names to use the terminal color palette which is the only + " thing available therefore no need for GUI-color or 256-color. + + + call s:create_color_variables('background', get(s:palette, 'color00') + ['Black']) + call s:create_color_variables('negative', get(s:palette, 'color01') + ['DarkRed']) + call s:create_color_variables('positive', get(s:palette, 'color02') + ['DarkGreen']) + call s:create_color_variables('olive', get(s:palette, 'color03') + ['DarkYellow']) " string + call s:create_color_variables('neutral', get(s:palette, 'color04') + ['DarkBlue']) + call s:create_color_variables('comment', get(s:palette, 'color05') + ['DarkMagenta']) + call s:create_color_variables('navy', get(s:palette, 'color06') + ['DarkCyan']) " storageclass + call s:create_color_variables('foreground', get(s:palette, 'color07') + ['LightGray']) + + call s:create_color_variables('nontext', get(s:palette, 'color08') + ['DarkGray']) + call s:create_color_variables('red', get(s:palette, 'color09') + ['LightRed']) " import / try/catch + call s:create_color_variables('pink', get(s:palette, 'color10') + ['LightGreen']) " statement, type + call s:create_color_variables('purple', get(s:palette, 'color11') + ['LightYellow']) " if / conditional + call s:create_color_variables('accent', get(s:palette, 'color12') + ['LightBlue']) + call s:create_color_variables('orange', get(s:palette, 'color13') + ['LightMagenta']) " number + call s:create_color_variables('blue', get(s:palette, 'color14') + ['LightCyan']) " other keyword + call s:create_color_variables('highlight', get(s:palette, 'color15') + ['White']) + + " Note: special case for FoldColumn group. I want to get rid of this case. + call s:create_color_variables('transparent', [get(s:palette, 'color00')[0], 'none', 'none']) + + " EXTENDED COLORS: + " From here on, all colors are optional and must have default values (3rd parameter of the + " `get` command) that point to the above basic colors in case the target theme doesn't + " provide the extended colors. The default values should be reasonably sensible. + " The terminal color must be provided also. + + call s:create_color_variables('aqua', get(s:palette, 'color16', get(s:palette, 'color14')) + ['LightCyan']) + call s:create_color_variables('green', get(s:palette, 'color17', get(s:palette, 'color13')) + ['LightMagenta']) + call s:create_color_variables('wine', get(s:palette, 'color18', get(s:palette, 'color11')) + ['LightYellow']) + + " LineNumber: when set number + call s:create_color_variables('linenumber_fg', get(s:palette, 'linenumber_fg', get(s:palette, 'color08')) + ['DarkGray']) + call s:create_color_variables('linenumber_bg', get(s:palette, 'linenumber_bg', get(s:palette, 'color00')) + ['Black']) + + " Vertical Split: when there are more than 1 window side by side, ex: + call s:create_color_variables('vertsplit_fg', get(s:palette, 'vertsplit_fg', get(s:palette, 'color15')) + ['White']) + call s:create_color_variables('vertsplit_bg', get(s:palette, 'vertsplit_bg', get(s:palette, 'color00')) + ['Black']) + + " Statusline: when set status=2 + call s:create_color_variables('statusline_active_fg', get(s:palette, 'statusline_active_fg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('statusline_active_bg', get(s:palette, 'statusline_active_bg', get(s:palette, 'color15')) + ['White']) + call s:create_color_variables('statusline_inactive_fg', get(s:palette, 'statusline_inactive_fg', get(s:palette, 'color07')) + ['LightGray']) + call s:create_color_variables('statusline_inactive_bg', get(s:palette, 'statusline_inactive_bg', get(s:palette, 'color08')) + ['DarkGray']) + + + " Cursor: in normal mode + call s:create_color_variables('cursor_fg', get(s:palette, 'cursor_fg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('cursor_bg', get(s:palette, 'cursor_bg', get(s:palette, 'color07')) + ['LightGray']) + + call s:create_color_variables('cursorline', get(s:palette, 'cursorline', get(s:palette, 'color00')) + ['Black']) + + " CursorColumn: when set cursorcolumn + call s:create_color_variables('cursorcolumn', get(s:palette, 'cursorcolumn', get(s:palette, 'color00')) + ['Black']) + + " CursorLine Number: when set cursorline number + call s:create_color_variables('cursorlinenr_fg', get(s:palette, 'cursorlinenr_fg', get(s:palette, 'color13')) + ['LightMagenta']) + call s:create_color_variables('cursorlinenr_bg', get(s:palette, 'cursorlinenr_bg', get(s:palette, 'color00')) + ['Black']) + + " Popup Menu: when for autocomplete + call s:create_color_variables('popupmenu_fg', get(s:palette, 'popupmenu_fg', get(s:palette, 'color07')) + ['LightGray']) + call s:create_color_variables('popupmenu_bg', get(s:palette, 'popupmenu_bg', get(s:palette, 'color08')) + ['DarkGray']) + + " Search: ex: when * on a word + call s:create_color_variables('search_fg', get(s:palette, 'search_fg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('search_bg', get(s:palette, 'search_bg', get(s:palette, 'color15')) + ['Yellow']) + + " Todo: ex: TODO + call s:create_color_variables('todo_fg', get(s:palette, 'todo_fg', get(s:palette, 'color05')) + ['LightYellow']) + call s:create_color_variables('todo_bg', get(s:palette, 'todo_bg', get(s:palette, 'color00')) + ['Black']) + + " Error: ex: turn spell on and have invalid words + call s:create_color_variables('error_fg', get(s:palette, 'error_fg', get(s:palette, 'color01')) + ['DarkRed']) + call s:create_color_variables('error_bg', get(s:palette, 'error_bg', get(s:palette, 'color00')) + ['Black']) + + " Match Parenthesis: selecting an opening/closing pair and the other one will be highlighted + call s:create_color_variables('matchparen_fg', get(s:palette, 'matchparen_fg', get(s:palette, 'color00')) + ['LightMagenta']) + call s:create_color_variables('matchparen_bg', get(s:palette, 'matchparen_bg', get(s:palette, 'color05')) + ['Black']) + + " Visual: + call s:create_color_variables('visual_fg', get(s:palette, 'visual_fg', get(s:palette, 'color08')) + ['Black']) + call s:create_color_variables('visual_bg', get(s:palette, 'visual_bg', get(s:palette, 'color07')) + ['White']) + + " Folded: + call s:create_color_variables('folded_fg', get(s:palette, 'folded_fg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('folded_bg', get(s:palette, 'folded_bg', get(s:palette, 'color05')) + ['DarkYellow']) + + " WildMenu: Autocomplete command, ex: :color + call s:create_color_variables('wildmenu_fg', get(s:palette, 'wildmenu_fg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('wildmenu_bg', get(s:palette, 'wildmenu_bg', get(s:palette, 'color06')) + ['LightGray']) + + " Spelling: when spell on and there are spelling problems like this for example: papercolor. a vim color scheme + call s:create_color_variables('spellbad', get(s:palette, 'spellbad', get(s:palette, 'color04')) + ['DarkRed']) + call s:create_color_variables('spellcap', get(s:palette, 'spellcap', get(s:palette, 'color05')) + ['DarkMagenta']) + call s:create_color_variables('spellrare', get(s:palette, 'spellrare', get(s:palette, 'color06')) + ['DarkYellow']) + call s:create_color_variables('spelllocal', get(s:palette, 'spelllocal', get(s:palette, 'color01')) + ['DarkBlue']) + + " Diff: + call s:create_color_variables('diffadd_fg', get(s:palette, 'diffadd_fg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('diffadd_bg', get(s:palette, 'diffadd_bg', get(s:palette, 'color02')) + ['DarkGreen']) + + call s:create_color_variables('diffdelete_fg', get(s:palette, 'diffdelete_fg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('diffdelete_bg', get(s:palette, 'diffdelete_bg', get(s:palette, 'color04')) + ['DarkRed']) + + call s:create_color_variables('difftext_fg', get(s:palette, 'difftext_fg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('difftext_bg', get(s:palette, 'difftext_bg', get(s:palette, 'color06')) + ['DarkYellow']) + + call s:create_color_variables('diffchange_fg', get(s:palette, 'diffchange_fg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('diffchange_bg', get(s:palette, 'diffchange_bg', get(s:palette, 'color14')) + ['LightYellow']) + + " Tabline: when having tabs, ex: :tabnew + call s:create_color_variables('tabline_bg', get(s:palette, 'tabline_bg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('tabline_active_fg', get(s:palette, 'tabline_active_fg', get(s:palette, 'color07')) + ['LightGray']) + call s:create_color_variables('tabline_active_bg', get(s:palette, 'tabline_active_bg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('tabline_inactive_fg', get(s:palette, 'tabline_inactive_fg', get(s:palette, 'color07')) + ['Black']) + call s:create_color_variables('tabline_inactive_bg', get(s:palette, 'tabline_inactive_bg', get(s:palette, 'color08')) + ['DarkMagenta']) + + " Plugin: BufTabLine https://github.com/ap/vim-buftabline + call s:create_color_variables('buftabline_bg', get(s:palette, 'buftabline_bg', get(s:palette, 'color00')) + ['Black']) + call s:create_color_variables('buftabline_current_fg', get(s:palette, 'buftabline_current_fg', get(s:palette, 'color07')) + ['LightGray']) + call s:create_color_variables('buftabline_current_bg', get(s:palette, 'buftabline_current_bg', get(s:palette, 'color05')) + ['DarkMagenta']) + call s:create_color_variables('buftabline_active_fg', get(s:palette, 'buftabline_active_fg', get(s:palette, 'color07')) + ['LightGray']) + call s:create_color_variables('buftabline_active_bg', get(s:palette, 'buftabline_active_bg', get(s:palette, 'color12')) + ['LightBlue']) + call s:create_color_variables('buftabline_inactive_fg', get(s:palette, 'buftabline_inactive_fg', get(s:palette, 'color07')) + ['LightGray']) + call s:create_color_variables('buftabline_inactive_bg', get(s:palette, 'buftabline_inactive_bg', get(s:palette, 'color00')) + ['Black']) + + " Neovim terminal colors https://neovim.io/doc/user/nvim_terminal_emulator.html#nvim-terminal-emulator-configuration + " TODO: Fix this + let g:terminal_color_0=get(s:palette, 'color00')[0] + let g:terminal_color_1=get(s:palette, 'color01')[0] + let g:terminal_color_2=get(s:palette, 'color02')[0] + let g:terminal_color_3=get(s:palette, 'color03')[0] + let g:terminal_color_4=get(s:palette, 'color04')[0] + let g:terminal_color_5=get(s:palette, 'color05')[0] + let g:terminal_color_6=get(s:palette, 'color06')[0] + let g:terminal_color_7=get(s:palette, 'color07')[0] + let g:terminal_color_8=get(s:palette, 'color08')[0] + let g:terminal_color_9=get(s:palette, 'color09')[0] + let g:terminal_color_10=get(s:palette, 'color10')[0] + let g:terminal_color_11=get(s:palette, 'color11')[0] + let g:terminal_color_12=get(s:palette, 'color12')[0] + let g:terminal_color_13=get(s:palette, 'color13')[0] + let g:terminal_color_14=get(s:palette, 'color14')[0] + let g:terminal_color_15=get(s:palette, 'color15')[0] + +endfun +" }}} + +" SET SYNTAX HIGHLIGHTING: {{{ + +fun! s:set_syntax_highlighting() + + if s:TRANSPARENT_BACKGROUND + exec 'hi Normal' . s:fg_foreground + " Switching between dark & light variant through `set background` + " NOTE: Handle background switching right after `Normal` group because of + " God-know-why reason. Not doing this way had caused issue before + if s:is_dark " DARK VARIANT + set background=dark + else " LIGHT VARIANT + set background=light + endif + + exec 'hi NonText' . s:fg_nontext + exec 'hi LineNr' . s:fg_linenumber_fg + exec 'hi Conceal' . s:fg_linenumber_fg + exec 'hi VertSplit' . s:fg_vertsplit_fg . s:ft_none + exec 'hi FoldColumn' . s:fg_folded_fg . s:bg_transparent . s:ft_none + else + exec 'hi Normal' . s:fg_foreground . s:bg_background + " Switching between dark & light variant through `set background` + if s:is_dark " DARK VARIANT + set background=dark + else " LIGHT VARIANT + set background=light + endif + + exec 'hi NonText' . s:fg_nontext . s:bg_background + exec 'hi LineNr' . s:fg_linenumber_fg . s:bg_linenumber_bg + exec 'hi Conceal' . s:fg_linenumber_fg . s:bg_linenumber_bg + exec 'hi VertSplit' . s:fg_vertsplit_bg . s:bg_vertsplit_fg + exec 'hi FoldColumn' . s:fg_folded_fg . s:bg_background . s:ft_none + endif + + exec 'hi Cursor' . s:fg_cursor_fg . s:bg_cursor_bg + exec 'hi SpecialKey' . s:fg_nontext + exec 'hi Search' . s:fg_search_fg . s:bg_search_bg + exec 'hi StatusLine' . s:fg_statusline_active_bg . s:bg_statusline_active_fg + exec 'hi StatusLineNC' . s:fg_statusline_inactive_bg . s:bg_statusline_inactive_fg + exec 'hi Visual' . s:fg_visual_fg . s:bg_visual_bg + exec 'hi Directory' . s:fg_blue + exec 'hi ModeMsg' . s:fg_olive + exec 'hi MoreMsg' . s:fg_olive + exec 'hi Question' . s:fg_olive + exec 'hi WarningMsg' . s:fg_pink + exec 'hi MatchParen' . s:fg_matchparen_fg . s:bg_matchparen_bg + exec 'hi Folded' . s:fg_folded_fg . s:bg_folded_bg + exec 'hi WildMenu' . s:fg_wildmenu_fg . s:bg_wildmenu_bg . s:ft_bold + + if version >= 700 + exec 'hi CursorLine' . s:bg_cursorline . s:ft_none + if s:mode == s:MODE_16_COLOR + exec 'hi CursorLineNr' . s:fg_cursorlinenr_fg . s:bg_cursorlinenr_bg + else + exec 'hi CursorLineNr' . s:fg_cursorlinenr_fg . s:bg_cursorlinenr_bg . s:ft_none + endif + exec 'hi CursorColumn' . s:bg_cursorcolumn . s:ft_none + exec 'hi PMenu' . s:fg_popupmenu_fg . s:bg_popupmenu_bg . s:ft_none + exec 'hi PMenuSel' . s:fg_popupmenu_fg . s:bg_popupmenu_bg . s:ft_reverse + if s:TRANSPARENT_BACKGROUND + exec 'hi SignColumn' . s:fg_green . s:ft_none + else + exec 'hi SignColumn' . s:fg_green . s:bg_background . s:ft_none + endif + end + if version >= 703 + exec 'hi ColorColumn' . s:bg_cursorcolumn . s:ft_none + end + + exec 'hi TabLine' . s:fg_tabline_inactive_fg . s:bg_tabline_inactive_bg . s:ft_none + exec 'hi TabLineFill' . s:fg_tabline_bg . s:bg_tabline_bg . s:ft_none + exec 'hi TabLineSel' . s:fg_tabline_active_fg . s:bg_tabline_active_bg . s:ft_none + + exec 'hi BufTabLineCurrent' . s:fg_buftabline_current_fg . s:bg_buftabline_current_bg . s:ft_none + exec 'hi BufTabLineActive' . s:fg_buftabline_active_fg . s:bg_buftabline_active_bg . s:ft_none + exec 'hi BufTabLineHidden' . s:fg_buftabline_inactive_fg . s:bg_buftabline_inactive_bg . s:ft_none + exec 'hi BufTabLineFill' . s:bg_buftabline_bg . s:ft_none + + " Standard Group Highlighting: + exec 'hi Comment' . s:fg_comment + + exec 'hi Constant' . s:fg_orange + exec 'hi String' . s:fg_olive + exec 'hi Character' . s:fg_olive + exec 'hi Number' . s:fg_orange + exec 'hi Boolean' . s:fg_green . s:ft_bold + exec 'hi Float' . s:fg_orange + + exec 'hi Identifier' . s:fg_navy + exec 'hi Function' . s:fg_foreground + + exec 'hi Statement' . s:fg_pink . s:ft_none + exec 'hi Conditional' . s:fg_purple . s:ft_bold + exec 'hi Repeat' . s:fg_purple . s:ft_bold + exec 'hi Label' . s:fg_blue + exec 'hi Operator' . s:fg_aqua . s:ft_none + exec 'hi Keyword' . s:fg_blue + exec 'hi Exception' . s:fg_red + + exec 'hi PreProc' . s:fg_blue + exec 'hi Include' . s:fg_red + exec 'hi Define' . s:fg_blue + exec 'hi Macro' . s:fg_blue + exec 'hi PreCondit' . s:fg_aqua + + exec 'hi Type' . s:fg_pink . s:ft_bold + exec 'hi StorageClass' . s:fg_navy . s:ft_bold + exec 'hi Structure' . s:fg_blue . s:ft_bold + exec 'hi Typedef' . s:fg_pink . s:ft_bold + + exec 'hi Special' . s:fg_foreground + exec 'hi SpecialChar' . s:fg_foreground + exec 'hi Tag' . s:fg_green + exec 'hi Delimiter' . s:fg_aqua + exec 'hi SpecialComment' . s:fg_comment . s:ft_bold + exec 'hi Debug' . s:fg_orange + + exec 'hi Error' . s:fg_error_fg . s:bg_error_bg + exec 'hi Todo' . s:fg_todo_fg . s:bg_todo_bg . s:ft_bold + + exec 'hi Title' . s:fg_comment + exec 'hi Global' . s:fg_blue + + + " Extension {{{ + " VimL Highlighting + exec 'hi vimCommand' . s:fg_pink + exec 'hi vimVar' . s:fg_navy + exec 'hi vimFuncKey' . s:fg_pink + exec 'hi vimFunction' . s:fg_blue . s:ft_bold + exec 'hi vimNotFunc' . s:fg_pink + exec 'hi vimMap' . s:fg_red + exec 'hi vimAutoEvent' . s:fg_aqua . s:ft_bold + exec 'hi vimMapModKey' . s:fg_aqua + exec 'hi vimFuncName' . s:fg_purple + exec 'hi vimIsCommand' . s:fg_foreground + exec 'hi vimFuncVar' . s:fg_aqua + exec 'hi vimLet' . s:fg_red + exec 'hi vimContinue' . s:fg_aqua + exec 'hi vimMapRhsExtend' . s:fg_foreground + exec 'hi vimCommentTitle' . s:fg_comment . s:ft_bold + exec 'hi vimBracket' . s:fg_aqua + exec 'hi vimParenSep' . s:fg_aqua + exec 'hi vimNotation' . s:fg_aqua + exec 'hi vimOper' . s:fg_foreground + exec 'hi vimOperParen' . s:fg_foreground + exec 'hi vimSynType' . s:fg_purple + exec 'hi vimSynReg' . s:fg_pink . s:ft_none + exec 'hi vimSynKeyRegion' . s:fg_green + exec 'hi vimSynRegOpt' . s:fg_blue + exec 'hi vimSynMtchOpt' . s:fg_blue + exec 'hi vimSynContains' . s:fg_pink + exec 'hi vimGroupName' . s:fg_foreground + exec 'hi vimGroupList' . s:fg_foreground + exec 'hi vimHiGroup' . s:fg_foreground + exec 'hi vimGroup' . s:fg_navy . s:ft_bold + exec 'hi vimOnlyOption' . s:fg_blue + + " Makefile Highlighting + exec 'hi makeIdent' . s:fg_blue + exec 'hi makeSpecTarget' . s:fg_olive + exec 'hi makeTarget' . s:fg_red + exec 'hi makeStatement' . s:fg_aqua . s:ft_bold + exec 'hi makeCommands' . s:fg_foreground + exec 'hi makeSpecial' . s:fg_orange . s:ft_bold + + " CMake Highlighting + exec 'hi cmakeStatement' . s:fg_pink + exec 'hi cmakeArguments' . s:fg_foreground + exec 'hi cmakeVariableValue' . s:fg_blue + exec 'hi cmakeOperators' . s:fg_red + + " C Highlighting + exec 'hi cType' . s:fg_pink . s:ft_bold + exec 'hi cFormat' . s:fg_olive + exec 'hi cStorageClass' . s:fg_navy . s:ft_bold + + exec 'hi cBoolean' . s:fg_green + exec 'hi cCharacter' . s:fg_olive + exec 'hi cConstant' . s:fg_green . s:ft_bold + exec 'hi cConditional' . s:fg_purple . s:ft_bold + exec 'hi cSpecial' . s:fg_olive . s:ft_bold + exec 'hi cDefine' . s:fg_blue + exec 'hi cNumber' . s:fg_orange + exec 'hi cPreCondit' . s:fg_aqua + exec 'hi cRepeat' . s:fg_purple . s:ft_bold + exec 'hi cLabel' . s:fg_aqua + " exec 'hi cAnsiFunction' . s:fg_aqua . s:ft_bold + " exec 'hi cAnsiName' . s:fg_pink + exec 'hi cDelimiter' . s:fg_blue + " exec 'hi cBraces' . s:fg_foreground + " exec 'hi cIdentifier' . s:fg_blue . s:bg_pink + " exec 'hi cSemiColon' . s:bg_blue + exec 'hi cOperator' . s:fg_aqua + " exec 'hi cStatement' . s:fg_pink + " exec 'hi cTodo' . s:fg_comment . s:ft_bold + " exec 'hi cStructure' . s:fg_blue . s:ft_bold + exec 'hi cCustomParen' . s:fg_foreground + " exec 'hi cCustomFunc' . s:fg_foreground + " exec 'hi cUserFunction' . s:fg_blue . s:ft_bold + exec 'hi cOctalZero' . s:fg_purple . s:ft_bold + if s:Language_Options('c.highlight_builtins') == 1 + exec 'hi cFunction' . s:fg_blue + else + exec 'hi cFunction' . s:fg_foreground + endif + + " CPP highlighting + exec 'hi cppBoolean' . s:fg_navy + exec 'hi cppSTLnamespace' . s:fg_purple + exec 'hi cppSTLexception' . s:fg_pink + exec 'hi cppSTLfunctional' . s:fg_foreground . s:ft_bold + exec 'hi cppSTLiterator' . s:fg_foreground . s:ft_bold + exec 'hi cppExceptions' . s:fg_red + exec 'hi cppStatement' . s:fg_blue + exec 'hi cppStorageClass' . s:fg_navy . s:ft_bold + exec 'hi cppAccess' . s:fg_blue + if s:Language_Options('cpp.highlight_standard_library') == 1 + exec 'hi cppSTLconstant' . s:fg_green . s:ft_bold + exec 'hi cppSTLtype' . s:fg_pink . s:ft_bold + exec 'hi cppSTLfunction' . s:fg_blue + exec 'hi cppSTLios' . s:fg_olive . s:ft_bold + else + exec 'hi cppSTLconstant' . s:fg_foreground + exec 'hi cppSTLtype' . s:fg_foreground + exec 'hi cppSTLfunction' . s:fg_foreground + exec 'hi cppSTLios' . s:fg_foreground + endif + " exec 'hi cppSTL' . s:fg_blue + + + " Lex highlighting + exec 'hi lexCFunctions' . s:fg_foreground + exec 'hi lexAbbrv' . s:fg_purple + exec 'hi lexAbbrvRegExp' . s:fg_aqua + exec 'hi lexAbbrvComment' . s:fg_comment + exec 'hi lexBrace' . s:fg_navy + exec 'hi lexPat' . s:fg_aqua + exec 'hi lexPatComment' . s:fg_comment + exec 'hi lexPatTag' . s:fg_orange + " exec 'hi lexPatBlock' . s:fg_foreground . s:ft_bold + exec 'hi lexSlashQuote' . s:fg_foreground + exec 'hi lexSep' . s:fg_foreground + exec 'hi lexStartState' . s:fg_orange + exec 'hi lexPatTagZone' . s:fg_olive . s:ft_bold + exec 'hi lexMorePat' . s:fg_olive . s:ft_bold + exec 'hi lexOptions' . s:fg_olive . s:ft_bold + exec 'hi lexPatString' . s:fg_olive + + " Yacc highlighting + exec 'hi yaccNonterminal' . s:fg_navy + exec 'hi yaccDelim' . s:fg_orange + exec 'hi yaccInitKey' . s:fg_aqua + exec 'hi yaccInit' . s:fg_navy + exec 'hi yaccKey' . s:fg_purple + exec 'hi yaccVar' . s:fg_aqua + + " NASM highlighting + exec 'hi nasmStdInstruction' . s:fg_navy + exec 'hi nasmGen08Register' . s:fg_aqua + exec 'hi nasmGen16Register' . s:fg_aqua + exec 'hi nasmGen32Register' . s:fg_aqua + exec 'hi nasmGen64Register' . s:fg_aqua + exec 'hi nasmHexNumber' . s:fg_purple + exec 'hi nasmStorage' . s:fg_aqua . s:ft_bold + exec 'hi nasmLabel' . s:fg_pink + exec 'hi nasmDirective' . s:fg_blue . s:ft_bold + exec 'hi nasmLocalLabel' . s:fg_orange + + " GAS highlighting + exec 'hi gasSymbol' . s:fg_pink + exec 'hi gasDirective' . s:fg_blue . s:ft_bold + exec 'hi gasOpcode_386_Base' . s:fg_navy + exec 'hi gasDecimalNumber' . s:fg_purple + exec 'hi gasSymbolRef' . s:fg_pink + exec 'hi gasRegisterX86' . s:fg_blue + exec 'hi gasOpcode_P6_Base' . s:fg_navy + exec 'hi gasDirectiveStore' . s:fg_foreground . s:ft_bold + + " MIPS highlighting + exec 'hi mipsInstruction' . s:fg_pink + exec 'hi mipsRegister' . s:fg_navy + exec 'hi mipsLabel' . s:fg_aqua . s:ft_bold + exec 'hi mipsDirective' . s:fg_purple . s:ft_bold + + " Shell/Bash highlighting + exec 'hi bashStatement' . s:fg_foreground . s:ft_bold + exec 'hi shDerefVar' . s:fg_aqua . s:ft_bold + exec 'hi shDerefSimple' . s:fg_aqua + exec 'hi shFunction' . s:fg_orange . s:ft_bold + exec 'hi shStatement' . s:fg_foreground + exec 'hi shLoop' . s:fg_purple . s:ft_bold + exec 'hi shQuote' . s:fg_olive + exec 'hi shCaseEsac' . s:fg_aqua . s:ft_bold + exec 'hi shSnglCase' . s:fg_purple . s:ft_none + exec 'hi shFunctionOne' . s:fg_navy + exec 'hi shCase' . s:fg_navy + exec 'hi shSetList' . s:fg_navy + " @see Dockerfile Highlighting section for more sh* + + " HTML Highlighting + exec 'hi htmlTitle' . s:fg_green . s:ft_bold + exec 'hi htmlH1' . s:fg_green . s:ft_bold + exec 'hi htmlH2' . s:fg_aqua . s:ft_bold + exec 'hi htmlH3' . s:fg_purple . s:ft_bold + exec 'hi htmlH4' . s:fg_orange . s:ft_bold + exec 'hi htmlTag' . s:fg_comment + exec 'hi htmlTagName' . s:fg_wine + exec 'hi htmlArg' . s:fg_pink + exec 'hi htmlEndTag' . s:fg_comment + exec 'hi htmlString' . s:fg_blue + exec 'hi htmlScriptTag' . s:fg_comment + exec 'hi htmlBold' . s:fg_foreground . s:ft_bold + exec 'hi htmlItalic' . s:fg_comment . s:ft_bold + exec 'hi htmlBoldItalic' . s:fg_navy . s:ft_bold + " exec 'hi htmlLink' . s:fg_blue . s:ft_bold + exec 'hi htmlTagN' . s:fg_wine . s:ft_bold + exec 'hi htmlSpecialTagName' . s:fg_wine + exec 'hi htmlComment' . s:fg_comment + exec 'hi htmlCommentPart' . s:fg_comment + + " CSS Highlighting + exec 'hi cssIdentifier' . s:fg_pink + exec 'hi cssPositioningProp' . s:fg_foreground + exec 'hi cssNoise' . s:fg_foreground + exec 'hi cssBoxProp' . s:fg_foreground + exec 'hi cssTableAttr' . s:fg_purple + exec 'hi cssPositioningAttr' . s:fg_navy + exec 'hi cssValueLength' . s:fg_orange + exec 'hi cssFunctionName' . s:fg_blue + exec 'hi cssUnitDecorators' . s:fg_aqua + exec 'hi cssColor' . s:fg_blue . s:ft_bold + exec 'hi cssBraces' . s:fg_pink + exec 'hi cssBackgroundProp' . s:fg_foreground + exec 'hi cssTextProp' . s:fg_foreground + exec 'hi cssDimensionProp' . s:fg_foreground + exec 'hi cssClassName' . s:fg_pink + + " Markdown Highlighting + exec 'hi markdownHeadingRule' . s:fg_pink . s:ft_bold + exec 'hi markdownH1' . s:fg_pink . s:ft_bold + exec 'hi markdownH2' . s:fg_orange . s:ft_bold + exec 'hi markdownBlockquote' . s:fg_pink + exec 'hi markdownCodeBlock' . s:fg_olive + exec 'hi markdownCode' . s:fg_olive + exec 'hi markdownLink' . s:fg_blue . s:ft_bold + exec 'hi markdownUrl' . s:fg_blue + exec 'hi markdownLinkText' . s:fg_pink + exec 'hi markdownLinkTextDelimiter' . s:fg_purple + exec 'hi markdownLinkDelimiter' . s:fg_purple + exec 'hi markdownCodeDelimiter' . s:fg_blue + + exec 'hi mkdCode' . s:fg_olive + exec 'hi mkdLink' . s:fg_blue . s:ft_bold + exec 'hi mkdURL' . s:fg_comment + exec 'hi mkdString' . s:fg_foreground + exec 'hi mkdBlockQuote' . s:fg_foreground . s:bg_popupmenu_bg + exec 'hi mkdLinkTitle' . s:fg_pink + exec 'hi mkdDelimiter' . s:fg_aqua + exec 'hi mkdRule' . s:fg_pink + + " reStructuredText Highlighting + exec 'hi rstSections' . s:fg_pink . s:ft_bold + exec 'hi rstDelimiter' . s:fg_pink . s:ft_bold + exec 'hi rstExplicitMarkup' . s:fg_pink . s:ft_bold + exec 'hi rstDirective' . s:fg_blue + exec 'hi rstHyperlinkTarget' . s:fg_green + exec 'hi rstExDirective' . s:fg_foreground + exec 'hi rstInlineLiteral' . s:fg_olive + exec 'hi rstInterpretedTextOrHyperlinkReference' . s:fg_blue + + " Python Highlighting + exec 'hi pythonImport' . s:fg_pink . s:ft_bold + exec 'hi pythonExceptions' . s:fg_red + exec 'hi pythonException' . s:fg_purple . s:ft_bold + exec 'hi pythonInclude' . s:fg_red + exec 'hi pythonStatement' . s:fg_pink + exec 'hi pythonConditional' . s:fg_purple . s:ft_bold + exec 'hi pythonRepeat' . s:fg_purple . s:ft_bold + exec 'hi pythonFunction' . s:fg_aqua . s:ft_bold + exec 'hi pythonPreCondit' . s:fg_purple + exec 'hi pythonExClass' . s:fg_orange + exec 'hi pythonOperator' . s:fg_purple . s:ft_bold + exec 'hi pythonBuiltin' . s:fg_foreground + exec 'hi pythonDecorator' . s:fg_orange + + exec 'hi pythonString' . s:fg_olive + exec 'hi pythonEscape' . s:fg_olive . s:ft_bold + exec 'hi pythonStrFormatting' . s:fg_olive . s:ft_bold + + exec 'hi pythonBoolean' . s:fg_green . s:ft_bold + exec 'hi pythonExClass' . s:fg_red + exec 'hi pythonBytesEscape' . s:fg_olive . s:ft_bold + exec 'hi pythonDottedName' . s:fg_purple + exec 'hi pythonStrFormat' . s:fg_foreground + + if s:Language_Options('python.highlight_builtins') == 1 + exec 'hi pythonBuiltinFunc' . s:fg_blue + exec 'hi pythonBuiltinObj' . s:fg_red + else + exec 'hi pythonBuiltinFunc' . s:fg_foreground + exec 'hi pythonBuiltinObj' . s:fg_foreground + endif + + " Java Highlighting + exec 'hi javaExternal' . s:fg_pink + exec 'hi javaAnnotation' . s:fg_orange + exec 'hi javaTypedef' . s:fg_aqua + exec 'hi javaClassDecl' . s:fg_aqua . s:ft_bold + exec 'hi javaScopeDecl' . s:fg_blue . s:ft_bold + exec 'hi javaStorageClass' . s:fg_navy . s:ft_bold + exec 'hi javaBoolean' . s:fg_green . s:ft_bold + exec 'hi javaConstant' . s:fg_blue + exec 'hi javaCommentTitle' . s:fg_wine + exec 'hi javaDocTags' . s:fg_aqua + exec 'hi javaDocComment' . s:fg_comment + exec 'hi javaDocParam' . s:fg_foreground + exec 'hi javaStatement' . s:fg_pink + + " JavaScript Highlighting + exec 'hi javaScriptBraces' . s:fg_blue + exec 'hi javaScriptParens' . s:fg_blue + exec 'hi javaScriptIdentifier' . s:fg_pink + exec 'hi javaScriptFunction' . s:fg_blue . s:ft_bold + exec 'hi javaScriptConditional' . s:fg_purple . s:ft_bold + exec 'hi javaScriptRepeat' . s:fg_purple . s:ft_bold + exec 'hi javaScriptBoolean' . s:fg_green . s:ft_bold + exec 'hi javaScriptNumber' . s:fg_orange + exec 'hi javaScriptMember' . s:fg_navy + exec 'hi javaScriptReserved' . s:fg_navy + exec 'hi javascriptNull' . s:fg_comment . s:ft_bold + exec 'hi javascriptGlobal' . s:fg_foreground + exec 'hi javascriptStatement' . s:fg_pink + exec 'hi javaScriptMessage' . s:fg_foreground + exec 'hi javaScriptMember' . s:fg_foreground + + " @target https://github.com/pangloss/vim-javascript + exec 'hi jsFuncParens' . s:fg_blue + exec 'hi jsFuncBraces' . s:fg_blue + exec 'hi jsParens' . s:fg_blue + exec 'hi jsBraces' . s:fg_blue + exec 'hi jsNoise' . s:fg_blue + + " Json Highlighting + " @target https://github.com/elzr/vim-json + exec 'hi jsonKeyword' . s:fg_blue + exec 'hi jsonString' . s:fg_olive + exec 'hi jsonQuote' . s:fg_comment + exec 'hi jsonNoise' . s:fg_foreground + exec 'hi jsonKeywordMatch' . s:fg_foreground + exec 'hi jsonBraces' . s:fg_foreground + exec 'hi jsonNumber' . s:fg_orange + exec 'hi jsonNull' . s:fg_purple . s:ft_bold + exec 'hi jsonBoolean' . s:fg_green . s:ft_bold + exec 'hi jsonCommentError' . s:fg_pink . s:bg_background + + " Go Highlighting + exec 'hi goDirective' . s:fg_red + exec 'hi goDeclaration' . s:fg_blue . s:ft_bold + exec 'hi goStatement' . s:fg_pink + exec 'hi goConditional' . s:fg_purple . s:ft_bold + exec 'hi goConstants' . s:fg_orange + exec 'hi goFunction' . s:fg_orange + " exec 'hi goTodo' . s:fg_comment . s:ft_bold + exec 'hi goDeclType' . s:fg_blue + exec 'hi goBuiltins' . s:fg_purple + + " Systemtap Highlighting + " exec 'hi stapBlock' . s:fg_comment . s:ft_none + exec 'hi stapComment' . s:fg_comment . s:ft_none + exec 'hi stapProbe' . s:fg_aqua . s:ft_bold + exec 'hi stapStat' . s:fg_navy . s:ft_bold + exec 'hi stapFunc' . s:fg_foreground + exec 'hi stapString' . s:fg_olive + exec 'hi stapTarget' . s:fg_navy + exec 'hi stapStatement' . s:fg_pink + exec 'hi stapType' . s:fg_pink . s:ft_bold + exec 'hi stapSharpBang' . s:fg_comment + exec 'hi stapDeclaration' . s:fg_pink + exec 'hi stapCMacro' . s:fg_blue + + " DTrace Highlighting + exec 'hi dtraceProbe' . s:fg_blue + exec 'hi dtracePredicate' . s:fg_purple . s:ft_bold + exec 'hi dtraceComment' . s:fg_comment + exec 'hi dtraceFunction' . s:fg_foreground + exec 'hi dtraceAggregatingFunction' . s:fg_blue . s:ft_bold + exec 'hi dtraceStatement' . s:fg_navy . s:ft_bold + exec 'hi dtraceIdentifier' . s:fg_pink + exec 'hi dtraceOption' . s:fg_pink + exec 'hi dtraceConstant' . s:fg_orange + exec 'hi dtraceType' . s:fg_pink . s:ft_bold + + " PlantUML Highlighting + exec 'hi plantumlPreProc' . s:fg_orange . s:ft_bold + exec 'hi plantumlDirectedOrVerticalArrowRL' . s:fg_pink + exec 'hi plantumlDirectedOrVerticalArrowLR' . s:fg_pink + exec 'hi plantumlString' . s:fg_olive + exec 'hi plantumlActivityThing' . s:fg_purple + exec 'hi plantumlText' . s:fg_navy + exec 'hi plantumlClassPublic' . s:fg_olive . s:ft_bold + exec 'hi plantumlClassPrivate' . s:fg_red + exec 'hi plantumlColonLine' . s:fg_orange + exec 'hi plantumlClass' . s:fg_navy + exec 'hi plantumlHorizontalArrow' . s:fg_pink + exec 'hi plantumlTypeKeyword' . s:fg_blue . s:ft_bold + exec 'hi plantumlKeyword' . s:fg_pink . s:ft_bold + + exec 'hi plantumlType' . s:fg_blue . s:ft_bold + exec 'hi plantumlBlock' . s:fg_pink . s:ft_bold + exec 'hi plantumlPreposition' . s:fg_orange + exec 'hi plantumlLayout' . s:fg_blue . s:ft_bold + exec 'hi plantumlNote' . s:fg_orange + exec 'hi plantumlLifecycle' . s:fg_aqua + exec 'hi plantumlParticipant' . s:fg_foreground . s:ft_bold + + + " Haskell Highlighting + exec 'hi haskellType' . s:fg_aqua . s:ft_bold + exec 'hi haskellIdentifier' . s:fg_orange . s:ft_bold + exec 'hi haskellOperators' . s:fg_pink + exec 'hi haskellWhere' . s:fg_foreground . s:ft_bold + exec 'hi haskellDelimiter' . s:fg_aqua + exec 'hi haskellImportKeywords' . s:fg_pink + exec 'hi haskellStatement' . s:fg_purple . s:ft_bold + + + " SQL/MySQL Highlighting + exec 'hi sqlStatement' . s:fg_pink . s:ft_bold + exec 'hi sqlType' . s:fg_blue . s:ft_bold + exec 'hi sqlKeyword' . s:fg_pink + exec 'hi sqlOperator' . s:fg_aqua + exec 'hi sqlSpecial' . s:fg_green . s:ft_bold + + exec 'hi mysqlVariable' . s:fg_olive . s:ft_bold + exec 'hi mysqlType' . s:fg_blue . s:ft_bold + exec 'hi mysqlKeyword' . s:fg_pink + exec 'hi mysqlOperator' . s:fg_aqua + exec 'hi mysqlSpecial' . s:fg_green . s:ft_bold + + + " Octave/MATLAB Highlighting + exec 'hi octaveVariable' . s:fg_foreground + exec 'hi octaveDelimiter' . s:fg_pink + exec 'hi octaveQueryVar' . s:fg_foreground + exec 'hi octaveSemicolon' . s:fg_purple + exec 'hi octaveFunction' . s:fg_navy + exec 'hi octaveSetVar' . s:fg_blue + exec 'hi octaveUserVar' . s:fg_foreground + exec 'hi octaveArithmeticOperator' . s:fg_aqua + exec 'hi octaveBeginKeyword' . s:fg_purple . s:ft_bold + exec 'hi octaveElseKeyword' . s:fg_purple . s:ft_bold + exec 'hi octaveEndKeyword' . s:fg_purple . s:ft_bold + exec 'hi octaveStatement' . s:fg_pink + + " Ruby Highlighting + exec 'hi rubyModule' . s:fg_navy . s:ft_bold + exec 'hi rubyClass' . s:fg_pink . s:ft_bold + exec 'hi rubyPseudoVariable' . s:fg_comment . s:ft_bold + exec 'hi rubyKeyword' . s:fg_pink + exec 'hi rubyInstanceVariable' . s:fg_purple + exec 'hi rubyFunction' . s:fg_foreground . s:ft_bold + exec 'hi rubyDefine' . s:fg_pink + exec 'hi rubySymbol' . s:fg_aqua + exec 'hi rubyConstant' . s:fg_blue + exec 'hi rubyAccess' . s:fg_navy + exec 'hi rubyAttribute' . s:fg_green + exec 'hi rubyInclude' . s:fg_red + exec 'hi rubyLocalVariableOrMethod' . s:fg_orange + exec 'hi rubyCurlyBlock' . s:fg_foreground + exec 'hi rubyCurlyBlockDelimiter' . s:fg_aqua + exec 'hi rubyArrayDelimiter' . s:fg_aqua + exec 'hi rubyStringDelimiter' . s:fg_olive + exec 'hi rubyInterpolationDelimiter' . s:fg_orange + exec 'hi rubyConditional' . s:fg_purple . s:ft_bold + exec 'hi rubyRepeat' . s:fg_purple . s:ft_bold + exec 'hi rubyControl' . s:fg_purple . s:ft_bold + exec 'hi rubyException' . s:fg_purple . s:ft_bold + exec 'hi rubyExceptional' . s:fg_purple . s:ft_bold + exec 'hi rubyBoolean' . s:fg_green . s:ft_bold + + " Fortran Highlighting + exec 'hi fortranUnitHeader' . s:fg_foreground . s:ft_bold + exec 'hi fortranType' . s:fg_pink . s:ft_bold + exec 'hi fortranStructure' . s:fg_blue . s:ft_bold + exec 'hi fortranStorageClass' . s:fg_navy . s:ft_bold + exec 'hi fortranStorageClassR' . s:fg_navy . s:ft_bold + exec 'hi fortranKeyword' . s:fg_pink + exec 'hi fortranReadWrite' . s:fg_blue + exec 'hi fortranIO' . s:fg_navy + + " R Highlighting + exec 'hi rType' . s:fg_blue + exec 'hi rArrow' . s:fg_pink + exec 'hi rDollar' . s:fg_blue + + " XXD Highlighting + exec 'hi xxdAddress' . s:fg_navy + exec 'hi xxdSep' . s:fg_pink + exec 'hi xxdAscii' . s:fg_pink + exec 'hi xxdDot' . s:fg_aqua + + " PHP Highlighting + exec 'hi phpIdentifier' . s:fg_foreground + exec 'hi phpVarSelector' . s:fg_pink + exec 'hi phpKeyword' . s:fg_blue + exec 'hi phpRepeat' . s:fg_purple . s:ft_bold + exec 'hi phpConditional' . s:fg_purple . s:ft_bold + exec 'hi phpStatement' . s:fg_pink + exec 'hi phpAssignByRef' . s:fg_aqua . s:ft_bold + exec 'hi phpSpecialFunction' . s:fg_blue + exec 'hi phpFunctions' . s:fg_blue + exec 'hi phpComparison' . s:fg_aqua + exec 'hi phpBackslashSequences' . s:fg_olive . s:ft_bold + exec 'hi phpMemberSelector' . s:fg_blue + exec 'hi phpStorageClass' . s:fg_purple . s:ft_bold + exec 'hi phpDefine' . s:fg_navy + exec 'hi phpIntVar' . s:fg_navy . s:ft_bold + + " Perl Highlighting + exec 'hi perlFiledescRead' . s:fg_green + exec 'hi perlMatchStartEnd' . s:fg_pink + exec 'hi perlStatementFlow' . s:fg_pink + exec 'hi perlStatementStorage' . s:fg_pink + exec 'hi perlFunction' . s:fg_pink . s:ft_bold + exec 'hi perlMethod' . s:fg_foreground + exec 'hi perlStatementFiledesc' . s:fg_orange + exec 'hi perlVarPlain' . s:fg_navy + exec 'hi perlSharpBang' . s:fg_comment + exec 'hi perlStatementInclude' . s:fg_aqua . s:ft_bold + exec 'hi perlStatementScalar' . s:fg_purple + exec 'hi perlSubName' . s:fg_aqua . s:ft_bold + exec 'hi perlSpecialString' . s:fg_olive . s:ft_bold + + " Pascal Highlighting + exec 'hi pascalType' . s:fg_pink . s:ft_bold + exec 'hi pascalStatement' . s:fg_blue . s:ft_bold + exec 'hi pascalPredefined' . s:fg_pink + exec 'hi pascalFunction' . s:fg_foreground + exec 'hi pascalStruct' . s:fg_navy . s:ft_bold + exec 'hi pascalOperator' . s:fg_aqua . s:ft_bold + exec 'hi pascalPreProc' . s:fg_green + exec 'hi pascalAcces' . s:fg_navy . s:ft_bold + + " Lua Highlighting + exec 'hi luaFunc' . s:fg_foreground + exec 'hi luaIn' . s:fg_blue . s:ft_bold + exec 'hi luaFunction' . s:fg_pink + exec 'hi luaStatement' . s:fg_blue + exec 'hi luaRepeat' . s:fg_blue . s:ft_bold + exec 'hi luaCondStart' . s:fg_purple . s:ft_bold + exec 'hi luaTable' . s:fg_aqua . s:ft_bold + exec 'hi luaConstant' . s:fg_green . s:ft_bold + exec 'hi luaElse' . s:fg_purple . s:ft_bold + exec 'hi luaCondElseif' . s:fg_purple . s:ft_bold + exec 'hi luaCond' . s:fg_purple . s:ft_bold + exec 'hi luaCondEnd' . s:fg_purple + + " Clojure highlighting: + exec 'hi clojureConstant' . s:fg_blue + exec 'hi clojureBoolean' . s:fg_orange + exec 'hi clojureCharacter' . s:fg_olive + exec 'hi clojureKeyword' . s:fg_pink + exec 'hi clojureNumber' . s:fg_orange + exec 'hi clojureString' . s:fg_olive + exec 'hi clojureRegexp' . s:fg_purple + exec 'hi clojureRegexpEscape' . s:fg_pink + exec 'hi clojureParen' . s:fg_aqua + exec 'hi clojureVariable' . s:fg_olive + exec 'hi clojureCond' . s:fg_blue + exec 'hi clojureDefine' . s:fg_blue . s:ft_bold + exec 'hi clojureException' . s:fg_red + exec 'hi clojureFunc' . s:fg_navy + exec 'hi clojureMacro' . s:fg_blue + exec 'hi clojureRepeat' . s:fg_blue + exec 'hi clojureSpecial' . s:fg_blue . s:ft_bold + exec 'hi clojureQuote' . s:fg_blue + exec 'hi clojureUnquote' . s:fg_blue + exec 'hi clojureMeta' . s:fg_blue + exec 'hi clojureDeref' . s:fg_blue + exec 'hi clojureAnonArg' . s:fg_blue + exec 'hi clojureRepeat' . s:fg_blue + exec 'hi clojureDispatch' . s:fg_aqua + + " Dockerfile Highlighting + " @target https://github.com/docker/docker/tree/master/contrib/syntax/vim + exec 'hi dockerfileKeyword' . s:fg_blue + exec 'hi shDerefVar' . s:fg_purple . s:ft_bold + exec 'hi shOperator' . s:fg_aqua + exec 'hi shOption' . s:fg_navy + exec 'hi shLine' . s:fg_foreground + exec 'hi shWrapLineOperator' . s:fg_pink + + " NGINX Highlighting + " @target https://github.com/evanmiller/nginx-vim-syntax + exec 'hi ngxDirectiveBlock' . s:fg_pink . s:ft_bold + exec 'hi ngxDirective' . s:fg_blue . s:ft_none + exec 'hi ngxDirectiveImportant' . s:fg_blue . s:ft_bold + exec 'hi ngxString' . s:fg_olive + exec 'hi ngxVariableString' . s:fg_purple + exec 'hi ngxVariable' . s:fg_purple . s:ft_none + + " Yaml Highlighting + exec 'hi yamlBlockMappingKey' . s:fg_blue + exec 'hi yamlKeyValueDelimiter' . s:fg_pink + exec 'hi yamlBlockCollectionItemStart' . s:fg_pink + + " Qt QML Highlighting + exec 'hi qmlObjectLiteralType' . s:fg_pink + exec 'hi qmlReserved' . s:fg_purple + exec 'hi qmlBindingProperty' . s:fg_navy + exec 'hi qmlType' . s:fg_navy + + " Dosini Highlighting + exec 'hi dosiniHeader' . s:fg_pink + exec 'hi dosiniLabel' . s:fg_blue + + " Mail highlighting + exec 'hi mailHeaderKey' . s:fg_blue + exec 'hi mailHeaderEmail' . s:fg_purple + exec 'hi mailSubject' . s:fg_pink + exec 'hi mailHeader' . s:fg_comment + exec 'hi mailURL' . s:fg_aqua + exec 'hi mailEmail' . s:fg_purple + exec 'hi mailQuoted1' . s:fg_olive + exec 'hi mailQuoted2' . s:fg_navy + + " XML Highlighting + exec 'hi xmlProcessingDelim' . s:fg_pink + exec 'hi xmlString' . s:fg_olive + exec 'hi xmlEqual' . s:fg_orange + exec 'hi xmlAttrib' . s:fg_navy + exec 'hi xmlAttribPunct' . s:fg_pink + exec 'hi xmlTag' . s:fg_blue + exec 'hi xmlTagName' . s:fg_blue + exec 'hi xmlEndTag' . s:fg_blue + exec 'hi xmlNamespace' . s:fg_orange + + " Exlixir Highlighting + " @target https://github.com/elixir-lang/vim-elixir + exec 'hi elixirAlias' . s:fg_blue . s:ft_bold + exec 'hi elixirAtom' . s:fg_navy + exec 'hi elixirVariable' . s:fg_navy + exec 'hi elixirUnusedVariable' . s:fg_foreground . s:ft_bold + exec 'hi elixirInclude' . s:fg_purple + exec 'hi elixirStringDelimiter' . s:fg_olive + exec 'hi elixirKeyword' . s:fg_purple . s:ft_bold + exec 'hi elixirFunctionDeclaration' . s:fg_aqua . s:ft_bold + exec 'hi elixirBlockDefinition' . s:fg_pink + exec 'hi elixirDefine' . s:fg_pink + exec 'hi elixirStructDefine' . s:fg_pink + exec 'hi elixirPrivateDefine' . s:fg_pink + exec 'hi elixirModuleDefine' . s:fg_pink + exec 'hi elixirProtocolDefine' . s:fg_pink + exec 'hi elixirImplDefine' . s:fg_pink + exec 'hi elixirModuleDeclaration' . s:fg_aqua . s:ft_bold + exec 'hi elixirDocString' . s:fg_olive + exec 'hi elixirDocTest' . s:fg_green . s:ft_bold + + " Erlang Highlighting + exec 'hi erlangBIF' . s:fg_purple . s:ft_bold + exec 'hi erlangBracket' . s:fg_pink + exec 'hi erlangLocalFuncCall' . s:fg_foreground + exec 'hi erlangVariable' . s:fg_foreground + exec 'hi erlangAtom' . s:fg_navy + exec 'hi erlangAttribute' . s:fg_blue . s:ft_bold + exec 'hi erlangRecordDef' . s:fg_blue . s:ft_bold + exec 'hi erlangRecord' . s:fg_blue + exec 'hi erlangRightArrow' . s:fg_blue . s:ft_bold + exec 'hi erlangStringModifier' . s:fg_olive . s:ft_bold + exec 'hi erlangInclude' . s:fg_blue . s:ft_bold + exec 'hi erlangKeyword' . s:fg_pink + exec 'hi erlangGlobalFuncCall' . s:fg_foreground + + " Cucumber Highlighting + exec 'hi cucumberFeature' . s:fg_blue . s:ft_bold + exec 'hi cucumberBackground' . s:fg_pink . s:ft_bold + exec 'hi cucumberScenario' . s:fg_pink . s:ft_bold + exec 'hi cucumberGiven' . s:fg_orange + exec 'hi cucumberGivenAnd' . s:fg_blue + exec 'hi cucumberThen' . s:fg_orange + exec 'hi cucumberThenAnd' . s:fg_blue + exec 'hi cucumberWhen' . s:fg_purple . s:ft_bold + exec 'hi cucumberScenarioOutline' . s:fg_pink . s:ft_bold + exec 'hi cucumberExamples' . s:fg_aqua + exec 'hi cucumberTags' . s:fg_aqua + exec 'hi cucumberPlaceholder' . s:fg_aqua + + " Ada Highlighting + exec 'hi adaInc' . s:fg_aqua . s:ft_bold + exec 'hi adaSpecial' . s:fg_aqua . s:ft_bold + exec 'hi adaKeyword' . s:fg_pink + exec 'hi adaBegin' . s:fg_pink + exec 'hi adaEnd' . s:fg_pink + exec 'hi adaTypedef' . s:fg_navy . s:ft_bold + exec 'hi adaAssignment' . s:fg_aqua . s:ft_bold + exec 'hi adaAttribute' . s:fg_green + + " COBOL Highlighting + exec 'hi cobolMarker' . s:fg_comment . s:bg_cursorline + exec 'hi cobolLine' . s:fg_foreground + exec 'hi cobolReserved' . s:fg_blue + exec 'hi cobolDivision' . s:fg_pink . s:ft_bold + exec 'hi cobolDivisionName' . s:fg_pink . s:ft_bold + exec 'hi cobolSection' . s:fg_navy . s:ft_bold + exec 'hi cobolSectionName' . s:fg_navy . s:ft_bold + exec 'hi cobolParagraph' . s:fg_purple + exec 'hi cobolParagraphName' . s:fg_purple + exec 'hi cobolDeclA' . s:fg_purple + exec 'hi cobolDecl' . s:fg_green + exec 'hi cobolCALLs' . s:fg_aqua . s:ft_bold + exec 'hi cobolEXECs' . s:fg_aqua . s:ft_bold + + " GNU sed highlighting + exec 'hi sedST' . s:fg_purple . s:ft_bold + exec 'hi sedFlag' . s:fg_purple . s:ft_bold + exec 'hi sedRegexp47' . s:fg_pink + exec 'hi sedRegexpMeta' . s:fg_blue . s:ft_bold + exec 'hi sedReplacement47' . s:fg_olive + exec 'hi sedReplaceMeta' . s:fg_orange . s:ft_bold + exec 'hi sedAddress' . s:fg_pink + exec 'hi sedFunction' . s:fg_aqua . s:ft_bold + exec 'hi sedBranch' . s:fg_green . s:ft_bold + exec 'hi sedLabel' . s:fg_green . s:ft_bold + + " }}} + + " Plugin: Netrw + exec 'hi netrwVersion' . s:fg_red + exec 'hi netrwList' . s:fg_pink + exec 'hi netrwHidePat' . s:fg_olive + exec 'hi netrwQuickHelp' . s:fg_blue + exec 'hi netrwHelpCmd' . s:fg_blue + exec 'hi netrwDir' . s:fg_aqua . s:ft_bold + exec 'hi netrwClassify' . s:fg_pink + exec 'hi netrwExe' . s:fg_green + exec 'hi netrwSuffixes' . s:fg_comment + exec 'hi netrwTreeBar' . s:fg_linenumber_fg + + " Plugin: NERDTree + exec 'hi NERDTreeUp' . s:fg_comment + exec 'hi NERDTreeHelpCommand' . s:fg_pink + exec 'hi NERDTreeHelpTitle' . s:fg_blue . s:ft_bold + exec 'hi NERDTreeHelpKey' . s:fg_pink + exec 'hi NERDTreeHelp' . s:fg_foreground + exec 'hi NERDTreeToggleOff' . s:fg_red + exec 'hi NERDTreeToggleOn' . s:fg_green + exec 'hi NERDTreeDir' . s:fg_blue . s:ft_bold + exec 'hi NERDTreeDirSlash' . s:fg_pink + exec 'hi NERDTreeFile' . s:fg_foreground + exec 'hi NERDTreeExecFile' . s:fg_green + exec 'hi NERDTreeOpenable' . s:fg_pink . s:ft_bold + exec 'hi NERDTreeClosable' . s:fg_pink + + " Plugin: Tagbar + exec 'hi TagbarHelpTitle' . s:fg_blue . s:ft_bold + exec 'hi TagbarHelp' . s:fg_foreground + exec 'hi TagbarKind' . s:fg_pink + exec 'hi TagbarSignature' . s:fg_aqua + + " Plugin: Vimdiff + exec 'hi DiffAdd' . s:fg_diffadd_fg . s:bg_diffadd_bg . s:ft_none + exec 'hi DiffChange' . s:fg_diffchange_fg . s:bg_diffchange_bg . s:ft_none + exec 'hi DiffDelete' . s:fg_diffdelete_fg . s:bg_diffdelete_bg . s:ft_none + exec 'hi DiffText' . s:fg_difftext_fg . s:bg_difftext_bg . s:ft_none + + " Plugin: AGit + exec 'hi agitHead' . s:fg_green . s:ft_bold + exec 'hi agitHeader' . s:fg_olive + exec 'hi agitStatAdded' . s:fg_diffadd_fg + exec 'hi agitStatRemoved' . s:fg_diffdelete_fg + exec 'hi agitDiffAdd' . s:fg_diffadd_fg + exec 'hi agitDiffRemove' . s:fg_diffdelete_fg + exec 'hi agitDiffHeader' . s:fg_pink + exec 'hi agitDiff' . s:fg_foreground + exec 'hi agitDiffIndex' . s:fg_purple + exec 'hi agitDiffFileName' . s:fg_aqua + exec 'hi agitLog' . s:fg_foreground + exec 'hi agitAuthorMark' . s:fg_olive + exec 'hi agitDateMark' . s:fg_comment + exec 'hi agitHeaderLabel' . s:fg_aqua + exec 'hi agitDate' . s:fg_aqua + exec 'hi agitTree' . s:fg_pink + exec 'hi agitRef' . s:fg_blue . s:ft_bold + exec 'hi agitRemote' . s:fg_purple . s:ft_bold + exec 'hi agitTag' . s:fg_orange . s:ft_bold + + " Plugin: Spell Checking + exec 'hi SpellBad' . s:fg_foreground . s:bg_spellbad + exec 'hi SpellCap' . s:fg_foreground . s:bg_spellcap + exec 'hi SpellRare' . s:fg_foreground . s:bg_spellrare + exec 'hi SpellLocal' . s:fg_foreground . s:bg_spelllocal + + " Plugin: Indent Guides + exec 'hi IndentGuidesOdd' . s:bg_background + exec 'hi IndentGuidesEven' . s:bg_cursorline + + " Plugin: Startify + exec 'hi StartifyFile' . s:fg_blue . s:ft_bold + exec 'hi StartifyNumber' . s:fg_orange + exec 'hi StartifyHeader' . s:fg_comment + exec 'hi StartifySection' . s:fg_pink + exec 'hi StartifyPath' . s:fg_foreground + exec 'hi StartifySlash' . s:fg_navy + exec 'hi StartifyBracket' . s:fg_aqua + exec 'hi StartifySpecial' . s:fg_aqua + + " Git commit message + exec 'hi gitcommitSummary' . s:fg_blue + exec 'hi gitcommitHeader' . s:fg_green . s:ft_bold + exec 'hi gitcommitSelectedType' . s:fg_blue + exec 'hi gitcommitSelectedFile' . s:fg_pink + exec 'hi gitcommitUntrackedFile' . s:fg_diffdelete_fg + exec 'hi gitcommitBranch' . s:fg_aqua . s:ft_bold + + exec 'hi diffFile' . s:fg_aqua . s:ft_bold + exec 'hi diffIndexLine' . s:fg_purple + exec 'hi diffAdded' . s:fg_diffadd_fg + exec 'hi diffRemoved' . s:fg_diffdelete_fg + exec 'hi diffLine' . s:fg_orange . s:ft_bold + +endfun +" }}} + +" =========================== TESTING ===================================== +" Run unit testing :call g:PaperColor_Test() + +" UNIT TESTING: {{{ + +fun! s:test_report(test, verbose) + if a:test[1] != '' + echo a:test[0] + echo '==> failed. ' . a:test[1] + return 1 + + elseif a:verbose == 1 + echo a:test[0] + echo '==> passed.' + return 0 + + endif +endfun + +fun! s:palettes_should_have_color00_to_color15() + let l:premise = "All color palettes should have color00 to color15, each has 2 components" + let l:error = '' + + for [name, theme] in items(s:themes) + + for l:variant in ['light', 'dark'] + if has_key(theme, l:variant) + let l:palette = theme[l:variant].palette + + for l:color in ['color00', 'color01', 'color02', 'color03', + \ 'color04', 'color05', 'color06', 'color07', + \ 'color08', 'color09', 'color10', 'color11', + \ 'color12', 'color13', 'color14', 'color15' ] + if !has_key(l:palette, l:color) + let l:error .= "s:themes['" . name . "']." . l:variant . ".palette doesn't have " . l:color + break + else + let l:value = l:palette[l:color] + if len(l:value) != 2 + let l:error .= "s:themes['" . name . "']." . l:variant . ".palette." . l:color . " doesn't have required value" + break + endif + endif + endfor + + if l:error != '' + return [l:premise, l:error] + endif + endif + endfor + + endfor + + return [l:premise, l:error] +endfun +" ------------------------------------------------------------------ + +fun! s:colors_should_have_correct_format() + let l:premise = "All colors should have correct format like this ['#abcdef', '123'] or []" + let l:error = '' + + for [name, theme] in items(s:themes) + + for l:variant in ['light', 'dark'] + if has_key(theme, l:variant) + let l:palette = theme[l:variant].palette + + let l:msg_prefix = "\ns:themes['" . name . "']." . l:variant . ".palette." + for [l:color, l:value] in items(l:palette) + + let l:value = l:palette[l:color] + if len(l:value) != 2 && len(l:value) != 0 + let l:error .= msg_prefix . l:color . " doesn't have length 2 or 0" + continue + endif + + if len(l:value) == 2 + if l:value[0] == '' && l:value[1] == '' + let l:error .= msg_prefix . l:color . " doesn't have at least 1 non-empty value" + continue + endif + + if stridx(l:value[0], ' ') != -1 + let l:error .= msg_prefix . l:color . " has space in the first value" + continue + endif + + if stridx(l:value[1], ' ') != -1 + let l:error .= msg_prefix . l:color . " has space in the second value" + continue + endif + + if l:value[0] != '' && l:value[0][0] != '#' + let l:error .= msg_prefix . l:color . " doesn't have '#' at the beginning of the first value" + continue + endif + endif + + endfor + + " if l:error != '' + " return [l:premise, l:error] + " endif + + endif + endfor + + endfor + + return [l:premise, l:error] +endfun +" ------------------------------------------------------------------ + +fun! s:expected_256_only_colors_should_be_consistent() + let l:premise = 'Palletes that are marked for TEST_256_COLOR_CONSISTENCY should have consitent values of HEX and 256 for each color' + let l:error = '' + + for [name, theme] in items(s:themes) + + for l:variant in ['light', 'dark'] + if has_key(theme, l:variant) + + if has_key(theme[l:variant], 'TEST_256_COLOR_CONSISTENCY') && + \ theme[l:variant].TEST_256_COLOR_CONSISTENCY == 1 + let l:palette = theme[l:variant].palette + + for [l:color, l:value] in items(l:palette) + if len(l:value) == 2 + let l:value_hex = l:value[0] + let l:value_256 = l:value[1] + let l:expected_hex = s:to_HEX[l:value_256] + if l:value_hex != l:expected_hex + let l:error .= "\ns:themes['" . name . "']." . l:variant . ".palette " . + \ "Expected: '" . l:color ."' : ['" . l:expected_hex . "', '". l:value_256 . "']" + endif + endif + endfor " end looping through colors + + endif " had TEST_256_COLOR_CONSISTENCY + + endif " had variant + endfor " end looping through variants + + endfor " end looping through themes + + return [l:premise, l:error] +endfun +" ------------------------------------------------------------------ + +" TODO: later +" fun! s:test_converter() +" let l:premise = 'Just test converter' +" let l:error = '' + +" echo s:to_HEX['134'] . ' ' . s:to_256(s:to_HEX['134']) . ' expected 134' +" echo s:to_HEX['135'] . ' ' . s:to_256(s:to_HEX['135']) . ' expected 135' +" echo s:to_HEX['136'] . ' ' . s:to_256(s:to_HEX['136']) . ' expected 136' +" echo s:to_HEX['234'] . ' ' . s:to_256(s:to_HEX['234']) . ' expected 234' +" echo s:to_HEX['235'] . ' ' . s:to_256(s:to_HEX['235']) . ' expected 235' +" echo s:to_HEX['236'] . ' ' . s:to_256(s:to_HEX['236']) . ' expected 236' + +" return [l:premise, l:error] +" endfun +" ------------------------------------------------------------------ + +fun! g:PaperColor_Test() + let l:verbose = 1 " 0: only error + let l:test_functions = [ + \ function('s:palettes_should_have_color00_to_color15'), + \ function('s:colors_should_have_correct_format'), + \ function('s:expected_256_only_colors_should_be_consistent'), + \ ] + + if l:verbose == 1 + echo '----- PaperColor-Theme ------' + echo '-------- TEST BEGIN ---------' + endif + + let l:has_failed = 0 + + let l:counter = 0 + for l:Test in l:test_functions + let l:has_failed = l:has_failed || s:test_report(l:Test(), l:verbose) + if l:has_failed == 1 + echo ' ' + echo '[FAILED]' + echo "Failed at test function: " l:Test + echo ' ' + echo '-----------------------------' + echo '' 1.0 * l:counter / len(l:test_functions) * 100 + echon '% passed' + break + endif + let l:counter += 1 + endfor + + if l:verbose == 1 + if l:has_failed == 0 + echo '[SUCCEEDED]' + endif + echo '-------- TEST END -----------' + endif + + return l:has_failed +endfun + +" }}} + +" INTERMEDIATE FILES GENERATOR: {{{ + +fun! s:writeToFile(message, file) + echo a:file + new + setlocal buftype=nofile bufhidden=hide noswapfile nobuflisted + put =a:message + execute 'w ' a:file + q +endfun + +let s:script_path = fnamemodify(resolve(expand(':p')), ':h') + +fun! g:PaperColor_GenerateSpecs() + call s:generate_color_palettes() +endfun + +fun! s:generate_color_palettes() + let l:content = '' + let l:indent1 = ' ' + let l:indent2 = ' ' + for [l:name, l:theme] in items(s:themes) + + let l:content .= l:name . ":\n" + for l:variant in ['light', 'dark'] + if has_key(l:theme, l:variant) + + let l:content .= l:indent1 . l:variant . ":\n" + let l:palette = l:theme[l:variant].palette + + for [l:color, l:value] in items(l:palette) + let l:value_hex = l:value[0] + " let l:value_256 = l:value[1] + let l:content .= l:indent2 . l:color . ": " . l:value_hex . "\n" + endfor " end looping through colors + + endif + endfor " end looping through variants + + endfor " end looping through themes + " echo l:content + call s:writeToFile(l:content, "palettes.yml") +endfun + + + +" }}} + +" ============================ MAIN ======================================= + +" MAIN: {{{ + +hi clear +syntax reset +let g:colors_name = "PaperColor" + +call s:adapt_to_environment() +call s:set_color_variables() +call s:set_syntax_highlighting() + +" }}} + +" ========================================================================= +" Cheers! +" vim: fdm=marker ff=unix diff --git a/vim/colors/afterglow.vim b/vim/colors/afterglow.vim deleted file mode 100644 index 754c9d4..0000000 --- a/vim/colors/afterglow.vim +++ /dev/null @@ -1,538 +0,0 @@ -" File: afterglow.vim -" Author: Danilo Augusto -" Date: 2017-02-27 -" Vim color file - Afterglow (monokai version) -" -" Hex color conversion functions borrowed from the theme 'Desert256' - -set background=dark -if version > 580 - hi clear - if exists("syntax_on") - syntax reset - endif -endif - -let g:colors_name = "afterglow" - -" Default GUI Colours -let s:foreground = "d6d6d6" -let s:background = "1e1e1e" -let s:selection = "5a647e" -let s:line = "393939" -let s:comment = "797979" -let s:red = "ac4142" -let s:orange = "e87d3e" -let s:yellow = "e5b567" -let s:green = "b4c973" -let s:blue = "6c99bb" -let s:wine = "b05279" -let s:purple = "9e86c8" -let s:window = "4d5057" - -if has("gui_running") || &t_Co == 88 || &t_Co == 256 - " Returns an approximate grey index for the given grey level - fun 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 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 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 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 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 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 colour(r, g, b) - " Get the closest grey - let l:gx = grey_number(a:r) - let l:gy = grey_number(a:g) - let l:gz = grey_number(a:b) - - " Get the closest colour - let l:x = rgb_number(a:r) - let l:y = rgb_number(a:g) - let l:z = rgb_number(a:b) - - if l:gx == l:gy && l:gy == l:gz - " There are two possibilities - let l:dgr = grey_level(l:gx) - a:r - let l:dgg = grey_level(l:gy) - a:g - let l:dgb = grey_level(l:gz) - a:b - let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb) - let l:dr = rgb_level(l:gx) - a:r - let l:dg = rgb_level(l:gy) - a:g - let l:db = 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 grey_colour(l:gx) - else - " Use the colour - return rgb_colour(l:x, l:y, l:z) - endif - else - " Only one possibility - return rgb_colour(l:x, l:y, l:z) - endif - endfun - - " Returns the palette index to approximate the 'rrggbb' hex string - fun 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 colour(l:r, l:g, l:b) - endfun - - " Sets the highlighting for the given group - fun X(group, fg, bg, attr) - if a:fg != "" - exec "hi " . a:group . " guifg=#" . a:fg . " ctermfg=" . rgb(a:fg) - endif - if a:bg != "" - exec "hi " . a:group . " guibg=#" . a:bg . " ctermbg=" . rgb(a:bg) - endif - if a:attr != "" - exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr - endif - endfun - - " Vim Highlighting - call X("Normal", s:foreground, s:background, "") - call X("LineNr", s:comment, "", "") - call X("NonText", s:selection, "", "") - call X("SpecialKey", s:selection, "", "") - call X("Search", s:background, s:yellow, "") - call X("TabLine", s:window, s:foreground, "reverse") - call X("TabLineFill", s:window, s:foreground, "reverse") - call X("StatusLine", s:window, s:yellow, "reverse") - call X("StatusLineNC", s:window, s:foreground, "reverse") - call X("VertSplit", s:window, s:window, "none") - call X("Visual", "", s:selection, "") - call X("Directory", s:blue, "", "") - call X("ModeMsg", s:green, "", "") - call X("MoreMsg", s:green, "", "") - call X("Question", s:green, "", "") - call X("WarningMsg", s:red, "", "") - call X("MatchParen", "", s:selection, "") - call X("Folded", s:comment, s:background, "") - call X("FoldColumn", "", s:background, "") - if version >= 700 - call X("CursorLine", "", s:line, "none") - call X("CursorLineNR", s:orange, "", "none") - call X("CursorColumn", "", s:line, "none") - call X("PMenu", s:foreground, s:selection, "none") - call X("PMenuSel", s:foreground, s:selection, "reverse") - call X("SignColumn", "", s:background, "none") - end - if version >= 703 - call X("ColorColumn", "", s:line, "none") - end - - " Standard Highlighting - call X("Comment", s:comment, "", "") - call X("Todo", s:red, s:background, "") - call X("Title", s:comment, "", "") - call X("Identifier", s:foreground, "", "none") - call X("Statement", s:wine, "", "") - call X("Conditional", s:wine, "", "") - call X("Repeat", s:wine, "", "") - call X("Structure", s:wine, "", "") - call X("Function", s:blue, "", "") - call X("Constant", s:purple, "", "") - call X("Keyword", s:orange, "", "") - call X("String", s:yellow, "", "") - call X("Special", s:orange, "", "") - call X("PreProc", s:green, "", "") - call X("Operator", s:purple, "", "none") - call X("Type", s:wine, "", "none") - call X("Define", s:wine, "", "none") - call X("Include", s:wine, "", "") - - syntax match commonOperator "\(+\|=\|-\|*\|\^\|\/\)" - hi link commonOperator Operator - - " Vim Highlighting - call X("vimCommand", s:wine, "", "none") - - " C Highlighting - call X("cType", s:wine, "", "") - call X("cStorageClass", s:orange, "", "") - call X("cConditional", s:wine, "", "") - call X("cRepeat", s:wine, "", "") - - " PHP Highlighting - call X("phpVarSelector", s:wine, "", "") - call X("phpKeyword", s:wine, "", "") - call X("phpRepeat", s:wine, "", "") - call X("phpConditional", s:wine, "", "") - call X("phpStatement", s:wine, "", "") - call X("phpMemberSelector", s:foreground, "", "") - - " Ruby Highlighting - call X("rubySymbol", s:blue, "", "") - call X("rubyConstant", s:green, "", "") - call X("rubyAccess", s:yellow, "", "") - call X("rubyAttribute", s:blue, "", "") - call X("rubyInclude", s:blue, "", "") - call X("rubyLocalVariableOrMethod", s:orange, "", "") - call X("rubyCurlyBlock", s:orange, "", "") - call X("rubyStringDelimiter", s:yellow, "", "") - call X("rubyInterpolationDelimiter", s:orange, "", "") - call X("rubyConditional", s:wine, "", "") - call X("rubyRepeat", s:wine, "", "") - call X("rubyControl", s:wine, "", "") - call X("rubyException", s:wine, "", "") - - " Crystal Highlighting - call X("crystalSymbol", s:green, "", "") - call X("crystalConstant", s:yellow, "", "") - call X("crystalAccess", s:yellow, "", "") - call X("crystalAttribute", s:blue, "", "") - call X("crystalInclude", s:blue, "", "") - call X("crystalLocalVariableOrMethod", s:orange, "", "") - call X("crystalCurlyBlock", s:orange, "", "") - call X("crystalStringDelimiter", s:green, "", "") - call X("crystalInterpolationDelimiter", s:orange, "", "") - call X("crystalConditional", s:wine, "", "") - call X("crystalRepeat", s:wine, "", "") - call X("crystalControl", s:wine, "", "") - call X("crystalException", s:wine, "", "") - - " Python Highlighting - call X("pythonInclude", s:wine, "", "") - call X("pythonStatement", s:blue, "", "") - call X("pythonConditional", s:wine, "", "") - call X("pythonRepeat", s:wine, "", "") - call X("pythonException", s:wine, "", "") - call X("pythonFunction", s:green, "", "italic") - call X("pythonPreCondit", s:wine, "", "") - call X("pythonExClass", s:orange, "", "") - call X("pythonBuiltin", s:purple, "", "") - call X("pythonOperator", s:wine, "", "") - call X("pythonNumber", s:purple, "", "") - call X("pythonString", s:yellow, "", "") - call X("pythonRawString", s:yellow, "", "") - call X("pythonDecorator", s:wine, "", "") - call X("pythonDoctest", s:yellow, "", "") - - " JavaScript Highlighting - call X("javaScriptEndColons", s:foreground, "", "") - call X("javaScriptOpSymbols", s:foreground, "", "") - call X("javaScriptLogicSymbols", s:foreground, "", "") - call X("javaScriptBraces", s:foreground, "", "") - call X("javaScriptParens", s:foreground, "", "") - call X("javaScriptFunction", s:green, "", "") - call X("javaScriptComment", s:comment, "", "") - call X("javaScriptLineComment", s:comment, "", "") - call X("javaScriptDocComment", s:comment, "", "") - call X("javaScriptCommentTodo", s:red, "", "") - call X("javaScriptString", s:yellow, "", "") - call X("javaScriptRegexpString", s:yellow, "", "") - call X("javaScriptTemplateString", s:yellow, "", "") - call X("javaScriptNumber", s:purple, "", "") - call X("javaScriptFloat", s:purple, "", "") - call X("javaScriptGlobal", s:purple, "", "") - call X("javaScriptCharacter", s:blue, "", "") - call X("javaScriptPrototype", s:blue, "", "") - call X("javaScriptConditional", s:blue, "", "") - call X("javaScriptBranch", s:blue, "", "") - call X("javaScriptIdentifier", s:orange, "", "") - call X("javaScriptRepeat", s:blue, "", "") - call X("javaScriptStatement", s:blue, "", "") - call X("javaScriptMessage", s:blue, "", "") - call X("javaScriptReserved", s:blue, "", "") - call X("javaScriptOperator", s:blue, "", "") - call X("javaScriptNull", s:purple, "", "") - call X("javaScriptBoolean", s:purple, "", "") - call X("javaScriptLabel", s:blue, "", "") - call X("javaScriptSpecial", s:blue, "", "") - call X("javaScriptExceptions", s:red, "", "") - call X("javaScriptDeprecated", s:red, "", "") - call X("javaScriptError", s:red, "", "") - - " LaTeX - call X("texStatement",s:blue, "", "") - call X("texMath", s:wine, "", "none") - call X("texMathMacher", s:yellow, "", "none") - call X("texRefLabel", s:wine, "", "none") - call X("texRefZone", s:blue, "", "none") - call X("texComment", s:comment, "", "none") - call X("texDelimiter", s:purple, "", "none") - call X("texMathZoneX", s:purple, "", "none") - - " CoffeeScript Highlighting - call X("coffeeRepeat", s:wine, "", "") - call X("coffeeConditional", s:wine, "", "") - call X("coffeeKeyword", s:wine, "", "") - call X("coffeeObject", s:yellow, "", "") - - " HTML Highlighting - call X("htmlTag", s:foreground, "", "") - call X("htmlEndTag", s:foreground, "", "") - call X("htmlTagName", s:wine, "", "") - call X("htmlArg", s:green, "", "") - call X("htmlScriptTag", s:wine, "", "") - - " Diff Highlighting - call X("diffAdd", "", "4c4e39", "") - call X("diffDelete", s:background, s:red, "") - call X("diffChange", "", "2B5B77", "") - call X("diffText", s:line, s:blue, "") - - " ShowMarks Highlighting - call X("ShowMarksHLl", s:orange, s:background, "none") - call X("ShowMarksHLo", s:wine, s:background, "none") - call X("ShowMarksHLu", s:yellow, s:background, "none") - call X("ShowMarksHLm", s:wine, s:background, "none") - - " Lua Highlighting - call X("luaStatement", s:wine, "", "") - call X("luaRepeat", s:wine, "", "") - call X("luaCondStart", s:wine, "", "") - call X("luaCondElseif", s:wine, "", "") - call X("luaCond", s:wine, "", "") - call X("luaCondEnd", s:wine, "", "") - - " Cucumber Highlighting - call X("cucumberGiven", s:blue, "", "") - call X("cucumberGivenAnd", s:blue, "", "") - - " Go Highlighting - call X("goDirective", s:wine, "", "") - call X("goDeclaration", s:wine, "", "") - call X("goStatement", s:wine, "", "") - call X("goConditional", s:wine, "", "") - call X("goConstants", s:orange, "", "") - call X("goTodo", s:red, "", "") - call X("goDeclType", s:blue, "", "") - call X("goBuiltins", s:wine, "", "") - call X("goRepeat", s:wine, "", "") - call X("goLabel", s:wine, "", "") - - " Clojure Highlighting - call X("clojureConstant", s:orange, "", "") - call X("clojureBoolean", s:orange, "", "") - call X("clojureCharacter", s:orange, "", "") - call X("clojureKeyword", s:green, "", "") - call X("clojureNumber", s:orange, "", "") - call X("clojureString", s:green, "", "") - call X("clojureRegexp", s:green, "", "") - call X("clojureParen", s:wine, "", "") - call X("clojureVariable", s:yellow, "", "") - call X("clojureCond", s:blue, "", "") - call X("clojureDefine", s:wine, "", "") - call X("clojureException", s:red, "", "") - call X("clojureFunc", s:blue, "", "") - call X("clojureMacro", s:blue, "", "") - call X("clojureRepeat", s:blue, "", "") - call X("clojureSpecial", s:wine, "", "") - call X("clojureQuote", s:blue, "", "") - call X("clojureUnquote", s:blue, "", "") - call X("clojureMeta", s:blue, "", "") - call X("clojureDeref", s:blue, "", "") - call X("clojureAnonArg", s:blue, "", "") - call X("clojureRepeat", s:blue, "", "") - call X("clojureDispatch", s:blue, "", "") - - " Scala Highlighting - call X("scalaKeyword", s:wine, "", "") - call X("scalaKeywordModifier", s:wine, "", "") - call X("scalaOperator", s:blue, "", "") - call X("scalaPackage", s:wine, "", "") - call X("scalaFqn", s:foreground, "", "") - call X("scalaFqnSet", s:foreground, "", "") - call X("scalaImport", s:wine, "", "") - call X("scalaBoolean", s:orange, "", "") - call X("scalaDef", s:wine, "", "") - call X("scalaVal", s:wine, "", "") - call X("scalaVar", s:wine, "", "") - call X("scalaClass", s:wine, "", "") - call X("scalaObject", s:wine, "", "") - call X("scalaTrait", s:wine, "", "") - call X("scalaDefName", s:blue, "", "") - call X("scalaValName", s:foreground, "", "") - call X("scalaVarName", s:foreground, "", "") - call X("scalaClassName", s:foreground, "", "") - call X("scalaType", s:yellow, "", "") - call X("scalaTypeSpecializer", s:yellow, "", "") - call X("scalaAnnotation", s:orange, "", "") - call X("scalaNumber", s:orange, "", "") - call X("scalaDefSpecializer", s:yellow, "", "") - call X("scalaClassSpecializer", s:yellow, "", "") - call X("scalaBackTick", s:green, "", "") - call X("scalaRoot", s:foreground, "", "") - call X("scalaMethodCall", s:blue, "", "") - call X("scalaCaseType", s:yellow, "", "") - call X("scalaLineComment", s:comment, "", "") - call X("scalaComment", s:comment, "", "") - call X("scalaDocComment", s:comment, "", "") - call X("scalaDocTags", s:comment, "", "") - call X("scalaEmptyString", s:green, "", "") - call X("scalaMultiLineString", s:green, "", "") - call X("scalaUnicode", s:orange, "", "") - call X("scalaString", s:green, "", "") - call X("scalaStringEscape", s:green, "", "") - call X("scalaSymbol", s:orange, "", "") - call X("scalaChar", s:orange, "", "") - call X("scalaXml", s:green, "", "") - call X("scalaConstructorSpecializer", s:yellow, "", "") - call X("scalaBackTick", s:blue, "", "") - - " Git - call X("diffAdded", s:green, "", "") - call X("diffRemoved", s:red, "", "") - call X("gitcommitSummary", "", "", "bold") - - " Delete Functions - delf X - delf rgb - delf colour - delf rgb_colour - delf rgb_level - delf rgb_number - delf grey_colour - delf grey_level - delf grey_number -endif diff --git a/vim/colors/alduin.vim b/vim/colors/alduin.vim deleted file mode 100755 index 12377dd..0000000 --- a/vim/colors/alduin.vim +++ /dev/null @@ -1,284 +0,0 @@ -" " ___ " -" " - -_, ,, |\ " -" " ( ~/|| || \\ ' " -" " ( / || || / \\ \\ \\ \\ \\/\\ " -" " \/==|| || || || || || || || || " -" " /_ _|| || || || || || || || || " -" " ( - \\, \\ \\/ \\/\\ \\ \\ \\ " - -" SKYRIM BELONGS TO THE NORDS: - -" A Vim colorscheme -" Author: Alessandro Yorba -" Script URL: https://github.com/AlessandroYorba/Alduin - -" Copyright (c) 2017 Alessandro Yorba -" -" Permission is hereby granted, free of charge, to any person obtaining a copy -" of this software and associated documentation files (the "Software"), to deal -" in the Software without restriction, including without limitation the rights -" to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -" copies of the Software, and to permit persons to whom the Software is -" furnished to do so, subject to the following conditions: -" -" The above copyright notice and this permission notice shall be included in -" all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -" OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -" THE SOFTWARE. - -"================================================================================= -" BASIC COLORS: -"================================================================================= -" Foreground #dfdfaf | Selection #875f5f | -" Background #121212 | Selected Text #dfdfaf | -" CursorColor #dfdfaf | | -" Bold #ffffff | | -" Links #af0000 | | -"================================================================================= -" ANSI COLORS ALDUIN: -"================================================================================= -"---------------------------------------|----------------------------------------- -" NORMAL Hex xterm | "BRIGHT Hex xterm | -"---------------------------------------|----------------------------------------- -" Black #1c1c1c 0 | brBlack #87875f 8 | -" Red #af1600 1 | brRed #af5f5f 9 | -" Green #af5f00 2 | brGreen #d75f00 10 | -" Yellow #878787 3 | brYellow #5f5f87 11 | -" Blue #af875f 4 | brBlue #dfaf87 12 | -" Magenta #875f5f 5 | brMagenta #af8787 13 | -" Cyan #87afaf 6 | brCyan #afd7d7 14 | -" White #dfdfaf 7 | brWhite #ffdf87 15 | -"---------------------------------------|----------------------------------------- - -"================================================================================= -" SETUP: -"================================================================================= - -set background=dark - -highlight clear -if exists("syntax_on") - syntax reset -endif - -let g:colors_name="alduin" - -if !exists("g:alduin_Shout_Clear_Skies") - let g:alduin_Shout_Clear_Skies = 0 -endif - -if !exists( "g:alduin_Shout_Aura_Whisper") - let g:alduin_Shout_Aura_Whisper = 0 -endif - -if !exists( "g:alduin_Shout_Fire_Breath" ) - let g:alduin_Shout_Fire_Breath = 0 -endif - -if !exists("g:alduin_Shout_Animal_Allegiance") - let g:alduin_Shout_Animal_Allegiance = 0 -endif - -if !exists("g:alduin_Shout_Dragon_Aspect" ) - let g:alduin_Shout_Dragon_Aspect = 0 -endif - -if !exists( "g:alduin_Shout_Become_Ethereal" ) - let g:alduin_Shout_Become_Ethereal = 0 -endif - -if !exists( "g:alduin_Contract_Vampirism") - let g:alduin_Contract_Vampirism = 0 -endif - -"=================================================================================================================== -" CONTRACT VAMPIRISM: -"=================================================================================================================== -if g:alduin_Contract_Vampirism - let alduin_Hour = strftime("%H") - "Alduin: 7am - 5pm - if 7 <= alduin_Hour && alduin_Hour < 17 - let g:alduin_Shout_Dragon_Aspect = 0 - let g:alduin_Shout_Become_Ethereal = 0 - "Shout_Dragon_Aspect: 5pm - 12am - elseif 17 <= alduin_Hour && alduin_Hour < 24 - let g:alduin_Shout_Dragon_Aspect = 1 - let g:alduin_Shout_Become_Ethereal = 0 - "Shout_Become_Ethereal: 12am - 7am - else - let g:alduin_Shout_Dragon_Aspect = 0 - let g:alduin_Shout_Become_Ethereal = 1 - endif -endif - -"=================================================================================================================== -" ALDUIN HIGHLIGHTING: -"=================================================================================================================== -highlight! Number guifg=#af5f00 guibg=NONE gui=NONE ctermfg=130 ctermbg=NONE cterm=NONE -highlight! Constant guifg=#af8787 guibg=NONE gui=NONE ctermfg=138 ctermbg=NONE cterm=NONE -highlight! Statement guifg=#878787 guibg=NONE gui=NONE ctermfg=102 ctermbg=NONE cterm=NONE -highlight! PreProc guifg=#dfaf87 guibg=NONE gui=NONE ctermfg=180 ctermbg=NONE cterm=NONE -highlight! Search guifg=#dfdfaf guibg=#875f5f gui=NONE ctermfg=187 ctermbg=95 cterm=NONE -highlight! MatchParen guifg=#dfdfaf guibg=#875f5f gui=NONE ctermfg=187 ctermbg=95 cterm=NONE -highlight! ModeMsg guifg=#afaf87 guibg=NONE gui=NONE ctermfg=144 ctermbg=NONE cterm=NONE -highlight! Function guifg=#875f5f guibg=NONE gui=NONE ctermfg=95 ctermbg=NONE cterm=NONE -highlight! Identifier guifg=#87afaf guibg=NONE gui=NONE ctermfg=109 ctermbg=NONE cterm=NONE -highlight! Special guifg=#af5f5f guibg=NONE gui=NONE ctermfg=131 ctermbg=NONE cterm=NONE -highlight! Underlined guifg=#afd7d7 guibg=NONE gui=NONE ctermfg=152 ctermbg=NONE cterm=NONE -highlight! NonText guifg=#87875f guibg=NONE gui=NONE ctermfg=101 ctermbg=NONE cterm=NONE -highlight! Comment guifg=#87875f guibg=NONE gui=NONE ctermfg=101 ctermbg=NONE cterm=NONE -highlight! SpecialComment guifg=#87875f guibg=NONE gui=reverse ctermfg=101 ctermbg=NONE cterm=reverse -highlight! IncSearch guifg=#af5f5f guibg=NONE gui=reverse ctermfg=131 ctermbg=NONE cterm=reverse -highlight! Todo guifg=#af5f00 guibg=NONE gui=reverse ctermfg=130 ctermbg=NONE cterm=reverse -highlight! Error guifg=#af5f5f guibg=#121212 gui=reverse ctermfg=131 ctermbg=233 cterm=reverse -highlight! DiffAdd guifg=#87af87 guibg=NONE gui=reverse ctermfg=108 ctermbg=NONE cterm=reverse -highlight! DiffChange guifg=#5f5f87 guibg=NONE gui=reverse ctermfg=60 ctermbg=NONE cterm=reverse -highlight! DiffText guifg=#8787af guibg=NONE gui=reverse ctermfg=103 ctermbg=NONE cterm=reverse -highlight! DiffDelete guifg=#af5f5f guibg=NONE gui=reverse ctermfg=131 ctermbg=NONE cterm=reverse -highlight! SpellBad guifg=#ff0000 guibg=NONE gui=undercurl ctermfg=196 ctermbg=NONE cterm=undercurl -highlight! SpellLocal guifg=#5f875f guibg=NONE gui=undercurl ctermfg=65 ctermbg=NONE cterm=undercurl -highlight! SpellCap guifg=#87afff guibg=NONE gui=undercurl ctermfg=111 ctermbg=NONE cterm=undercurl -highlight! SpellRare guifg=#d75f00 guibg=NONE gui=undercurl ctermfg=166 ctermbg=NONE cterm=undercurl -highlight! VisualNOS guifg=NONE guibg=NONE gui=underline ctermfg=NONE ctermbg=NONE cterm=underline -highlight! PmenuSbar guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE - -highlight! link PmenuThumb PmenuSbar -highlight! link VertSplit LineNr -highlight! link WildMenu Search -highlight! link Visual Search -highlight! link PmenuSel Search -highlight! link MoreMsg PreProc -highlight! link Title PreProc -highlight! link Include PreProc -highlight! link Define PreProc -highlight! link Macro PreProc -highlight! link PreCondit PreProc -highlight! link htmlItalic PreProc -highlight! link cssIdentifier PreProc -highlight! link cssClassName PreProc -highlight! link SpecialKey Identifier -highlight! link Directory Special -highlight! link WarningMsg Special -highlight! link ErrorMsg Error -highlight! link storageclass Function -highlight! link structure Function -highlight! link typedef Function -highlight! link htmlArg Function -highlight! link Question Function -highlight! link Type Function -highlight! link Operator Statement -highlight! link Label Statement -highlight! link Conditional Statement -highlight! link Repeat Statement -highlight! link Keyword Statement -highlight! link Exception Statement -highlight! link Character Number -highlight! link Boolean Number -highlight! link Float Number -highlight! link VimCommentTitle SpecialComment - -"=================================================================================================================== -" ALDUIN UI: -"=================================================================================================================== -if 1 - highlight! Normal guifg=#dfdfaf guibg=#1c1c1c gui=NONE ctermfg=187 ctermbg=234 cterm=NONE - highlight! StatusLine guifg=#87875f guibg=#121212 gui=NONE ctermfg=101 ctermbg=233 cterm=NONE - highlight! StatusLineNC guifg=#585858 guibg=#121212 gui=NONE ctermfg=240 ctermbg=233 cterm=NONE - highlight! CursorLine guifg=NONE guibg=#262626 gui=NONE ctermfg=NONE ctermbg=235 cterm=NONE - highlight! LineNr guifg=#444444 guibg=#121212 gui=NONE ctermfg=238 ctermbg=233 cterm=NONE - highlight! CursorLineNR guifg=#1c1c1c guibg=#87875f gui=NONE ctermfg=234 ctermbg=101 cterm=NONE - highlight! FoldColumn guifg=#87afaf guibg=#1c1c1c gui=NONE ctermfg=109 ctermbg=234 cterm=NONE - highlight! String guifg=#ffdf87 guibg=#262626 gui=NONE ctermfg=222 ctermbg=235 cterm=NONE - highlight! ColorColumn guifg=NONE guibg=#262626 gui=NONE ctermfg=NONE ctermbg=235 cterm=NONE - - highlight! link SignColumn TabLine - highlight! link TabLineFill TabLine - highlight! link Pmenu StatusLine - highlight! link TabLineSel StatusLine - highlight! link TabLine LineNr - highlight! link Folded LineNr -endif - -"=================================================================================================================== -" SHOUT_DRAGON_ASPECT UI: -"=================================================================================================================== -if g:alduin_Shout_Dragon_Aspect - highlight! Normal guifg=#dfdfaf guibg=#121212 gui=NONE ctermfg=187 ctermbg=233 cterm=NONE - highlight! StatusLine guifg=#87875f guibg=#080808 gui=NONE ctermfg=101 ctermbg=232 cterm=NONE - highlight! StatusLineNC guifg=#444444 guibg=#080808 gui=NONE ctermfg=238 ctermbg=232 cterm=NONE - highlight! CursorLine guifg=NONE guibg=#1c1c1c gui=NONE ctermfg=NONE ctermbg=234 cterm=NONE - highlight! LineNr guifg=#444444 guibg=#080808 gui=NONE ctermfg=238 ctermbg=232 cterm=NONE - highlight! CursorLineNR guifg=#121212 guibg=#87875f gui=NONE ctermfg=233 ctermbg=101 cterm=NONE - highlight! FoldColumn guifg=#87afaf guibg=#121212 gui=NONE ctermfg=109 ctermbg=233 cterm=NONE - highlight! String guifg=#ffdf87 guibg=#1c1c1c gui=NONE ctermfg=222 ctermbg=234 cterm=NONE - highlight! TabLine guifg=#87875f guibg=#080808 gui=NONE ctermfg=101 ctermbg=232 cterm=NONE - highlight! TabLineSel guifg=#121212 guibg=#87875f gui=NONE ctermfg=233 ctermbg=101 cterm=NONE - highlight! ColorColumn guifg=NONE guibg=#1c1c1c gui=NONE ctermfg=NONE ctermbg=234 cterm=NONE - - highlight! link SignColumn TabLine - highlight! link TabLineFill TabLine - highlight! link Pmenu StatusLine - highlight! link TabLineSel StatusLine - highlight! link TabLine LineNr - highlight! link Folded LineNr -endif - -"=================================================================================================================== -" SHOUT_BECOME_ETHEREAL UI: -"=================================================================================================================== -if g:alduin_Shout_Become_Ethereal - highlight! Normal guifg=#dfdfaf guibg=#080808 gui=NONE ctermfg=187 ctermbg=232 cterm=NONE - highlight! StatusLine guifg=#87875f guibg=#1c1c1c gui=NONE ctermfg=101 ctermbg=234 cterm=NONE - highlight! StatusLineNC guifg=#444444 guibg=#1c1c1c gui=NONE ctermfg=238 ctermbg=234 cterm=NONE - highlight! CursorLine guifg=NONE guibg=#121212 gui=NONE ctermfg=NONE ctermbg=233 cterm=NONE - highlight! LineNr guifg=#444444 guibg=#000000 gui=NONE ctermfg=238 ctermbg=16 cterm=NONE - highlight! CursorLineNR guifg=#080808 guibg=#87875f gui=NONE ctermfg=232 ctermbg=101 cterm=NONE - highlight! FoldColumn guifg=#87afaf guibg=#080808 gui=NONE ctermfg=109 ctermbg=232 cterm=NONE - highlight! String guifg=#ffdf87 guibg=#121212 gui=NONE ctermfg=222 ctermbg=233 cterm=NONE - highlight! TabLine guifg=#87875f guibg=#000000 gui=NONE ctermfg=101 ctermbg=16 cterm=NONE - highlight! TabLineSel guifg=#080808 guibg=#87875f gui=NONE ctermfg=232 ctermbg=101 cterm=NONE - highlight! ColorColumn guifg=NONE guibg=#121212 gui=NONE ctermfg=NONE ctermbg=233 cterm=NONE - - highlight! link SignColumn TabLine - highlight! link TabLineFill TabLine - highlight! link Pmenu StatusLine - highlight! link TabLineSel StatusLine - highlight! link TabLine LineNr - highlight! link Folded LineNr -endif - -"=================================================================================================================== -" SHOUT_CLEAR_SKIES: -"=================================================================================================================== -if g:alduin_Shout_Clear_Skies - highlight! CursorLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE -endif - -"=================================================================================================================== -" SHOUT_ANIMAL_ALLEGIANCE: -"=================================================================================================================== -if g:alduin_Shout_Animal_Allegiance - highlight! String guifg=#ffdf87 guibg=NONE ctermfg=222 ctermbg=NONE cterm=NONE gui=NONE -endif - -"=================================================================================================================== -" SHOUT_AURA_WHISPER: -"=================================================================================================================== -if g:alduin_Shout_Aura_Whisper - highlight! MatchParen guifg=#eeeeee guibg=#1c1c1c gui=underline ctermfg=255 ctermbg=234 cterm=underline -endif - -"=================================================================================================================== -" SHOUT_FIRE_BREATH: -"=================================================================================================================== -if g:alduin_Shout_Fire_Breath - highlight! Search guifg=#dfdfaf guibg=#5f0000 gui=NONE ctermfg=187 ctermbg=52 cterm=NONE - highlight! Special guifg=#af0000 guibg=NONE gui=NONE ctermfg=124 ctermbg=NONE cterm=NONE - highlight! Title guifg=#af5f5f guibg=NONE gui=NONE ctermfg=131 ctermbg=NONE cterm=NONE -endif diff --git a/vim/colors/base16-atelier-savanna.vim b/vim/colors/base16-atelier-savanna.vim deleted file mode 100644 index 78812dd..0000000 --- a/vim/colors/base16-atelier-savanna.vim +++ /dev/null @@ -1,330 +0,0 @@ -" vi:syntax=vim - -" base16-vim (https://github.com/chriskempson/base16-vim) -" by Chris Kempson (http://chriskempson.com) -" Atelier Savanna scheme by Bram de Haan (http://atelierbramdehaan.nl) - -" This enables the coresponding base16-shell script to run so that -" :colorscheme works in terminals supported by base16-shell scripts -" User must set this variable in .vimrc -" let g:base16_shell_path=base16-builder/output/shell/ -if !has('gui_running') - if exists("g:base16_shell_path") - execute "silent !/bin/sh ".g:base16_shell_path."/base16-atelier-savanna.sh" - endif -endif - -" GUI color definitions -let s:gui00 = "171c19" -let s:gui01 = "232a25" -let s:gui02 = "526057" -let s:gui03 = "5f6d64" -let s:gui04 = "78877d" -let s:gui05 = "87928a" -let s:gui06 = "dfe7e2" -let s:gui07 = "ecf4ee" -let s:gui08 = "b16139" -let s:gui09 = "9f713c" -let s:gui0A = "a07e3b" -let s:gui0B = "489963" -let s:gui0C = "1c9aa0" -let s:gui0D = "478c90" -let s:gui0E = "55859b" -let s:gui0F = "867469" - -" 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 - -" Neovim terminal colours -if has("nvim") - let g:terminal_color_0 = "#171c19" - let g:terminal_color_1 = "#b16139" - let g:terminal_color_2 = "#489963" - let g:terminal_color_3 = "#a07e3b" - let g:terminal_color_4 = "#478c90" - let g:terminal_color_5 = "#55859b" - let g:terminal_color_6 = "#1c9aa0" - let g:terminal_color_7 = "#87928a" - let g:terminal_color_8 = "#5f6d64" - let g:terminal_color_9 = "#9f713c" - let g:terminal_color_10 = "#232a25" - let g:terminal_color_11 = "#526057" - let g:terminal_color_12 = "#78877d" - let g:terminal_color_13 = "#dfe7e2" - let g:terminal_color_14 = "#867469" - let g:terminal_color_15 = "#ecf4ee" - let g:terminal_color_background = g:terminal_color_0 - let g:terminal_color_foreground = g:terminal_color_7 - if &background == "light" - let g:terminal_color_background = g:terminal_color_7 - let g:terminal_color_foreground = g:terminal_color_2 - endif -endif - -" Theme setup -hi clear -syntax reset -let g:colors_name = "base16-atelier-savanna" - -" Highlighting function -fun hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) - if a:guifg != "" - exec "hi " . a:group . " guifg=#" . a:guifg - endif - if a:guibg != "" - exec "hi " . a:group . " guibg=#" . a:guibg - endif - if a:ctermfg != "" - exec "hi " . a:group . " ctermfg=" . a:ctermfg - endif - if a:ctermbg != "" - exec "hi " . a:group . " ctermbg=" . a:ctermbg - endif - if 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 - -" Vim editor colors -call hi("Normal", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") -call hi("Bold", "", "", "", "", "bold", "") -call hi("Debug", s:gui08, "", s:cterm08, "", "", "") -call hi("Directory", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Error", s:gui00, s:gui08, s:cterm00, s:cterm08, "", "") -call hi("ErrorMsg", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") -call hi("Exception", s:gui08, "", s:cterm08, "", "", "") -call hi("FoldColumn", s:gui0C, s:gui01, s:cterm0C, s:cterm01, "", "") -call hi("Folded", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("IncSearch", s:gui01, s:gui09, s:cterm01, s:cterm09, "none", "") -call hi("Italic", "", "", "", "", "none", "") -call hi("Macro", s:gui08, "", s:cterm08, "", "", "") -call hi("MatchParen", "", s:gui03, "", s:cterm03, "", "") -call hi("ModeMsg", s:gui0B, "", s:cterm0B, "", "", "") -call hi("MoreMsg", s:gui0B, "", s:cterm0B, "", "", "") -call hi("Question", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Search", s:gui03, s:gui0A, s:cterm03, s:cterm0A, "", "") -call hi("SpecialKey", s:gui03, "", s:cterm03, "", "", "") -call hi("TooLong", s:gui08, "", s:cterm08, "", "", "") -call hi("Underlined", s:gui08, "", s:cterm08, "", "", "") -call hi("Visual", "", s:gui02, "", s:cterm02, "", "") -call hi("VisualNOS", s:gui08, "", s:cterm08, "", "", "") -call hi("WarningMsg", s:gui08, "", s:cterm08, "", "", "") -call hi("WildMenu", s:gui08, s:gui0A, s:cterm08, "", "", "") -call hi("Title", s:gui0D, "", s:cterm0D, "", "none", "") -call hi("Conceal", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") -call hi("Cursor", s:gui00, s:gui05, s:cterm00, s:cterm05, "", "") -call hi("NonText", s:gui03, "", s:cterm03, "", "", "") -call hi("LineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("SignColumn", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("StatusLine", s:gui04, s:gui02, s:cterm04, s:cterm02, "none", "") -call hi("StatusLineNC", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("VertSplit", s:gui02, s:gui02, s:cterm02, s:cterm02, "none", "") -call hi("ColorColumn", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorColumn", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorLine", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorLineNr", s:gui04, s:gui01, s:cterm04, s:cterm01, "", "") -call hi("QuickFixLine", "", s:gui01, "", s:cterm01, "none", "") -call hi("PMenu", s:gui05, s:gui01, s:cterm05, s:cterm01, "none", "") -call hi("PMenuSel", s:gui01, s:gui05, s:cterm01, s:cterm05, "", "") -call hi("TabLine", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("TabLineFill", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("TabLineSel", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "none", "") - -" Standard syntax highlighting -call hi("Boolean", s:gui09, "", s:cterm09, "", "", "") -call hi("Character", s:gui08, "", s:cterm08, "", "", "") -call hi("Comment", s:gui03, "", s:cterm03, "", "", "") -call hi("Conditional", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Constant", s:gui09, "", s:cterm09, "", "", "") -call hi("Define", s:gui0E, "", s:cterm0E, "", "none", "") -call hi("Delimiter", s:gui0F, "", s:cterm0F, "", "", "") -call hi("Float", s:gui09, "", s:cterm09, "", "", "") -call hi("Function", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Identifier", s:gui08, "", s:cterm08, "", "none", "") -call hi("Include", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Keyword", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Label", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Number", s:gui09, "", s:cterm09, "", "", "") -call hi("Operator", s:gui05, "", s:cterm05, "", "none", "") -call hi("PreProc", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Repeat", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Special", s:gui0C, "", s:cterm0C, "", "", "") -call hi("SpecialChar", s:gui0F, "", s:cterm0F, "", "", "") -call hi("Statement", s:gui08, "", s:cterm08, "", "", "") -call hi("StorageClass", s:gui0A, "", s:cterm0A, "", "", "") -call hi("String", s:gui0B, "", s:cterm0B, "", "", "") -call hi("Structure", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Tag", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Todo", s:gui0A, s:gui01, s:cterm0A, s:cterm01, "", "") -call hi("Type", s:gui0A, "", s:cterm0A, "", "none", "") -call hi("Typedef", s:gui0A, "", s:cterm0A, "", "", "") - -" C highlighting -call hi("cOperator", s:gui0C, "", s:cterm0C, "", "", "") -call hi("cPreCondit", s:gui0E, "", s:cterm0E, "", "", "") - -" C# highlighting -call hi("csClass", s:gui0A, "", s:cterm0A, "", "", "") -call hi("csAttribute", s:gui0A, "", s:cterm0A, "", "", "") -call hi("csModifier", s:gui0E, "", s:cterm0E, "", "", "") -call hi("csType", s:gui08, "", s:cterm08, "", "", "") -call hi("csUnspecifiedStatement", s:gui0D, "", s:cterm0D, "", "", "") -call hi("csContextualStatement", s:gui0E, "", s:cterm0E, "", "", "") -call hi("csNewDecleration", s:gui08, "", s:cterm08, "", "", "") - -" CSS highlighting -call hi("cssBraces", s:gui05, "", s:cterm05, "", "", "") -call hi("cssClassName", s:gui0E, "", s:cterm0E, "", "", "") -call hi("cssColor", s:gui0C, "", s:cterm0C, "", "", "") - -" Diff highlighting -call hi("DiffAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("DiffChange", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("DiffDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") -call hi("DiffText", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("DiffAdded", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") -call hi("DiffFile", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") -call hi("DiffNewFile", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") -call hi("DiffLine", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") -call hi("DiffRemoved", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") - -" Git highlighting -call hi("gitcommitOverflow", s:gui08, "", s:cterm08, "", "", "") -call hi("gitcommitSummary", s:gui0B, "", s:cterm0B, "", "", "") -call hi("gitcommitComment", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitUntracked", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitDiscarded", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitSelected", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitHeader", s:gui0E, "", s:cterm0E, "", "", "") -call hi("gitcommitSelectedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitUnmergedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitDiscardedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitBranch", s:gui09, "", s:cterm09, "", "bold", "") -call hi("gitcommitUntrackedFile", s:gui0A, "", s:cterm0A, "", "", "") -call hi("gitcommitUnmergedFile", s:gui08, "", s:cterm08, "", "bold", "") -call hi("gitcommitDiscardedFile", s:gui08, "", s:cterm08, "", "bold", "") -call hi("gitcommitSelectedFile", s:gui0B, "", s:cterm0B, "", "bold", "") - -" GitGutter highlighting -call hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") -call hi("GitGutterChangeDelete", s:gui0E, s:gui01, s:cterm0E, s:cterm01, "", "") - -" HTML highlighting -call hi("htmlBold", s:gui0A, "", s:cterm0A, "", "", "") -call hi("htmlItalic", s:gui0E, "", s:cterm0E, "", "", "") -call hi("htmlEndTag", s:gui05, "", s:cterm05, "", "", "") -call hi("htmlTag", s:gui05, "", s:cterm05, "", "", "") - -" JavaScript highlighting -call hi("javaScript", s:gui05, "", s:cterm05, "", "", "") -call hi("javaScriptBraces", s:gui05, "", s:cterm05, "", "", "") -call hi("javaScriptNumber", s:gui09, "", s:cterm09, "", "", "") -" pangloss/vim-javascript highlighting -call hi("jsOperator", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsStatement", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsReturn", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsThis", s:gui08, "", s:cterm08, "", "", "") -call hi("jsClassDefinition", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsFunction", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsFuncName", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsFuncCall", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsClassFuncName", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsClassMethodType", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsRegexpString", s:gui0C, "", s:cterm0C, "", "", "") -call hi("jsGlobalObjects", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsGlobalNodeObjects", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsExceptions", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsBuiltins", s:gui0A, "", s:cterm0A, "", "", "") - -" Mail highlighting -call hi("mailQuoted1", s:gui0A, "", s:cterm0A, "", "", "") -call hi("mailQuoted2", s:gui0B, "", s:cterm0B, "", "", "") -call hi("mailQuoted3", s:gui0E, "", s:cterm0E, "", "", "") -call hi("mailQuoted4", s:gui0C, "", s:cterm0C, "", "", "") -call hi("mailQuoted5", s:gui0D, "", s:cterm0D, "", "", "") -call hi("mailQuoted6", s:gui0A, "", s:cterm0A, "", "", "") -call hi("mailURL", s:gui0D, "", s:cterm0D, "", "", "") -call hi("mailEmail", s:gui0D, "", s:cterm0D, "", "", "") - -" Markdown highlighting -call hi("markdownCode", s:gui0B, "", s:cterm0B, "", "", "") -call hi("markdownError", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") -call hi("markdownCodeBlock", s:gui0B, "", s:cterm0B, "", "", "") -call hi("markdownHeadingDelimiter", s:gui0D, "", s:cterm0D, "", "", "") - -" NERDTree highlighting -call hi("NERDTreeDirSlash", s:gui0D, "", s:cterm0D, "", "", "") -call hi("NERDTreeExecFile", s:gui05, "", s:cterm05, "", "", "") - -" PHP highlighting -call hi("phpMemberSelector", s:gui05, "", s:cterm05, "", "", "") -call hi("phpComparison", s:gui05, "", s:cterm05, "", "", "") -call hi("phpParent", s:gui05, "", s:cterm05, "", "", "") - -" Python highlighting -call hi("pythonOperator", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonRepeat", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonInclude", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonStatement", s:gui0E, "", s:cterm0E, "", "", "") - -" Ruby highlighting -call hi("rubyAttribute", s:gui0D, "", s:cterm0D, "", "", "") -call hi("rubyConstant", s:gui0A, "", s:cterm0A, "", "", "") -call hi("rubyInterpolationDelimiter", s:gui0F, "", s:cterm0F, "", "", "") -call hi("rubyRegexp", s:gui0C, "", s:cterm0C, "", "", "") -call hi("rubySymbol", s:gui0B, "", s:cterm0B, "", "", "") -call hi("rubyStringDelimiter", s:gui0B, "", s:cterm0B, "", "", "") - -" SASS highlighting -call hi("sassidChar", s:gui08, "", s:cterm08, "", "", "") -call hi("sassClassChar", s:gui09, "", s:cterm09, "", "", "") -call hi("sassInclude", s:gui0E, "", s:cterm0E, "", "", "") -call hi("sassMixing", s:gui0E, "", s:cterm0E, "", "", "") -call hi("sassMixinName", s:gui0D, "", s:cterm0D, "", "", "") - -" Signify highlighting -call hi("SignifySignAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("SignifySignChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("SignifySignDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") - -" Spelling highlighting -call hi("SpellBad", "", s:gui00, "", s:cterm00, "undercurl", s:gui08) -call hi("SpellLocal", "", s:gui00, "", s:cterm00, "undercurl", s:gui0C) -call hi("SpellCap", "", s:gui00, "", s:cterm00, "undercurl", s:gui0D) -call hi("SpellRare", "", s:gui00, "", s:cterm00, "undercurl", s:gui0E) - -" Remove functions -delf hi - -" Remove color variables -unlet s:gui00 s:gui01 s:gui02 s:gui03 s:gui04 s:gui05 s:gui06 s:gui07 s:gui08 s:gui09 s:gui0A s:gui0B s:gui0C s:gui0D s:gui0E s:gui0F -unlet s:cterm00 s:cterm01 s:cterm02 s:cterm03 s:cterm04 s:cterm05 s:cterm06 s:cterm07 s:cterm08 s:cterm09 s:cterm0A s:cterm0B s:cterm0C s:cterm0D s:cterm0E s:cterm0F diff --git a/vim/colors/base16-eighties.vim b/vim/colors/base16-eighties.vim deleted file mode 100644 index 9946e47..0000000 --- a/vim/colors/base16-eighties.vim +++ /dev/null @@ -1,330 +0,0 @@ -" vi:syntax=vim - -" base16-vim (https://github.com/chriskempson/base16-vim) -" by Chris Kempson (http://chriskempson.com) -" Eighties scheme by Chris Kempson (http://chriskempson.com) - -" This enables the coresponding base16-shell script to run so that -" :colorscheme works in terminals supported by base16-shell scripts -" User must set this variable in .vimrc -" let g:base16_shell_path=base16-builder/output/shell/ -if !has('gui_running') - if exists("g:base16_shell_path") - execute "silent !/bin/sh ".g:base16_shell_path."/base16-eighties.sh" - endif -endif - -" GUI color definitions -let s:gui00 = "2d2d2d" -let s:gui01 = "393939" -let s:gui02 = "515151" -let s:gui03 = "747369" -let s:gui04 = "a09f93" -let s:gui05 = "d3d0c8" -let s:gui06 = "e8e6df" -let s:gui07 = "f2f0ec" -let s:gui08 = "f2777a" -let s:gui09 = "f99157" -let s:gui0A = "ffcc66" -let s:gui0B = "99cc99" -let s:gui0C = "66cccc" -let s:gui0D = "6699cc" -let s:gui0E = "cc99cc" -let s:gui0F = "d27b53" - -" 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 - -" Neovim terminal colours -if has("nvim") - let g:terminal_color_0 = "#2d2d2d" - let g:terminal_color_1 = "#f2777a" - let g:terminal_color_2 = "#99cc99" - let g:terminal_color_3 = "#ffcc66" - let g:terminal_color_4 = "#6699cc" - let g:terminal_color_5 = "#cc99cc" - let g:terminal_color_6 = "#66cccc" - let g:terminal_color_7 = "#d3d0c8" - let g:terminal_color_8 = "#747369" - let g:terminal_color_9 = "#f99157" - let g:terminal_color_10 = "#393939" - let g:terminal_color_11 = "#515151" - let g:terminal_color_12 = "#a09f93" - let g:terminal_color_13 = "#e8e6df" - let g:terminal_color_14 = "#d27b53" - let g:terminal_color_15 = "#f2f0ec" - let g:terminal_color_background = g:terminal_color_0 - let g:terminal_color_foreground = g:terminal_color_7 - if &background == "light" - let g:terminal_color_background = g:terminal_color_7 - let g:terminal_color_foreground = g:terminal_color_2 - endif -endif - -" Theme setup -hi clear -syntax reset -let g:colors_name = "base16-eighties" - -" Highlighting function -fun hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) - if a:guifg != "" - exec "hi " . a:group . " guifg=#" . a:guifg - endif - if a:guibg != "" - exec "hi " . a:group . " guibg=#" . a:guibg - endif - if a:ctermfg != "" - exec "hi " . a:group . " ctermfg=" . a:ctermfg - endif - if a:ctermbg != "" - exec "hi " . a:group . " ctermbg=" . a:ctermbg - endif - if 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 - -" Vim editor colors -call hi("Normal", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") -call hi("Bold", "", "", "", "", "bold", "") -call hi("Debug", s:gui08, "", s:cterm08, "", "", "") -call hi("Directory", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Error", s:gui00, s:gui08, s:cterm00, s:cterm08, "", "") -call hi("ErrorMsg", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") -call hi("Exception", s:gui08, "", s:cterm08, "", "", "") -call hi("FoldColumn", s:gui0C, s:gui01, s:cterm0C, s:cterm01, "", "") -call hi("Folded", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("IncSearch", s:gui01, s:gui09, s:cterm01, s:cterm09, "none", "") -call hi("Italic", "", "", "", "", "none", "") -call hi("Macro", s:gui08, "", s:cterm08, "", "", "") -call hi("MatchParen", "", s:gui03, "", s:cterm03, "", "") -call hi("ModeMsg", s:gui0B, "", s:cterm0B, "", "", "") -call hi("MoreMsg", s:gui0B, "", s:cterm0B, "", "", "") -call hi("Question", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Search", s:gui03, s:gui0A, s:cterm03, s:cterm0A, "", "") -call hi("SpecialKey", s:gui03, "", s:cterm03, "", "", "") -call hi("TooLong", s:gui08, "", s:cterm08, "", "", "") -call hi("Underlined", s:gui08, "", s:cterm08, "", "", "") -call hi("Visual", "", s:gui02, "", s:cterm02, "", "") -call hi("VisualNOS", s:gui08, "", s:cterm08, "", "", "") -call hi("WarningMsg", s:gui08, "", s:cterm08, "", "", "") -call hi("WildMenu", s:gui08, s:gui0A, s:cterm08, "", "", "") -call hi("Title", s:gui0D, "", s:cterm0D, "", "none", "") -call hi("Conceal", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") -call hi("Cursor", s:gui00, s:gui05, s:cterm00, s:cterm05, "", "") -call hi("NonText", s:gui03, "", s:cterm03, "", "", "") -call hi("LineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("SignColumn", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("StatusLine", s:gui04, s:gui02, s:cterm04, s:cterm02, "none", "") -call hi("StatusLineNC", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("VertSplit", s:gui02, s:gui02, s:cterm02, s:cterm02, "none", "") -call hi("ColorColumn", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorColumn", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorLine", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorLineNr", s:gui04, s:gui01, s:cterm04, s:cterm01, "", "") -call hi("QuickFixLine", "", s:gui01, "", s:cterm01, "none", "") -call hi("PMenu", s:gui05, s:gui01, s:cterm05, s:cterm01, "none", "") -call hi("PMenuSel", s:gui01, s:gui05, s:cterm01, s:cterm05, "", "") -call hi("TabLine", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("TabLineFill", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("TabLineSel", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "none", "") - -" Standard syntax highlighting -call hi("Boolean", s:gui09, "", s:cterm09, "", "", "") -call hi("Character", s:gui08, "", s:cterm08, "", "", "") -call hi("Comment", s:gui03, "", s:cterm03, "", "", "") -call hi("Conditional", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Constant", s:gui09, "", s:cterm09, "", "", "") -call hi("Define", s:gui0E, "", s:cterm0E, "", "none", "") -call hi("Delimiter", s:gui0F, "", s:cterm0F, "", "", "") -call hi("Float", s:gui09, "", s:cterm09, "", "", "") -call hi("Function", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Identifier", s:gui08, "", s:cterm08, "", "none", "") -call hi("Include", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Keyword", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Label", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Number", s:gui09, "", s:cterm09, "", "", "") -call hi("Operator", s:gui05, "", s:cterm05, "", "none", "") -call hi("PreProc", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Repeat", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Special", s:gui0C, "", s:cterm0C, "", "", "") -call hi("SpecialChar", s:gui0F, "", s:cterm0F, "", "", "") -call hi("Statement", s:gui08, "", s:cterm08, "", "", "") -call hi("StorageClass", s:gui0A, "", s:cterm0A, "", "", "") -call hi("String", s:gui0B, "", s:cterm0B, "", "", "") -call hi("Structure", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Tag", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Todo", s:gui0A, s:gui01, s:cterm0A, s:cterm01, "", "") -call hi("Type", s:gui0A, "", s:cterm0A, "", "none", "") -call hi("Typedef", s:gui0A, "", s:cterm0A, "", "", "") - -" C highlighting -call hi("cOperator", s:gui0C, "", s:cterm0C, "", "", "") -call hi("cPreCondit", s:gui0E, "", s:cterm0E, "", "", "") - -" C# highlighting -call hi("csClass", s:gui0A, "", s:cterm0A, "", "", "") -call hi("csAttribute", s:gui0A, "", s:cterm0A, "", "", "") -call hi("csModifier", s:gui0E, "", s:cterm0E, "", "", "") -call hi("csType", s:gui08, "", s:cterm08, "", "", "") -call hi("csUnspecifiedStatement", s:gui0D, "", s:cterm0D, "", "", "") -call hi("csContextualStatement", s:gui0E, "", s:cterm0E, "", "", "") -call hi("csNewDecleration", s:gui08, "", s:cterm08, "", "", "") - -" CSS highlighting -call hi("cssBraces", s:gui05, "", s:cterm05, "", "", "") -call hi("cssClassName", s:gui0E, "", s:cterm0E, "", "", "") -call hi("cssColor", s:gui0C, "", s:cterm0C, "", "", "") - -" Diff highlighting -call hi("DiffAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("DiffChange", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("DiffDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") -call hi("DiffText", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("DiffAdded", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") -call hi("DiffFile", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") -call hi("DiffNewFile", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") -call hi("DiffLine", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") -call hi("DiffRemoved", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") - -" Git highlighting -call hi("gitcommitOverflow", s:gui08, "", s:cterm08, "", "", "") -call hi("gitcommitSummary", s:gui0B, "", s:cterm0B, "", "", "") -call hi("gitcommitComment", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitUntracked", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitDiscarded", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitSelected", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitHeader", s:gui0E, "", s:cterm0E, "", "", "") -call hi("gitcommitSelectedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitUnmergedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitDiscardedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitBranch", s:gui09, "", s:cterm09, "", "bold", "") -call hi("gitcommitUntrackedFile", s:gui0A, "", s:cterm0A, "", "", "") -call hi("gitcommitUnmergedFile", s:gui08, "", s:cterm08, "", "bold", "") -call hi("gitcommitDiscardedFile", s:gui08, "", s:cterm08, "", "bold", "") -call hi("gitcommitSelectedFile", s:gui0B, "", s:cterm0B, "", "bold", "") - -" GitGutter highlighting -call hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") -call hi("GitGutterChangeDelete", s:gui0E, s:gui01, s:cterm0E, s:cterm01, "", "") - -" HTML highlighting -call hi("htmlBold", s:gui0A, "", s:cterm0A, "", "", "") -call hi("htmlItalic", s:gui0E, "", s:cterm0E, "", "", "") -call hi("htmlEndTag", s:gui05, "", s:cterm05, "", "", "") -call hi("htmlTag", s:gui05, "", s:cterm05, "", "", "") - -" JavaScript highlighting -call hi("javaScript", s:gui05, "", s:cterm05, "", "", "") -call hi("javaScriptBraces", s:gui05, "", s:cterm05, "", "", "") -call hi("javaScriptNumber", s:gui09, "", s:cterm09, "", "", "") -" pangloss/vim-javascript highlighting -call hi("jsOperator", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsStatement", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsReturn", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsThis", s:gui08, "", s:cterm08, "", "", "") -call hi("jsClassDefinition", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsFunction", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsFuncName", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsFuncCall", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsClassFuncName", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsClassMethodType", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsRegexpString", s:gui0C, "", s:cterm0C, "", "", "") -call hi("jsGlobalObjects", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsGlobalNodeObjects", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsExceptions", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsBuiltins", s:gui0A, "", s:cterm0A, "", "", "") - -" Mail highlighting -call hi("mailQuoted1", s:gui0A, "", s:cterm0A, "", "", "") -call hi("mailQuoted2", s:gui0B, "", s:cterm0B, "", "", "") -call hi("mailQuoted3", s:gui0E, "", s:cterm0E, "", "", "") -call hi("mailQuoted4", s:gui0C, "", s:cterm0C, "", "", "") -call hi("mailQuoted5", s:gui0D, "", s:cterm0D, "", "", "") -call hi("mailQuoted6", s:gui0A, "", s:cterm0A, "", "", "") -call hi("mailURL", s:gui0D, "", s:cterm0D, "", "", "") -call hi("mailEmail", s:gui0D, "", s:cterm0D, "", "", "") - -" Markdown highlighting -call hi("markdownCode", s:gui0B, "", s:cterm0B, "", "", "") -call hi("markdownError", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") -call hi("markdownCodeBlock", s:gui0B, "", s:cterm0B, "", "", "") -call hi("markdownHeadingDelimiter", s:gui0D, "", s:cterm0D, "", "", "") - -" NERDTree highlighting -call hi("NERDTreeDirSlash", s:gui0D, "", s:cterm0D, "", "", "") -call hi("NERDTreeExecFile", s:gui05, "", s:cterm05, "", "", "") - -" PHP highlighting -call hi("phpMemberSelector", s:gui05, "", s:cterm05, "", "", "") -call hi("phpComparison", s:gui05, "", s:cterm05, "", "", "") -call hi("phpParent", s:gui05, "", s:cterm05, "", "", "") - -" Python highlighting -call hi("pythonOperator", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonRepeat", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonInclude", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonStatement", s:gui0E, "", s:cterm0E, "", "", "") - -" Ruby highlighting -call hi("rubyAttribute", s:gui0D, "", s:cterm0D, "", "", "") -call hi("rubyConstant", s:gui0A, "", s:cterm0A, "", "", "") -call hi("rubyInterpolationDelimiter", s:gui0F, "", s:cterm0F, "", "", "") -call hi("rubyRegexp", s:gui0C, "", s:cterm0C, "", "", "") -call hi("rubySymbol", s:gui0B, "", s:cterm0B, "", "", "") -call hi("rubyStringDelimiter", s:gui0B, "", s:cterm0B, "", "", "") - -" SASS highlighting -call hi("sassidChar", s:gui08, "", s:cterm08, "", "", "") -call hi("sassClassChar", s:gui09, "", s:cterm09, "", "", "") -call hi("sassInclude", s:gui0E, "", s:cterm0E, "", "", "") -call hi("sassMixing", s:gui0E, "", s:cterm0E, "", "", "") -call hi("sassMixinName", s:gui0D, "", s:cterm0D, "", "", "") - -" Signify highlighting -call hi("SignifySignAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("SignifySignChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("SignifySignDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") - -" Spelling highlighting -call hi("SpellBad", "", s:gui00, "", s:cterm00, "undercurl", s:gui08) -call hi("SpellLocal", "", s:gui00, "", s:cterm00, "undercurl", s:gui0C) -call hi("SpellCap", "", s:gui00, "", s:cterm00, "undercurl", s:gui0D) -call hi("SpellRare", "", s:gui00, "", s:cterm00, "undercurl", s:gui0E) - -" Remove functions -delf hi - -" Remove color variables -unlet s:gui00 s:gui01 s:gui02 s:gui03 s:gui04 s:gui05 s:gui06 s:gui07 s:gui08 s:gui09 s:gui0A s:gui0B s:gui0C s:gui0D s:gui0E s:gui0F -unlet s:cterm00 s:cterm01 s:cterm02 s:cterm03 s:cterm04 s:cterm05 s:cterm06 s:cterm07 s:cterm08 s:cterm09 s:cterm0A s:cterm0B s:cterm0C s:cterm0D s:cterm0E s:cterm0F diff --git a/vim/colors/base16-github.vim b/vim/colors/base16-github.vim deleted file mode 100644 index a23bd81..0000000 --- a/vim/colors/base16-github.vim +++ /dev/null @@ -1,330 +0,0 @@ -" vi:syntax=vim - -" base16-vim (https://github.com/chriskempson/base16-vim) -" by Chris Kempson (http://chriskempson.com) -" Github scheme by Defman21 - -" This enables the coresponding base16-shell script to run so that -" :colorscheme works in terminals supported by base16-shell scripts -" User must set this variable in .vimrc -" let g:base16_shell_path=base16-builder/output/shell/ -if !has('gui_running') - if exists("g:base16_shell_path") - execute "silent !/bin/sh ".g:base16_shell_path."/base16-github.sh" - endif -endif - -" GUI color definitions -let s:gui00 = "ffffff" -let s:gui01 = "f5f5f5" -let s:gui02 = "c8c8fa" -let s:gui03 = "969896" -let s:gui04 = "e8e8e8" -let s:gui05 = "333333" -let s:gui06 = "ffffff" -let s:gui07 = "ffffff" -let s:gui08 = "ed6a43" -let s:gui09 = "0086b3" -let s:gui0A = "795da3" -let s:gui0B = "183691" -let s:gui0C = "183691" -let s:gui0D = "795da3" -let s:gui0E = "a71d5d" -let s:gui0F = "333333" - -" 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 - -" Neovim terminal colours -if has("nvim") - let g:terminal_color_0 = "#ffffff" - let g:terminal_color_1 = "#ed6a43" - let g:terminal_color_2 = "#183691" - let g:terminal_color_3 = "#795da3" - let g:terminal_color_4 = "#795da3" - let g:terminal_color_5 = "#a71d5d" - let g:terminal_color_6 = "#183691" - let g:terminal_color_7 = "#333333" - let g:terminal_color_8 = "#969896" - let g:terminal_color_9 = "#0086b3" - let g:terminal_color_10 = "#f5f5f5" - let g:terminal_color_11 = "#c8c8fa" - let g:terminal_color_12 = "#e8e8e8" - let g:terminal_color_13 = "#ffffff" - let g:terminal_color_14 = "#333333" - let g:terminal_color_15 = "#ffffff" - let g:terminal_color_background = g:terminal_color_0 - let g:terminal_color_foreground = g:terminal_color_7 - if &background == "light" - let g:terminal_color_background = g:terminal_color_7 - let g:terminal_color_foreground = g:terminal_color_2 - endif -endif - -" Theme setup -hi clear -syntax reset -let g:colors_name = "base16-github" - -" Highlighting function -fun hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) - if a:guifg != "" - exec "hi " . a:group . " guifg=#" . a:guifg - endif - if a:guibg != "" - exec "hi " . a:group . " guibg=#" . a:guibg - endif - if a:ctermfg != "" - exec "hi " . a:group . " ctermfg=" . a:ctermfg - endif - if a:ctermbg != "" - exec "hi " . a:group . " ctermbg=" . a:ctermbg - endif - if 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 - -" Vim editor colors -call hi("Normal", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") -call hi("Bold", "", "", "", "", "bold", "") -call hi("Debug", s:gui08, "", s:cterm08, "", "", "") -call hi("Directory", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Error", s:gui00, s:gui08, s:cterm00, s:cterm08, "", "") -call hi("ErrorMsg", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") -call hi("Exception", s:gui08, "", s:cterm08, "", "", "") -call hi("FoldColumn", s:gui0C, s:gui01, s:cterm0C, s:cterm01, "", "") -call hi("Folded", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("IncSearch", s:gui01, s:gui09, s:cterm01, s:cterm09, "none", "") -call hi("Italic", "", "", "", "", "none", "") -call hi("Macro", s:gui08, "", s:cterm08, "", "", "") -call hi("MatchParen", "", s:gui03, "", s:cterm03, "", "") -call hi("ModeMsg", s:gui0B, "", s:cterm0B, "", "", "") -call hi("MoreMsg", s:gui0B, "", s:cterm0B, "", "", "") -call hi("Question", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Search", s:gui03, s:gui0A, s:cterm03, s:cterm0A, "", "") -call hi("SpecialKey", s:gui03, "", s:cterm03, "", "", "") -call hi("TooLong", s:gui08, "", s:cterm08, "", "", "") -call hi("Underlined", s:gui08, "", s:cterm08, "", "", "") -call hi("Visual", "", s:gui02, "", s:cterm02, "", "") -call hi("VisualNOS", s:gui08, "", s:cterm08, "", "", "") -call hi("WarningMsg", s:gui08, "", s:cterm08, "", "", "") -call hi("WildMenu", s:gui08, s:gui0A, s:cterm08, "", "", "") -call hi("Title", s:gui0D, "", s:cterm0D, "", "none", "") -call hi("Conceal", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") -call hi("Cursor", s:gui00, s:gui05, s:cterm00, s:cterm05, "", "") -call hi("NonText", s:gui03, "", s:cterm03, "", "", "") -call hi("LineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("SignColumn", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("StatusLine", s:gui04, s:gui02, s:cterm04, s:cterm02, "none", "") -call hi("StatusLineNC", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("VertSplit", s:gui02, s:gui02, s:cterm02, s:cterm02, "none", "") -call hi("ColorColumn", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorColumn", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorLine", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorLineNr", s:gui04, s:gui01, s:cterm04, s:cterm01, "", "") -call hi("QuickFixLine", "", s:gui01, "", s:cterm01, "none", "") -call hi("PMenu", s:gui05, s:gui01, s:cterm05, s:cterm01, "none", "") -call hi("PMenuSel", s:gui01, s:gui05, s:cterm01, s:cterm05, "", "") -call hi("TabLine", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("TabLineFill", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("TabLineSel", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "none", "") - -" Standard syntax highlighting -call hi("Boolean", s:gui09, "", s:cterm09, "", "", "") -call hi("Character", s:gui08, "", s:cterm08, "", "", "") -call hi("Comment", s:gui03, "", s:cterm03, "", "", "") -call hi("Conditional", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Constant", s:gui09, "", s:cterm09, "", "", "") -call hi("Define", s:gui0E, "", s:cterm0E, "", "none", "") -call hi("Delimiter", s:gui0F, "", s:cterm0F, "", "", "") -call hi("Float", s:gui09, "", s:cterm09, "", "", "") -call hi("Function", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Identifier", s:gui08, "", s:cterm08, "", "none", "") -call hi("Include", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Keyword", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Label", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Number", s:gui09, "", s:cterm09, "", "", "") -call hi("Operator", s:gui05, "", s:cterm05, "", "none", "") -call hi("PreProc", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Repeat", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Special", s:gui0C, "", s:cterm0C, "", "", "") -call hi("SpecialChar", s:gui0F, "", s:cterm0F, "", "", "") -call hi("Statement", s:gui08, "", s:cterm08, "", "", "") -call hi("StorageClass", s:gui0A, "", s:cterm0A, "", "", "") -call hi("String", s:gui0B, "", s:cterm0B, "", "", "") -call hi("Structure", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Tag", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Todo", s:gui0A, s:gui01, s:cterm0A, s:cterm01, "", "") -call hi("Type", s:gui0A, "", s:cterm0A, "", "none", "") -call hi("Typedef", s:gui0A, "", s:cterm0A, "", "", "") - -" C highlighting -call hi("cOperator", s:gui0C, "", s:cterm0C, "", "", "") -call hi("cPreCondit", s:gui0E, "", s:cterm0E, "", "", "") - -" C# highlighting -call hi("csClass", s:gui0A, "", s:cterm0A, "", "", "") -call hi("csAttribute", s:gui0A, "", s:cterm0A, "", "", "") -call hi("csModifier", s:gui0E, "", s:cterm0E, "", "", "") -call hi("csType", s:gui08, "", s:cterm08, "", "", "") -call hi("csUnspecifiedStatement", s:gui0D, "", s:cterm0D, "", "", "") -call hi("csContextualStatement", s:gui0E, "", s:cterm0E, "", "", "") -call hi("csNewDecleration", s:gui08, "", s:cterm08, "", "", "") - -" CSS highlighting -call hi("cssBraces", s:gui05, "", s:cterm05, "", "", "") -call hi("cssClassName", s:gui0E, "", s:cterm0E, "", "", "") -call hi("cssColor", s:gui0C, "", s:cterm0C, "", "", "") - -" Diff highlighting -call hi("DiffAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("DiffChange", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("DiffDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") -call hi("DiffText", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("DiffAdded", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") -call hi("DiffFile", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") -call hi("DiffNewFile", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") -call hi("DiffLine", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") -call hi("DiffRemoved", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") - -" Git highlighting -call hi("gitcommitOverflow", s:gui08, "", s:cterm08, "", "", "") -call hi("gitcommitSummary", s:gui0B, "", s:cterm0B, "", "", "") -call hi("gitcommitComment", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitUntracked", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitDiscarded", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitSelected", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitHeader", s:gui0E, "", s:cterm0E, "", "", "") -call hi("gitcommitSelectedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitUnmergedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitDiscardedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitBranch", s:gui09, "", s:cterm09, "", "bold", "") -call hi("gitcommitUntrackedFile", s:gui0A, "", s:cterm0A, "", "", "") -call hi("gitcommitUnmergedFile", s:gui08, "", s:cterm08, "", "bold", "") -call hi("gitcommitDiscardedFile", s:gui08, "", s:cterm08, "", "bold", "") -call hi("gitcommitSelectedFile", s:gui0B, "", s:cterm0B, "", "bold", "") - -" GitGutter highlighting -call hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") -call hi("GitGutterChangeDelete", s:gui0E, s:gui01, s:cterm0E, s:cterm01, "", "") - -" HTML highlighting -call hi("htmlBold", s:gui0A, "", s:cterm0A, "", "", "") -call hi("htmlItalic", s:gui0E, "", s:cterm0E, "", "", "") -call hi("htmlEndTag", s:gui05, "", s:cterm05, "", "", "") -call hi("htmlTag", s:gui05, "", s:cterm05, "", "", "") - -" JavaScript highlighting -call hi("javaScript", s:gui05, "", s:cterm05, "", "", "") -call hi("javaScriptBraces", s:gui05, "", s:cterm05, "", "", "") -call hi("javaScriptNumber", s:gui09, "", s:cterm09, "", "", "") -" pangloss/vim-javascript highlighting -call hi("jsOperator", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsStatement", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsReturn", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsThis", s:gui08, "", s:cterm08, "", "", "") -call hi("jsClassDefinition", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsFunction", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsFuncName", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsFuncCall", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsClassFuncName", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsClassMethodType", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsRegexpString", s:gui0C, "", s:cterm0C, "", "", "") -call hi("jsGlobalObjects", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsGlobalNodeObjects", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsExceptions", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsBuiltins", s:gui0A, "", s:cterm0A, "", "", "") - -" Mail highlighting -call hi("mailQuoted1", s:gui0A, "", s:cterm0A, "", "", "") -call hi("mailQuoted2", s:gui0B, "", s:cterm0B, "", "", "") -call hi("mailQuoted3", s:gui0E, "", s:cterm0E, "", "", "") -call hi("mailQuoted4", s:gui0C, "", s:cterm0C, "", "", "") -call hi("mailQuoted5", s:gui0D, "", s:cterm0D, "", "", "") -call hi("mailQuoted6", s:gui0A, "", s:cterm0A, "", "", "") -call hi("mailURL", s:gui0D, "", s:cterm0D, "", "", "") -call hi("mailEmail", s:gui0D, "", s:cterm0D, "", "", "") - -" Markdown highlighting -call hi("markdownCode", s:gui0B, "", s:cterm0B, "", "", "") -call hi("markdownError", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") -call hi("markdownCodeBlock", s:gui0B, "", s:cterm0B, "", "", "") -call hi("markdownHeadingDelimiter", s:gui0D, "", s:cterm0D, "", "", "") - -" NERDTree highlighting -call hi("NERDTreeDirSlash", s:gui0D, "", s:cterm0D, "", "", "") -call hi("NERDTreeExecFile", s:gui05, "", s:cterm05, "", "", "") - -" PHP highlighting -call hi("phpMemberSelector", s:gui05, "", s:cterm05, "", "", "") -call hi("phpComparison", s:gui05, "", s:cterm05, "", "", "") -call hi("phpParent", s:gui05, "", s:cterm05, "", "", "") - -" Python highlighting -call hi("pythonOperator", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonRepeat", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonInclude", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonStatement", s:gui0E, "", s:cterm0E, "", "", "") - -" Ruby highlighting -call hi("rubyAttribute", s:gui0D, "", s:cterm0D, "", "", "") -call hi("rubyConstant", s:gui0A, "", s:cterm0A, "", "", "") -call hi("rubyInterpolationDelimiter", s:gui0F, "", s:cterm0F, "", "", "") -call hi("rubyRegexp", s:gui0C, "", s:cterm0C, "", "", "") -call hi("rubySymbol", s:gui0B, "", s:cterm0B, "", "", "") -call hi("rubyStringDelimiter", s:gui0B, "", s:cterm0B, "", "", "") - -" SASS highlighting -call hi("sassidChar", s:gui08, "", s:cterm08, "", "", "") -call hi("sassClassChar", s:gui09, "", s:cterm09, "", "", "") -call hi("sassInclude", s:gui0E, "", s:cterm0E, "", "", "") -call hi("sassMixing", s:gui0E, "", s:cterm0E, "", "", "") -call hi("sassMixinName", s:gui0D, "", s:cterm0D, "", "", "") - -" Signify highlighting -call hi("SignifySignAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("SignifySignChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("SignifySignDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") - -" Spelling highlighting -call hi("SpellBad", "", s:gui00, "", s:cterm00, "undercurl", s:gui08) -call hi("SpellLocal", "", s:gui00, "", s:cterm00, "undercurl", s:gui0C) -call hi("SpellCap", "", s:gui00, "", s:cterm00, "undercurl", s:gui0D) -call hi("SpellRare", "", s:gui00, "", s:cterm00, "undercurl", s:gui0E) - -" Remove functions -delf hi - -" Remove color variables -unlet s:gui00 s:gui01 s:gui02 s:gui03 s:gui04 s:gui05 s:gui06 s:gui07 s:gui08 s:gui09 s:gui0A s:gui0B s:gui0C s:gui0D s:gui0E s:gui0F -unlet s:cterm00 s:cterm01 s:cterm02 s:cterm03 s:cterm04 s:cterm05 s:cterm06 s:cterm07 s:cterm08 s:cterm09 s:cterm0A s:cterm0B s:cterm0C s:cterm0D s:cterm0E s:cterm0F diff --git a/vim/colors/base16-google-dark.vim b/vim/colors/base16-google-dark.vim deleted file mode 100644 index 0155bcd..0000000 --- a/vim/colors/base16-google-dark.vim +++ /dev/null @@ -1,330 +0,0 @@ -" vi:syntax=vim - -" base16-vim (https://github.com/chriskempson/base16-vim) -" by Chris Kempson (http://chriskempson.com) -" Google Dark scheme by Seth Wright (http://sethawright.com) - -" This enables the coresponding base16-shell script to run so that -" :colorscheme works in terminals supported by base16-shell scripts -" User must set this variable in .vimrc -" let g:base16_shell_path=base16-builder/output/shell/ -if !has('gui_running') - if exists("g:base16_shell_path") - execute "silent !/bin/sh ".g:base16_shell_path."/base16-google-dark.sh" - endif -endif - -" GUI color definitions -let s:gui00 = "1d1f21" -let s:gui01 = "282a2e" -let s:gui02 = "373b41" -let s:gui03 = "969896" -let s:gui04 = "b4b7b4" -let s:gui05 = "c5c8c6" -let s:gui06 = "e0e0e0" -let s:gui07 = "ffffff" -let s:gui08 = "CC342B" -let s:gui09 = "F96A38" -let s:gui0A = "FBA922" -let s:gui0B = "198844" -let s:gui0C = "3971ED" -let s:gui0D = "3971ED" -let s:gui0E = "A36AC7" -let s:gui0F = "3971ED" - -" 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 - -" Neovim terminal colours -if has("nvim") - let g:terminal_color_0 = "#1d1f21" - let g:terminal_color_1 = "#CC342B" - let g:terminal_color_2 = "#198844" - let g:terminal_color_3 = "#FBA922" - let g:terminal_color_4 = "#3971ED" - let g:terminal_color_5 = "#A36AC7" - let g:terminal_color_6 = "#3971ED" - let g:terminal_color_7 = "#c5c8c6" - let g:terminal_color_8 = "#969896" - let g:terminal_color_9 = "#F96A38" - let g:terminal_color_10 = "#282a2e" - let g:terminal_color_11 = "#373b41" - let g:terminal_color_12 = "#b4b7b4" - let g:terminal_color_13 = "#e0e0e0" - let g:terminal_color_14 = "#3971ED" - let g:terminal_color_15 = "#ffffff" - let g:terminal_color_background = g:terminal_color_0 - let g:terminal_color_foreground = g:terminal_color_7 - if &background == "light" - let g:terminal_color_background = g:terminal_color_7 - let g:terminal_color_foreground = g:terminal_color_2 - endif -endif - -" Theme setup -hi clear -syntax reset -let g:colors_name = "base16-google-dark" - -" Highlighting function -fun hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) - if a:guifg != "" - exec "hi " . a:group . " guifg=#" . a:guifg - endif - if a:guibg != "" - exec "hi " . a:group . " guibg=#" . a:guibg - endif - if a:ctermfg != "" - exec "hi " . a:group . " ctermfg=" . a:ctermfg - endif - if a:ctermbg != "" - exec "hi " . a:group . " ctermbg=" . a:ctermbg - endif - if 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 - -" Vim editor colors -call hi("Normal", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") -call hi("Bold", "", "", "", "", "bold", "") -call hi("Debug", s:gui08, "", s:cterm08, "", "", "") -call hi("Directory", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Error", s:gui00, s:gui08, s:cterm00, s:cterm08, "", "") -call hi("ErrorMsg", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") -call hi("Exception", s:gui08, "", s:cterm08, "", "", "") -call hi("FoldColumn", s:gui0C, s:gui01, s:cterm0C, s:cterm01, "", "") -call hi("Folded", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("IncSearch", s:gui01, s:gui09, s:cterm01, s:cterm09, "none", "") -call hi("Italic", "", "", "", "", "none", "") -call hi("Macro", s:gui08, "", s:cterm08, "", "", "") -call hi("MatchParen", "", s:gui03, "", s:cterm03, "", "") -call hi("ModeMsg", s:gui0B, "", s:cterm0B, "", "", "") -call hi("MoreMsg", s:gui0B, "", s:cterm0B, "", "", "") -call hi("Question", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Search", s:gui03, s:gui0A, s:cterm03, s:cterm0A, "", "") -call hi("SpecialKey", s:gui03, "", s:cterm03, "", "", "") -call hi("TooLong", s:gui08, "", s:cterm08, "", "", "") -call hi("Underlined", s:gui08, "", s:cterm08, "", "", "") -call hi("Visual", "", s:gui02, "", s:cterm02, "", "") -call hi("VisualNOS", s:gui08, "", s:cterm08, "", "", "") -call hi("WarningMsg", s:gui08, "", s:cterm08, "", "", "") -call hi("WildMenu", s:gui08, s:gui0A, s:cterm08, "", "", "") -call hi("Title", s:gui0D, "", s:cterm0D, "", "none", "") -call hi("Conceal", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") -call hi("Cursor", s:gui00, s:gui05, s:cterm00, s:cterm05, "", "") -call hi("NonText", s:gui03, "", s:cterm03, "", "", "") -call hi("LineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("SignColumn", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("StatusLine", s:gui04, s:gui02, s:cterm04, s:cterm02, "none", "") -call hi("StatusLineNC", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("VertSplit", s:gui02, s:gui02, s:cterm02, s:cterm02, "none", "") -call hi("ColorColumn", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorColumn", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorLine", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorLineNr", s:gui04, s:gui01, s:cterm04, s:cterm01, "", "") -call hi("QuickFixLine", "", s:gui01, "", s:cterm01, "none", "") -call hi("PMenu", s:gui05, s:gui01, s:cterm05, s:cterm01, "none", "") -call hi("PMenuSel", s:gui01, s:gui05, s:cterm01, s:cterm05, "", "") -call hi("TabLine", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("TabLineFill", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("TabLineSel", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "none", "") - -" Standard syntax highlighting -call hi("Boolean", s:gui09, "", s:cterm09, "", "", "") -call hi("Character", s:gui08, "", s:cterm08, "", "", "") -call hi("Comment", s:gui03, "", s:cterm03, "", "", "") -call hi("Conditional", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Constant", s:gui09, "", s:cterm09, "", "", "") -call hi("Define", s:gui0E, "", s:cterm0E, "", "none", "") -call hi("Delimiter", s:gui0F, "", s:cterm0F, "", "", "") -call hi("Float", s:gui09, "", s:cterm09, "", "", "") -call hi("Function", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Identifier", s:gui08, "", s:cterm08, "", "none", "") -call hi("Include", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Keyword", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Label", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Number", s:gui09, "", s:cterm09, "", "", "") -call hi("Operator", s:gui05, "", s:cterm05, "", "none", "") -call hi("PreProc", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Repeat", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Special", s:gui0C, "", s:cterm0C, "", "", "") -call hi("SpecialChar", s:gui0F, "", s:cterm0F, "", "", "") -call hi("Statement", s:gui08, "", s:cterm08, "", "", "") -call hi("StorageClass", s:gui0A, "", s:cterm0A, "", "", "") -call hi("String", s:gui0B, "", s:cterm0B, "", "", "") -call hi("Structure", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Tag", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Todo", s:gui0A, s:gui01, s:cterm0A, s:cterm01, "", "") -call hi("Type", s:gui0A, "", s:cterm0A, "", "none", "") -call hi("Typedef", s:gui0A, "", s:cterm0A, "", "", "") - -" C highlighting -call hi("cOperator", s:gui0C, "", s:cterm0C, "", "", "") -call hi("cPreCondit", s:gui0E, "", s:cterm0E, "", "", "") - -" C# highlighting -call hi("csClass", s:gui0A, "", s:cterm0A, "", "", "") -call hi("csAttribute", s:gui0A, "", s:cterm0A, "", "", "") -call hi("csModifier", s:gui0E, "", s:cterm0E, "", "", "") -call hi("csType", s:gui08, "", s:cterm08, "", "", "") -call hi("csUnspecifiedStatement", s:gui0D, "", s:cterm0D, "", "", "") -call hi("csContextualStatement", s:gui0E, "", s:cterm0E, "", "", "") -call hi("csNewDecleration", s:gui08, "", s:cterm08, "", "", "") - -" CSS highlighting -call hi("cssBraces", s:gui05, "", s:cterm05, "", "", "") -call hi("cssClassName", s:gui0E, "", s:cterm0E, "", "", "") -call hi("cssColor", s:gui0C, "", s:cterm0C, "", "", "") - -" Diff highlighting -call hi("DiffAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("DiffChange", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("DiffDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") -call hi("DiffText", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("DiffAdded", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") -call hi("DiffFile", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") -call hi("DiffNewFile", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") -call hi("DiffLine", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") -call hi("DiffRemoved", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") - -" Git highlighting -call hi("gitcommitOverflow", s:gui08, "", s:cterm08, "", "", "") -call hi("gitcommitSummary", s:gui0B, "", s:cterm0B, "", "", "") -call hi("gitcommitComment", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitUntracked", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitDiscarded", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitSelected", s:gui03, "", s:cterm03, "", "", "") -call hi("gitcommitHeader", s:gui0E, "", s:cterm0E, "", "", "") -call hi("gitcommitSelectedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitUnmergedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitDiscardedType", s:gui0D, "", s:cterm0D, "", "", "") -call hi("gitcommitBranch", s:gui09, "", s:cterm09, "", "bold", "") -call hi("gitcommitUntrackedFile", s:gui0A, "", s:cterm0A, "", "", "") -call hi("gitcommitUnmergedFile", s:gui08, "", s:cterm08, "", "bold", "") -call hi("gitcommitDiscardedFile", s:gui08, "", s:cterm08, "", "bold", "") -call hi("gitcommitSelectedFile", s:gui0B, "", s:cterm0B, "", "bold", "") - -" GitGutter highlighting -call hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") -call hi("GitGutterChangeDelete", s:gui0E, s:gui01, s:cterm0E, s:cterm01, "", "") - -" HTML highlighting -call hi("htmlBold", s:gui0A, "", s:cterm0A, "", "", "") -call hi("htmlItalic", s:gui0E, "", s:cterm0E, "", "", "") -call hi("htmlEndTag", s:gui05, "", s:cterm05, "", "", "") -call hi("htmlTag", s:gui05, "", s:cterm05, "", "", "") - -" JavaScript highlighting -call hi("javaScript", s:gui05, "", s:cterm05, "", "", "") -call hi("javaScriptBraces", s:gui05, "", s:cterm05, "", "", "") -call hi("javaScriptNumber", s:gui09, "", s:cterm09, "", "", "") -" pangloss/vim-javascript highlighting -call hi("jsOperator", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsStatement", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsReturn", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsThis", s:gui08, "", s:cterm08, "", "", "") -call hi("jsClassDefinition", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsFunction", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsFuncName", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsFuncCall", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsClassFuncName", s:gui0D, "", s:cterm0D, "", "", "") -call hi("jsClassMethodType", s:gui0E, "", s:cterm0E, "", "", "") -call hi("jsRegexpString", s:gui0C, "", s:cterm0C, "", "", "") -call hi("jsGlobalObjects", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsGlobalNodeObjects", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsExceptions", s:gui0A, "", s:cterm0A, "", "", "") -call hi("jsBuiltins", s:gui0A, "", s:cterm0A, "", "", "") - -" Mail highlighting -call hi("mailQuoted1", s:gui0A, "", s:cterm0A, "", "", "") -call hi("mailQuoted2", s:gui0B, "", s:cterm0B, "", "", "") -call hi("mailQuoted3", s:gui0E, "", s:cterm0E, "", "", "") -call hi("mailQuoted4", s:gui0C, "", s:cterm0C, "", "", "") -call hi("mailQuoted5", s:gui0D, "", s:cterm0D, "", "", "") -call hi("mailQuoted6", s:gui0A, "", s:cterm0A, "", "", "") -call hi("mailURL", s:gui0D, "", s:cterm0D, "", "", "") -call hi("mailEmail", s:gui0D, "", s:cterm0D, "", "", "") - -" Markdown highlighting -call hi("markdownCode", s:gui0B, "", s:cterm0B, "", "", "") -call hi("markdownError", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") -call hi("markdownCodeBlock", s:gui0B, "", s:cterm0B, "", "", "") -call hi("markdownHeadingDelimiter", s:gui0D, "", s:cterm0D, "", "", "") - -" NERDTree highlighting -call hi("NERDTreeDirSlash", s:gui0D, "", s:cterm0D, "", "", "") -call hi("NERDTreeExecFile", s:gui05, "", s:cterm05, "", "", "") - -" PHP highlighting -call hi("phpMemberSelector", s:gui05, "", s:cterm05, "", "", "") -call hi("phpComparison", s:gui05, "", s:cterm05, "", "", "") -call hi("phpParent", s:gui05, "", s:cterm05, "", "", "") - -" Python highlighting -call hi("pythonOperator", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonRepeat", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonInclude", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonStatement", s:gui0E, "", s:cterm0E, "", "", "") - -" Ruby highlighting -call hi("rubyAttribute", s:gui0D, "", s:cterm0D, "", "", "") -call hi("rubyConstant", s:gui0A, "", s:cterm0A, "", "", "") -call hi("rubyInterpolationDelimiter", s:gui0F, "", s:cterm0F, "", "", "") -call hi("rubyRegexp", s:gui0C, "", s:cterm0C, "", "", "") -call hi("rubySymbol", s:gui0B, "", s:cterm0B, "", "", "") -call hi("rubyStringDelimiter", s:gui0B, "", s:cterm0B, "", "", "") - -" SASS highlighting -call hi("sassidChar", s:gui08, "", s:cterm08, "", "", "") -call hi("sassClassChar", s:gui09, "", s:cterm09, "", "", "") -call hi("sassInclude", s:gui0E, "", s:cterm0E, "", "", "") -call hi("sassMixing", s:gui0E, "", s:cterm0E, "", "", "") -call hi("sassMixinName", s:gui0D, "", s:cterm0D, "", "", "") - -" Signify highlighting -call hi("SignifySignAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("SignifySignChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("SignifySignDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") - -" Spelling highlighting -call hi("SpellBad", "", s:gui00, "", s:cterm00, "undercurl", s:gui08) -call hi("SpellLocal", "", s:gui00, "", s:cterm00, "undercurl", s:gui0C) -call hi("SpellCap", "", s:gui00, "", s:cterm00, "undercurl", s:gui0D) -call hi("SpellRare", "", s:gui00, "", s:cterm00, "undercurl", s:gui0E) - -" Remove functions -delf hi - -" Remove color variables -unlet s:gui00 s:gui01 s:gui02 s:gui03 s:gui04 s:gui05 s:gui06 s:gui07 s:gui08 s:gui09 s:gui0A s:gui0B s:gui0C s:gui0D s:gui0E s:gui0F -unlet s:cterm00 s:cterm01 s:cterm02 s:cterm03 s:cterm04 s:cterm05 s:cterm06 s:cterm07 s:cterm08 s:cterm09 s:cterm0A s:cterm0B s:cterm0C s:cterm0D s:cterm0E s:cterm0F diff --git a/vim/colors/basic-dark.vim b/vim/colors/basic-dark.vim deleted file mode 100644 index 7bb3bca..0000000 --- a/vim/colors/basic-dark.vim +++ /dev/null @@ -1,430 +0,0 @@ -" A simple dark vim colorscheme. -" Maintainer: zcodes -" 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 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 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 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 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 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 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 colour(r, g, b) - " Get the closest grey - let l:gx = grey_number(a:r) - let l:gy = grey_number(a:g) - let l:gz = grey_number(a:b) - - " Get the closest colour - let l:x = rgb_number(a:r) - let l:y = rgb_number(a:g) - let l:z = rgb_number(a:b) - - if l:gx == l:gy && l:gy == l:gz - " There are two possibilities - let l:dgr = grey_level(l:gx) - a:r - let l:dgg = grey_level(l:gy) - a:g - let l:dgb = grey_level(l:gz) - a:b - let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb) - let l:dr = rgb_level(l:gx) - a:r - let l:dg = rgb_level(l:gy) - a:g - let l:db = 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 grey_colour(l:gx) - else - " Use the colour - return rgb_colour(l:x, l:y, l:z) - endif - else - " Only one possibility - return rgb_colour(l:x, l:y, l:z) - endif - endfun - - " Returns the palette index to approximate the 'rrggbb' hex string - fun 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 colour(l:r, l:g, l:b) - endfun - - " Sets the highlighting for the given group - fun X(group, fg, bg, attr) - if a:fg != "" - exec "hi " . a:group . " guifg=#" . a:fg . " ctermfg=" . rgb(a:fg) - endif - if a:bg != "" - exec "hi " . a:group . " guibg=#" . a:bg . " ctermbg=" . rgb(a:bg) - endif - if a:attr != "" - exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr - endif - endfun - - " Vim Highlighting - call X("Normal", s:foreground, s:background, "none") - call X("LineNr", s:grey, "", "none") - call X("NonText", s:foreground, "", "none") - call X("SpecialKey", s:blue, "", "none") - call X("Search", s:foreground, s:selection, "none") - call X("TabLine", s:foreground, s:background, "reverse") - call X("StatusLine", s:window, s:foreground, "reverse") - call X("StatusLineNC", s:window, s:comment, "reverse") - call X("VertSplit", s:window, s:window, "none") - call X("Visual", "", s:selection, "none") - call X("Directory", s:blue, "", "none") - call X("ModeMsg", s:green, "", "none") - call X("MoreMsg", s:green, "", "none") - call X("Question", s:green, "", "none") - call X("WarningMsg", s:red, "", "none") - call X("MatchParen", "", s:selection, "none") - call X("Folded", s:comment, s:background, "none") - call X("FoldColumn", s:comment, s:background, "none") - if version >= 700 - call X("CursorLine", "", s:line, "none") - call X("CursorColumn", "", s:line, "none") - call X("PMenu", s:foreground, s:selection, "none") - call X("PMenuSel", s:foreground, s:selection, "reverse") - call X("SignColumn", "", s:background, "none") - end - if version >= 703 - call X("ColorColumn", "", s:line, "none") - end - - " Standard Highlighting - call X("Comment", s:comment, "", "none") - call X("Todo", s:red, s:background, "underline") - call X("Title", s:comment, "", "none") - call X("Cursor", "", s:foreground, "none") - call X("Identifier", s:grey, "", "none") - call X("Statement", s:yellow, "", "none") - call X("Conditional", s:foreground, "", "none") - call X("Repeat", s:yellow, "", "none") - call X("Structure", s:purple, "", "none") - call X("Function", s:aqua, "", "none") - call X("Constant", s:foreground, "", "none") - call X("String", s:green, "", "none") - call X("Special", s:foreground, "", "none") - call X("PreProc", s:aqua, "", "none") - call X("Operator", s:foreground, "", "none") - call X("Type", s:blue, "", "none") - call X("Define", s:purple, "", "none") - call X("Include", s:blue, "", "none") - call X("Number", s:orange, "", "none") - - " Vim Highlighting - call X("vimCommand", s:blue, "", "") - - " C Highlighting - call X("cType", s:blue, "", "") - call X("cStorageClass", s:blue, "", "") - call X("cConditional", s:red, "", "") - call X("cRepeat", s:red, "", "") - - " PHP Highlighting - call X("phpVarSelector", s:red, "", "") - call X("phpIdentifier", s:red, "", "") - call X("phpFCKeyword", s:purple, "", "") - call X("phpSCKeyword", s:purple, "", "") - call X("phpKeyword", s:purple, "", "") - call X("phpType", s:purple, "", "") - call X("phpRepeat", s:red, "", "") - call X("phpDefine", s:purple, "", "") - call X("phpDocTags", s:aqua, "", "") - call X("phpDocParam", s:green, "", "") - call X("phpFunction", s:blue, "", "") - call X("phpFunctions", s:blue, "", "") - call X("phpClass", s:blue, "", "") - call X("phpClasses", s:orange, "", "") - call X("phpMagicConstants", s:yellow, "", "") - call X("phpMemberSelector", s:grey, "", "") - - " Ruby Highlighting - call X("rubySymbol", s:green, "", "") - call X("rubyConstant", s:aqua, "", "") - call X("rubyAttribute", s:blue, "", "") - call X("rubyInclude", s:blue, "", "") - call X("rubyLocalVariableOrMethod", s:orange, "", "") - call X("rubyCurlyBlock", s:orange, "", "") - call X("rubyStringDelimiter", s:green, "", "") - call X("rubyInterpolationDelimiter", s:orange, "", "") - call X("rubyConditional", s:purple, "", "") - call X("rubyRepeat", s:purple, "", "") - call X("rubyIdentifier", s:orange, "", "") - - " Python Highlighting - call X("pythonInclude", s:red, "", "") - call X("pythonStatement", s:blue, "", "") - call X("pythonConditional", s:purple, "", "") - call X("pythonRepeat", s:purple, "", "") - call X("pythonException", s:purple, "", "") - call X("pythonFunction", s:aqua, "", "") - call X("pythonSelf", s:grey, "", "") - call X("pythonOperator", s:purple, "", "") - call X("pythonExtraOperator", s:purple, "", "") - call X("pythonClass", s:aqua, "", "") - call X("pythonDecorator", s:orange, "", "") - call X("pythonDocstring", s:comment, "", "") - call X("pythonBuiltinObj", s:yellow, "", "") - call X("pythonBuiltinType", s:orange, "", "") - call X("pythonNumber", s:orange, "", "") - - " Go Highlighting - call X("goStatement", s:purple, "", "") - call X("goConditional", s:purple, "", "") - call X("goRepeat", s:purple, "", "") - call X("goException", s:purple, "", "") - call X("goDeclaration", s:blue, "", "") - call X("goConstants", s:yellow, "", "") - call X("goBuiltins", s:orange, "", "") - - " CoffeeScript Highlighting - call X("coffeeKeyword", s:purple, "", "") - call X("coffeeConditional", s:purple, "", "") - call X("coffeeSpecialVar", s:orange, "", "") - call X("coffeeSpecialIdent", s:red, "", "") - call X("coffeeObject", s:orange, "", "") - call X("coffeeObjAssign", s:blue, "", "") - call X("coffeeArrow", s:purple, "", "") - call X("coffeeBoolean", s:foreground, "", "") - call X("coffeeGlobal", s:foreground, "", "") - call X("coffeeModuleKeyword", s:aqua, "", "") - call X("coffeeFuncCall", s:blue, "", "") - - " JavaScript Highlighting - call X("javaScriptBraces", s:foreground, "", "") - call X("javaScriptFunction", s:purple, "", "") - call X("javaScriptConditional", s:purple, "", "") - call X("javaScriptRepeat", s:purple, "", "") - call X("javaScriptNumber", s:orange, "", "") - call X("javaScriptMember", s:orange, "", "") - - " HTML Highlighting - call X("htmlTag", s:blue, "", "") - call X("htmlTagName", s:blue, "", "") - call X("htmlArg", s:aqua, "", "") - call X("htmlScriptTag", s:blue, "", "") - - " Blade Tempalte Highlight - call X("bladeDelimiter", s:orange, "", "") - call X("bladeKeyword", s:blue, "", "") - - " Diff Highlighting - call X("diffAdded", "", s:green, "none") - call X("diffRemoved", "", s:red, "none") - call X("diffChanged", "", s:yellow, "none") - call X("DiffAdd", s:window, s:green, "none") - call X("DiffDelete", s:window, s:red, "none") - call X("DiffChange", s:window, s:yellow, "none") - call X("DiffText", s:background, s:yellow, "none") - - call X("GitGutterAdd", s:green, "", "") - call X("GitGutterDelete", s:red, "", "") - call X("GitGutterChange", s:yellow, "", "") - call X("GitGutterChangeDelete", s:orange, "", "") - - call X("VimwikiHeader1", s:red, "", "") - call X("VimwikiHeader2", s:green, "", "") - call X("VimwikiHeader3", s:blue, "", "") - call X("VimwikiHeader4", s:aqua, "", "") - call X("VimwikiHeader5", s:orange, "", "") - call X("VimwikiHeader6", s:yellow, "", "") - - " YAML - call X("yamlBlockMappingKey", s:blue, "", "") - - " Delete Functions - delf X - delf rgb - delf colour - delf rgb_colour - delf rgb_level - delf rgb_number - delf grey_colour - delf grey_level - delf grey_number -endif - diff --git a/vim/colors/basic-light.vim b/vim/colors/basic-light.vim deleted file mode 100644 index a68331b..0000000 --- a/vim/colors/basic-light.vim +++ /dev/null @@ -1,394 +0,0 @@ -" basic-light -- a simple light vim theme -" -" Maintainer: zcodes -" 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 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 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 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 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 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 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 colour(r, g, b) - " Get the closest grey - let l:gx = grey_number(a:r) - let l:gy = grey_number(a:g) - let l:gz = grey_number(a:b) - - " Get the closest colour - let l:x = rgb_number(a:r) - let l:y = rgb_number(a:g) - let l:z = rgb_number(a:b) - - if l:gx == l:gy && l:gy == l:gz - " There are two possibilities - let l:dgr = grey_level(l:gx) - a:r - let l:dgg = grey_level(l:gy) - a:g - let l:dgb = grey_level(l:gz) - a:b - let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb) - let l:dr = rgb_level(l:gx) - a:r - let l:dg = rgb_level(l:gy) - a:g - let l:db = 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 grey_colour(l:gx) - else - " Use the colour - return rgb_colour(l:x, l:y, l:z) - endif - else - " Only one possibility - return rgb_colour(l:x, l:y, l:z) - endif - endfun - - " Returns the palette index to approximate the 'rrggbb' hex string - fun 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 colour(l:r, l:g, l:b) - endfun - - " Sets the highlighting for the given group - fun X(group, fg, bg, attr) - if a:fg != "" - exec "hi " . a:group . " guifg=#" . a:fg . " ctermfg=" . rgb(a:fg) - endif - if a:bg != "" - exec "hi " . a:group . " guibg=#" . a:bg . " ctermbg=" . rgb(a:bg) - endif - if a:attr != "" - exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr - endif - endfun - - " Vim Highlighting - call X("Normal", s:foreground, s:background, "none") - call X("LineNr", s:comment, "", "none") - call X("NonText", s:foreground, "", "none") - call X("SpecialKey", s:blue, "", "none") - call X("Search", s:foreground, s:selection, "none") - call X("TabLine", s:foreground, s:background, "reverse") - call X("StatusLine", s:window, s:foreground, "reverse") - call X("StatusLineNC", s:window, s:comment, "reverse") - call X("VertSplit", s:window, s:window, "none") - call X("Visual", "", s:selection, "none") - call X("Directory", s:blue, "", "none") - call X("ModeMsg", s:green, "", "none") - call X("MoreMsg", s:green, "", "none") - call X("Question", s:green, "", "none") - call X("WarningMsg", s:red, "", "none") - call X("MatchParen", "", s:selection, "none") - call X("Folded", s:comment, s:background, "none") - call X("FoldColumn", s:comment, s:background, "none") - if version >= 700 - call X("CursorLine", "", s:line, "none") - call X("CursorColumn", "", s:line, "none") - call X("PMenu", s:foreground, s:selection, "none") - call X("PMenuSel", s:foreground, s:selection, "reverse") - call X("SignColumn", "", s:background, "none") - end - if version >= 703 - call X("ColorColumn", "", s:line, "none") - end - - " Standard Highlighting - call X("Comment", s:comment, "", "none") - call X("Todo", s:red, s:background, "none") - call X("Title", s:comment, "", "none") - call X("Cursor", "", s:foreground, "none") - call X("Identifier", s:aqua, "", "none") - call X("Statement", s:foreground, "", "none") - call X("Conditional", s:foreground, "", "none") - call X("Repeat", s:foreground, "", "none") - call X("Structure", s:purple, "", "none") - call X("Function", s:blue, "", "none") - call X("Constant", s:foreground, "", "none") - call X("String", s:green, "", "none") - call X("Special", s:foreground, "", "none") - call X("PreProc", s:aqua, "", "none") - call X("Operator", s:foreground, "", "none") - call X("Type", s:blue, "", "none") - call X("Define", s:purple, "", "none") - call X("Include", s:blue, "", "none") - call X("Number", s:orange, "", "none") - - " Vim Highlighting - call X("vimCommand", s:blue, "", "none") - - " C Highlighting - call X("cType", s:blue, "", "") - call X("cStorageClass", s:blue, "", "") - call X("cConditional", s:red, "", "") - call X("cRepeat", s:red, "", "") - - " PHP Highlighting - call X("phpVarSelector", s:aqua, "", "") - call X("phpKeyword", s:blue, "", "") - call X("phpRepeat", s:red, "", "") - call X("phpConditional", s:blue, "", "") - call X("phpStatement", s:blue, "", "") - call X("phpMemberSelector", s:foreground, "", "") - - " Ruby Highlighting - call X("rubySymbol", s:green, "", "") - call X("rubyConstant", s:aqua, "", "") - call X("rubyAttribute", s:blue, "", "") - call X("rubyInclude", s:blue, "", "") - call X("rubyLocalVariableOrMethod", s:orange, "", "") - call X("rubyCurlyBlock", s:orange, "", "") - call X("rubyStringDelimiter", s:green, "", "") - call X("rubyInterpolationDelimiter", s:orange, "", "") - call X("rubyConditional", s:purple, "", "") - call X("rubyRepeat", s:purple, "", "") - call X("rubyIdentifier", s:orange, "", "") - - " Python Highlighting - call X("pythonInclude", s:red, "", "") - call X("pythonStatement", s:aqua, "", "") - call X("pythonConditional", s:blue, "", "") - call X("pythonRepeat", s:blue, "", "") - call X("pythonException", s:blue, "", "") - call X("pythonFunction", s:purple, "", "") - call X("pythonSelf", s:comment, "", "") - call X("pythonOperator", s:blue, "", "") - call X("pythonExtraOperator", s:blue, "", "") - call X("pythonClass", s:blue, "", "") - call X("pythonDecorator", s:yellow, "", "") - call X("pythonDocstring", s:comment, "", "") - call X("pythonBuiltinObj", s:red, "", "") - call X("pythonBuiltinType", s:orange, "", "") - call X("pythonNumber", s:orange, "", "") - - - " Go Highlighting - call X("goStatement", s:purple, "", "") - call X("goConditional", s:purple, "", "") - call X("goRepeat", s:purple, "", "") - call X("goException", s:purple, "", "") - call X("goDeclaration", s:blue, "", "") - call X("goConstants", s:yellow, "", "") - call X("goBuiltins", s:orange, "", "") - - " CoffeeScript Highlighting - call X("coffeeKeyword", s:purple, "", "") - call X("coffeeConditional", s:purple, "", "") - - " JavaScript Highlighting - call X("javaScriptBraces", s:foreground, "", "") - call X("javaScriptFunction", s:purple, "", "") - call X("javaScriptConditional", s:purple, "", "") - call X("javaScriptRepeat", s:purple, "", "") - call X("javaScriptNumber", s:orange, "", "") - call X("javaScriptMember", s:orange, "", "") - - " HTML Highlighting - call X("htmlTag", s:blue, "", "") - call X("htmlTagName", s:blue, "", "") - call X("htmlArg", s:aqua, "", "") - call X("htmlScriptTag", s:blue, "", "") - - " Diff Highlighting - call X("diffAdded", "", s:green, "none") - call X("diffRemoved", "", s:red, "none") - call X("diffChanged", "", s:yellow, "none") - call X("DiffAdd", s:window, s:green, "none") - call X("DiffDelete", s:window, s:red, "none") - call X("DiffChange", s:window, s:yellow, "none") - call X("DiffText", s:background, s:yellow, "none") - - call X("GitGutterAdd", s:green, "", "") - call X("GitGutterDelete", s:red, "", "") - call X("GitGutterChange", s:yellow, "", "") - call X("GitGutterChangeDelete", s:orange, "", "") - - " YAML - call X("yamlBlockMappingKey", s:blue, "", "") - - " Delete Functions - delf X - delf rgb - delf colour - delf rgb_colour - delf rgb_level - delf rgb_number - delf grey_colour - delf grey_level - delf grey_number -endif diff --git a/vim/colors/bubblegum-256-light.vim b/vim/colors/bubblegum-256-light.vim new file mode 100644 index 0000000..38a4352 --- /dev/null +++ b/vim/colors/bubblegum-256-light.vim @@ -0,0 +1,160 @@ +" Bubblegum 256 Light +" Author: baskerville +" URL: github.com/baskerville/bubblegum +" Created: 2011 +" Version: 0.3 + +hi clear + +if exists("syntax_on") + syntax reset +endif + +let g:colors_name="bubblegum-256-light" + + +" Main +hi Normal ctermfg=241 ctermbg=231 cterm=none guifg=#626262 guibg=#FFFFFF gui=none +hi Comment ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none + +" Constant +hi Constant ctermfg=130 ctermbg=231 cterm=none guifg=#AF5F00 guibg=#FFFFFF gui=none +hi String ctermfg=136 ctermbg=231 cterm=none guifg=#AF8700 guibg=#FFFFFF gui=none +hi Character ctermfg=136 ctermbg=231 cterm=none guifg=#AF8700 guibg=#FFFFFF gui=none +hi Number ctermfg=131 ctermbg=231 cterm=none guifg=#AF5F5F guibg=#FFFFFF gui=none +hi Boolean ctermfg=136 ctermbg=231 cterm=none guifg=#AF8700 guibg=#FFFFFF gui=none +hi Float ctermfg=131 ctermbg=231 cterm=none guifg=#AF5F5F guibg=#FFFFFF gui=none + +" Variable Name +hi Identifier ctermfg=133 ctermbg=231 cterm=none guifg=#AF5FAF guibg=#FFFFFF gui=none +hi Function ctermfg=133 ctermbg=231 cterm=none guifg=#AF5FAF guibg=#FFFFFF gui=none + +" Statement +hi Statement ctermfg=32 ctermbg=231 cterm=none guifg=#0087D7 guibg=#FFFFFF gui=none +hi Conditional ctermfg=32 ctermbg=231 cterm=none guifg=#0087D7 guibg=#FFFFFF gui=none +hi Repeat ctermfg=32 ctermbg=231 cterm=none guifg=#0087D7 guibg=#FFFFFF gui=none +hi Label ctermfg=32 ctermbg=231 cterm=none guifg=#0087D7 guibg=#FFFFFF gui=none +hi Operator ctermfg=32 ctermbg=231 cterm=none guifg=#0087D7 guibg=#FFFFFF gui=none +hi Keyword ctermfg=32 ctermbg=231 cterm=none guifg=#0087D7 guibg=#FFFFFF gui=none +hi Exception ctermfg=32 ctermbg=231 cterm=none guifg=#0087D7 guibg=#FFFFFF gui=none + +" Preprocessor +hi PreProc ctermfg=28 ctermbg=231 cterm=none guifg=#008700 guibg=#FFFFFF gui=none +hi Include ctermfg=28 ctermbg=231 cterm=none guifg=#008700 guibg=#FFFFFF gui=none +hi Define ctermfg=28 ctermbg=231 cterm=none guifg=#008700 guibg=#FFFFFF gui=none +hi Macro ctermfg=28 ctermbg=231 cterm=none guifg=#008700 guibg=#FFFFFF gui=none +hi PreCondit ctermfg=28 ctermbg=231 cterm=none guifg=#008700 guibg=#FFFFFF gui=none + +" Type +hi Type ctermfg=61 ctermbg=231 cterm=none guifg=#5F5FAF guibg=#FFFFFF gui=none +hi StorageClass ctermfg=61 ctermbg=231 cterm=none guifg=#5F5FAF guibg=#FFFFFF gui=none +hi Structure ctermfg=61 ctermbg=231 cterm=none guifg=#5F5FAF guibg=#FFFFFF gui=none +hi Typedef ctermfg=61 ctermbg=231 cterm=none guifg=#5F5FAF guibg=#FFFFFF gui=none + +" Special +hi Special ctermfg=167 ctermbg=231 cterm=none guifg=#D75F5F guibg=#FFFFFF gui=none +hi SpecialChar ctermfg=167 ctermbg=231 cterm=none guifg=#D75F5F guibg=#FFFFFF gui=none +hi Tag ctermfg=167 ctermbg=231 cterm=none guifg=#D75F5F guibg=#FFFFFF gui=none +hi Delimiter ctermfg=167 ctermbg=231 cterm=none guifg=#D75F5F guibg=#FFFFFF gui=none +hi SpecialComment ctermfg=167 ctermbg=231 cterm=none guifg=#D75F5F guibg=#FFFFFF gui=none +hi Debug ctermfg=167 ctermbg=231 cterm=none guifg=#D75F5F guibg=#FFFFFF gui=none +hi Underlined ctermfg=241 ctermbg=231 cterm=underline guifg=#626262 guibg=#FFFFFF gui=underline +hi Ignore ctermfg=231 ctermbg=231 cterm=none guifg=#FFFFFF guibg=#FFFFFF gui=none +hi Error ctermfg=231 ctermbg=160 cterm=none guifg=#FFFFFF guibg=#D70000 gui=none +hi Todo ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none + +" Window +hi StatusLine ctermfg=241 ctermbg=254 cterm=none guifg=#626262 guibg=#E4E4E4 gui=none +hi StatusLineNC ctermfg=246 ctermbg=254 cterm=none guifg=#949494 guibg=#E4E4E4 gui=none +hi TabLine ctermfg=241 ctermbg=254 cterm=none guifg=#626262 guibg=#E4E4E4 gui=none +hi TabLineSel ctermfg=238 ctermbg=188 cterm=none guifg=#444444 guibg=#D7D7D7 gui=none +hi TabLineFill ctermbg=254 cterm=none guibg=#E4E4E4 gui=none +hi VertSplit ctermfg=254 ctermbg=254 cterm=none guifg=#E4E4E4 guibg=#E4E4E4 gui=none + +" Menu +hi Pmenu ctermfg=241 ctermbg=254 cterm=none guifg=#626262 guibg=#E4E4E4 gui=none +hi PmenuSel ctermfg=235 ctermbg=145 cterm=none guifg=#262626 guibg=#AFAFAF gui=none +hi PmenuSbar ctermbg=250 cterm=none guibg=#BCBCBC gui=none +hi PmenuThumb ctermbg=102 cterm=none guibg=#878787 gui=none +hi WildMenu ctermfg=231 ctermbg=98 cterm=none guifg=#FFFFFF guibg=#875FD7 gui=none + +" Selection +hi Visual ctermfg=231 ctermbg=24 cterm=none guifg=#FFFFFF guibg=#005F87 gui=none +hi VisualNOS ctermfg=231 ctermbg=23 cterm=none guifg=#FFFFFF guibg=#005F5F gui=none + +" Message +hi ErrorMsg ctermfg=197 ctermbg=231 cterm=none guifg=#FF005F guibg=#FFFFFF gui=none +hi WarningMsg ctermfg=134 ctermbg=231 cterm=none guifg=#AF5FD7 guibg=#FFFFFF gui=none +hi MoreMsg ctermfg=35 ctermbg=231 cterm=none guifg=#00AF5F guibg=#FFFFFF gui=none +hi ModeMsg ctermfg=130 ctermbg=231 cterm=bold guifg=#AF5F00 guibg=#FFFFFF gui=bold +hi Question ctermfg=38 ctermbg=231 cterm=none guifg=#00AFD7 guibg=#FFFFFF gui=none + +" Mark +hi Folded ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none +hi FoldColumn ctermfg=29 ctermbg=254 cterm=none guifg=#00875F guibg=#E4E4E4 gui=none +hi SignColumn ctermfg=130 ctermbg=254 cterm=none guifg=#AF5F00 guibg=#E4E4E4 gui=none +hi ColorColumn ctermbg=254 cterm=none guibg=#E4E4E4 gui=none +hi LineNr ctermfg=246 ctermbg=254 cterm=none guifg=#949494 guibg=#E4E4E4 gui=none +hi MatchParen ctermfg=231 ctermbg=166 cterm=none guifg=#FFFFFF guibg=#D75F00 gui=none + +" Cursor +hi CursorColumn ctermbg=254 cterm=none guibg=#E4E4E4 gui=none +hi CursorLine ctermbg=254 cterm=none guibg=#E4E4E4 gui=none +hi CursorLineNr ctermfg=241 ctermbg=254 cterm=none guifg=#626262 guibg=#E4E4E4 gui=none + +" Search +hi Search ctermfg=231 ctermbg=136 cterm=none guifg=#FFFFFF guibg=#AF8700 gui=none +hi IncSearch ctermfg=231 ctermbg=204 cterm=none guifg=#FFFFFF guibg=#FF5F87 gui=none + +" Diff Mode +hi DiffAdd ctermfg=255 ctermbg=70 cterm=none guifg=#EEEEEE guibg=#5FAF00 gui=none +hi DiffChange ctermfg=255 ctermbg=88 cterm=none guifg=#EEEEEE guibg=#870000 gui=none +hi DiffText ctermfg=255 ctermbg=162 cterm=bold guifg=#EEEEEE guibg=#D70087 gui=bold +hi DiffDelete ctermfg=255 ctermbg=241 cterm=none guifg=#EEEEEE guibg=#626262 gui=none + +" Spell +hi SpellBad ctermfg=197 ctermbg=231 cterm=underline guifg=#FF005F guibg=#FFFFFF gui=underline +hi SpellCap ctermfg=167 ctermbg=231 cterm=underline guifg=#D75F5F guibg=#FFFFFF gui=underline +hi SpellRare ctermfg=95 ctermbg=231 cterm=underline guifg=#875F5F guibg=#FFFFFF gui=underline +hi SpellLocal ctermfg=94 ctermbg=231 cterm=underline guifg=#875F00 guibg=#FFFFFF gui=underline + +" Misc +hi SpecialKey ctermfg=74 ctermbg=231 cterm=none guifg=#5FAFD7 guibg=#FFFFFF gui=none +hi NonText ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none +hi Directory ctermfg=104 ctermbg=231 cterm=none guifg=#8787D7 guibg=#FFFFFF gui=none +hi Title ctermfg=30 cterm=none guifg=#008787 gui=none +hi Conceal ctermfg=103 ctermbg=231 cterm=none guifg=#8787AF guibg=#FFFFFF gui=none +hi Noise ctermfg=243 ctermbg=231 cterm=none guifg=#767676 guibg=#FFFFFF gui=none +hi helpHyperTextJump ctermfg=31 ctermbg=231 cterm=none guifg=#0087AF guibg=#FFFFFF gui=none +hi perlSharpBang ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none +hi rubySharpBang ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none +hi jsFuncCall ctermfg=30 ctermbg=231 cterm=none guifg=#008787 guibg=#FFFFFF gui=none + +" Html +hi javaScriptNumber ctermfg=136 ctermbg=231 cterm=none guifg=#AF8700 guibg=#FFFFFF gui=none +hi htmlTag ctermfg=26 ctermbg=231 cterm=none guifg=#005FD7 guibg=#FFFFFF gui=none +hi htmlEndTag ctermfg=26 ctermbg=231 cterm=none guifg=#005FD7 guibg=#FFFFFF gui=none +hi htmlTagName ctermfg=169 ctermbg=231 cterm=none guifg=#D75FAF guibg=#FFFFFF gui=none +hi htmlString ctermfg=136 ctermbg=231 cterm=none guifg=#AF8700 guibg=#FFFFFF gui=none + +" Vim +hi vimFold ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none +hi vimCommentTitle ctermfg=241 ctermbg=231 cterm=none guifg=#626262 guibg=#FFFFFF gui=none + +" Diff File +hi diffFile ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none +hi diffLine ctermfg=241 ctermbg=231 cterm=none guifg=#626262 guibg=#FFFFFF gui=none +hi diffAdded ctermfg=28 ctermbg=231 cterm=none guifg=#008700 guibg=#FFFFFF gui=none +hi diffRemoved ctermfg=169 ctermbg=231 cterm=none guifg=#D75FAF guibg=#FFFFFF gui=none +hi diffChanged ctermfg=136 ctermbg=231 cterm=none guifg=#AF8700 guibg=#FFFFFF gui=none +hi diffSubname ctermfg=239 ctermbg=231 cterm=none guifg=#4E4E4E guibg=#FFFFFF gui=none +hi diffOldLine ctermfg=69 ctermbg=231 cterm=none guifg=#5F87FF guibg=#FFFFFF gui=none + +" Mail +hi mailSubject ctermfg=30 ctermbg=231 cterm=none guifg=#008787 guibg=#FFFFFF gui=none +hi mailSignature ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none + +" Markdown +hi markdownCode ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none +hi markdownCodeBlock ctermfg=246 ctermbg=231 cterm=none guifg=#949494 guibg=#FFFFFF gui=none +hi markdownItalic ctermfg=239 ctermbg=231 cterm=none guifg=#4E4E4E guibg=#FFFFFF gui=none diff --git a/vim/colors/crunchbang.vim b/vim/colors/crunchbang.vim deleted file mode 100644 index 6a259d0..0000000 --- a/vim/colors/crunchbang.vim +++ /dev/null @@ -1,327 +0,0 @@ -hi clear - -if exists('syntax_on') - syntax reset -endif - -let colors_name = 'crunchbang' - -hi Normal ctermfg=12 ctermbg=8 guifg=#bfbfbf guibg=#2e3436 gui=NONE - -set background=dark - -hi ColorColumn ctermbg=0 guibg=#3b4245 gui=NONE -hi Comment ctermfg=10 guifg=#999999 gui=italic -hi ConId ctermfg=3 guifg=#ab9a6a gui=NONE -hi Conceal ctermfg=4 guifg=#75a0bd gui=NONE -hi Constant ctermfg=6 guifg=#68a6a8 gui=NONE -hi Cursor ctermfg=8 ctermbg=10 guifg=#2e3436 guibg=#999999 gui=NONE -hi CursorColumn ctermbg=0 guibg=#3b4245 gui=NONE -hi CursorLine cterm=NONE ctermbg=0 guibg=#3b4245 guisp=#dfdfdf gui=NONE -hi CursorLineNr cterm=NONE ctermfg=12 guifg=#bfbfbf gui=bold -hi DiffAdd ctermfg=2 ctermbg=0 guifg=#6fa868 guibg=#3b4245 guisp=#6fa868 gui=NONE -hi DiffChange ctermfg=3 ctermbg=0 guifg=#ab9a6a guibg=#3b4245 guisp=#ab9a6a gui=NONE -hi DiffDelete ctermfg=1 ctermbg=0 guifg=#c48d93 guibg=#3b4245 gui=NONE -hi DiffText ctermfg=4 ctermbg=0 guifg=#75a0bd guibg=#3b4245 guisp=#75a0bd gui=NONE -hi Directory ctermfg=4 guifg=#75a0bd gui=NONE -hi Error cterm=NONE ctermfg=1 ctermbg=NONE guifg=#c48d93 guibg=#2e3436 gui=NONE -hi ErrorMsg cterm=reverse ctermfg=1 ctermbg=NONE guifg=#c48d93 guibg=NONE gui=reverse -hi FoldColumn ctermfg=12 ctermbg=0 guifg=#bfbfbf guibg=#3b4245 gui=NONE -hi Folded cterm=NONE,underline ctermfg=12 ctermbg=0 guifg=#bfbfbf guibg=#3b4245 guisp=#2e3436 gui=NONE -hi HelpExample ctermfg=14 guifg=#dfdfdf gui=NONE -hi Identifier ctermfg=4 guifg=#75a0bd gui=NONE -hi IncSearch cterm=standout ctermfg=9 guifg=#bf9277 gui=standout -hi LineNr ctermfg=10 ctermbg=0 guifg=#999999 guibg=#3b4245 gui=NONE -hi MatchParen cterm=NONE ctermfg=1 ctermbg=10 guifg=#c48d93 guibg=#999999 gui=NONE -hi ModeMsg ctermfg=4 guifg=#75a0bd gui=NONE -hi MoreMsg ctermfg=4 guifg=#75a0bd gui=NONE -hi NonText cterm=NONE ctermfg=11 guifg=#acacac gui=NONE -hi Pmenu cterm=reverse ctermfg=12 ctermbg=0 guifg=#bfbfbf guibg=#3b4245 gui=reverse -hi PmenuSbar cterm=reverse ctermfg=7 ctermbg=12 guifg=#e6e6e6 guibg=#bfbfbf gui=reverse -hi PmenuSel cterm=reverse ctermfg=10 ctermbg=7 guifg=#999999 guibg=#e6e6e6 gui=reverse -hi PmenuThumb cterm=reverse ctermfg=12 ctermbg=8 guifg=#bfbfbf guibg=#2e3436 gui=reverse -hi PreProc cterm=NONE ctermfg=1 guifg=#bf9277 gui=NONE -hi Question cterm=NONE ctermfg=6 guifg=#68a6a8 gui=NONE -hi Search cterm=reverse ctermfg=3 ctermbg=NONE guifg=#ab9a6a guibg=NONE gui=reverse -hi SignColumn cterm=NONE ctermfg=12 ctermbg=NONE guifg=#bfbfbf guibg=NONE gui=NONE -hi Special cterm=NONE ctermfg=1 guifg=#c48d93 gui=NONE -hi SpecialKey cterm=NONE ctermfg=11 ctermbg=0 guifg=#acacac guibg=#3b4245 gui=NONE -hi SpellBad cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#c48d93 gui=undercurl -hi SpellCap cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#a793c4 gui=undercurl -hi SpellLocal cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#ab9a6a gui=undercurl -hi SpellRare cterm=undercurl ctermfg=NONE ctermbg=NONE guisp=#68a6a8 gui=undercurl -hi Statement ctermfg=2 guifg=#6fa868 gui=NONE -hi StatusLine cterm=reverse ctermfg=10 ctermbg=8 guifg=#999999 guibg=#2e3436 gui=reverse -hi StatusLineNC cterm=reverse ctermfg=11 ctermbg=0 guifg=#acacac guibg=#3b4245 gui=reverse -hi TabLine cterm=underline ctermfg=12 ctermbg=0 guifg=#bfbfbf guibg=#3b4245 guisp=#bfbfbf gui=underline -hi TabLineFill cterm=underline ctermfg=12 ctermbg=0 guifg=#bfbfbf guibg=#3b4245 guisp=#bfbfbf gui=underline -hi TabLineSel cterm=underline,reverse ctermfg=10 ctermbg=7 guifg=#999999 guibg=#e6e6e6 guisp=#bfbfbf gui=underline,reverse -hi Title cterm=NONE ctermfg=9 guifg=#bf9277 gui=NONE -hi Todo cterm=NONE ctermfg=5 guifg=#bd8ea1 guibg=NONE gui=bold -hi Type ctermfg=3 guifg=#ab9a6a gui=NONE -hi Underlined ctermfg=13 guifg=#a793c4 gui=NONE -hi VarId ctermfg=4 guifg=#75a0bd gui=NONE -hi VertSplit ctermfg=11 ctermbg=11 guifg=#acacac guibg=#acacac gui=NONE -hi Visual cterm=reverse ctermfg=10 ctermbg=8 guifg=#999999 guibg=#2e3436 gui=reverse -hi VisualNOS cterm=reverse ctermbg=0 ctermbg=NONE guibg=#3b4245 guifg=NONE gui=reverse -hi WarningMsg cterm=NONE ctermfg=9 guifg=#c48d93 gui=NONE -hi WildMenu cterm=reverse ctermfg=7 ctermbg=0 guifg=#e6e6e6 guibg=#3b4245 gui=reverse - -hi cPreCondit ctermfg=9 guifg=#bf9277 gui=NONE - -hi gitcommitBranch cterm=NONE ctermfg=5 guifg=#bd8ea1 gui=NONE -hi gitcommitComment ctermfg=10 guifg=#999999 gui=italic -hi gitcommitDiscardedFile cterm=NONE ctermfg=1 guifg=#c48d93 gui=NONE -hi gitcommitDiscardedType ctermfg=1 guifg=#c48d93 gui=NONE -hi gitcommitFile cterm=NONE ctermfg=12 guifg=#bfbfbf gui=NONE -hi gitcommitHeader ctermfg=10 guifg=#999999 gui=NONE -hi gitcommitOnBranch cterm=NONE ctermfg=10 guifg=#999999 gui=NONE -hi gitcommitSelectedFile cterm=NONE ctermfg=2 guifg=#6fa868 gui=NONE -hi gitcommitSelectedType ctermfg=2 guifg=#6fa868 gui=NONE -hi gitcommitUnmerged cterm=NONE ctermfg=2 guifg=#6fa868 gui=NONE -hi gitcommitUnmergedFile cterm=NONE ctermfg=3 guifg=#ab9a6a gui=NONE -hi gitcommitUntrackedFile cterm=NONE ctermfg=6 guifg=#68a6a8 gui=NONE - -hi helpHyperTextEntry ctermfg=2 guifg=#6fa868 gui=NONE -hi helpHyperTextJump cterm=underline ctermfg=4 guifg=#75a0bd gui=underline -hi helpNote ctermfg=5 guifg=#bd8ea1 gui=NONE -hi helpOption ctermfg=6 guifg=#68a6a8 gui=NONE -hi helpVim ctermfg=5 guifg=#bd8ea1 gui=NONE - -hi hsImport ctermfg=5 guifg=#bd8ea1 gui=NONE -hi hsImportLabel ctermfg=6 guifg=#68a6a8 gui=NONE -hi hsModuleName cterm=underline ctermfg=2 guifg=#6fa868 gui=underline -hi hsNiceOperator ctermfg=6 guifg=#68a6a8 gui=NONE -hi hsStatement ctermfg=6 guifg=#68a6a8 gui=NONE -hi hsString ctermfg=11 guifg=#acacac gui=NONE -hi hsStructure ctermfg=6 guifg=#68a6a8 gui=NONE -hi hsType ctermfg=3 guifg=#ab9a6a gui=NONE -hi hsTypedef ctermfg=6 guifg=#68a6a8 gui=NONE -hi hsVarSym ctermfg=6 guifg=#68a6a8 gui=NONE -hi hs_DeclareFunction ctermfg=9 guifg=#bf9277 gui=NONE -hi hs_OpFunctionName ctermfg=3 guifg=#ab9a6a gui=NONE -hi hs_hlFunctionName ctermfg=4 guifg=#75a0bd gui=NONE - -hi htmlArg ctermfg=11 guifg=#acacac gui=NONE -hi htmlEndTag ctermfg=10 guifg=#999999 gui=NONE -hi htmlSpecialTagName ctermfg=4 guifg=#75a0bd gui=italic -hi htmlTag ctermfg=10 guifg=#999999 gui=NONE -hi htmlTagN cterm=NONE ctermfg=14 guifg=#dfdfdf gui=NONE -hi htmlTagName cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE - -hi javaScript ctermfg=3 guifg=#ab9a6a gui=NONE - -hi pandocBlockQuote ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocBlockQuoteLeader1 ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocBlockQuoteLeader2 ctermfg=6 guifg=#68a6a8 gui=NONE -hi pandocBlockQuoteLeader3 ctermfg=3 guifg=#ab9a6a gui=NONE -hi pandocBlockQuoteLeader4 ctermfg=1 guifg=#c48d93 gui=NONE -hi pandocBlockQuoteLeader5 ctermfg=12 guifg=#bfbfbf gui=NONE -hi pandocBlockQuoteLeader6 ctermfg=10 guifg=#999999 gui=NONE -hi pandocCitation ctermfg=5 guifg=#bd8ea1 gui=NONE -hi pandocCitationDelim ctermfg=5 guifg=#bd8ea1 gui=NONE -hi pandocCitationID cterm=underline ctermfg=5 guifg=#bd8ea1 gui=underline -hi pandocCitationRef ctermfg=5 guifg=#bd8ea1 gui=NONE -hi pandocComment ctermfg=10 guifg=#999999 gui=italic -hi pandocDefinitionBlock ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocDefinitionIndctr cterm=NONE ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocDefinitionTerm cterm=standout ctermfg=13 guifg=#a793c4 gui=standout -hi pandocEmphasis ctermfg=12 guifg=#bfbfbf gui=italic -hi pandocEmphasisDefinition ctermfg=13 guifg=#a793c4 gui=italic -hi pandocEmphasisHeading cterm=NONE ctermfg=9 guifg=#bf9277 gui=NONE -hi pandocEmphasisNested cterm=NONE ctermfg=12 guifg=#bfbfbf gui=NONE -hi pandocEmphasisNestedDefinition cterm=NONE ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocEmphasisNestedHeading cterm=NONE ctermfg=9 guifg=#bf9277 gui=NONE -hi pandocEmphasisNestedTable cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocEmphasisTable ctermfg=4 guifg=#75a0bd gui=italic -hi pandocEscapePair cterm=NONE ctermfg=1 guifg=#c48d93 gui=NONE -hi pandocFootnote ctermfg=2 guifg=#6fa868 gui=NONE -hi pandocFootnoteDefLink cterm=NONE ctermfg=2 guifg=#6fa868 gui=NONE -hi pandocFootnoteInline cterm=NONE,underline ctermfg=2 guifg=#6fa868 gui=NONE,underline -hi pandocFootnoteLink cterm=underline ctermfg=2 guifg=#6fa868 gui=underline -hi pandocHeading cterm=NONE ctermfg=9 guifg=#bf9277 gui=NONE -hi pandocHeadingMarker cterm=NONE ctermfg=3 guifg=#ab9a6a gui=NONE -hi pandocImageCaption cterm=NONE,underline ctermfg=13 guifg=#a793c4 gui=NONE,underline -hi pandocLinkDefinition cterm=underline ctermfg=6 guifg=#68a6a8 guisp=#acacac gui=underline -hi pandocLinkDefinitionID cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocLinkDelim ctermfg=10 guifg=#999999 gui=NONE -hi pandocLinkLabel cterm=underline ctermfg=4 guifg=#75a0bd gui=underline -hi pandocLinkText cterm=NONE,underline ctermfg=4 guifg=#75a0bd gui=NONE,underline -hi pandocLinkTitle cterm=underline ctermfg=11 guifg=#acacac gui=underline -hi pandocLinkTitleDelim cterm=underline ctermfg=10 guifg=#999999 guisp=#acacac gui=underline -hi pandocLinkURL cterm=underline ctermfg=11 guifg=#acacac gui=underline -hi pandocListMarker ctermfg=5 guifg=#bd8ea1 gui=NONE -hi pandocListReference cterm=underline ctermfg=5 guifg=#bd8ea1 gui=underline -hi pandocMetadata cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocMetadataDelim ctermfg=10 guifg=#999999 gui=NONE -hi pandocMetadataKey ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocNonBreakingSpace cterm=reverse ctermfg=1 ctermbg=NONE guifg=#c48d93 guibg=NONE gui=reverse -hi pandocRule cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocRuleLine cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocStrikeout cterm=reverse ctermfg=10 ctermbg=NONE guibg=NONE guifg=#999999 gui=reverse -hi pandocStrikeoutDefinition cterm=reverse ctermfg=13 ctermbg=NONE guibg=NONE guifg=#a793c4 gui=reverse -hi pandocStrikeoutHeading cterm=reverse ctermfg=9 ctermbg=NONE guibg=NONE guifg=#bf9277 gui=reverse -hi pandocStrikeoutTable cterm=reverse ctermfg=4 ctermbg=NONE guibg=NONE guifg=#75a0bd gui=reverse -hi pandocStrongEmphasis cterm=NONE ctermfg=12 guifg=#bfbfbf gui=NONE -hi pandocStrongEmphasisDefinition cterm=NONE ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocStrongEmphasisEmphasis cterm=NONE ctermfg=12 guifg=#bfbfbf gui=NONE -hi pandocStrongEmphasisEmphasisDefinition cterm=NONE ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocStrongEmphasisEmphasisHeading cterm=NONE ctermfg=9 guifg=#bf9277 gui=NONE -hi pandocStrongEmphasisEmphasisTable cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocStrongEmphasisHeading cterm=NONE ctermfg=9 guifg=#bf9277 gui=NONE -hi pandocStrongEmphasisNested cterm=NONE ctermfg=12 guifg=#bfbfbf gui=NONE -hi pandocStrongEmphasisNestedDefinition cterm=NONE ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocStrongEmphasisNestedHeading cterm=NONE ctermfg=9 guifg=#bf9277 gui=NONE -hi pandocStrongEmphasisNestedTable cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocStrongEmphasisTable cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocStyleDelim ctermfg=10 guifg=#999999 gui=NONE -hi pandocSubscript ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocSubscriptDefinition ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocSubscriptHeading cterm=NONE ctermfg=9 guifg=#bf9277 gui=NONE -hi pandocSubscriptTable ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocSuperscript ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocSuperscriptDefinition ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocSuperscriptHeading cterm=NONE ctermfg=9 guifg=#bf9277 gui=NONE -hi pandocSuperscriptTable ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocTable ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocTableStructure ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocTableZebraDark ctermfg=4 ctermbg=0 guifg=#75a0bd guibg=#3b4245 gui=NONE -hi pandocTableZebraLight ctermfg=4 ctermbg=8 guifg=#75a0bd guibg=#2e3436 gui=NONE -hi pandocTitleBlock ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocTitleBlockTitle cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocTitleComment cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi pandocVerbatimBlock ctermfg=3 guifg=#ab9a6a gui=NONE -hi pandocVerbatimInline ctermfg=3 guifg=#ab9a6a gui=NONE -hi pandocVerbatimInlineDefinition ctermfg=13 guifg=#a793c4 gui=NONE -hi pandocVerbatimInlineHeading cterm=NONE ctermfg=9 guifg=#bf9277 gui=NONE -hi pandocVerbatimInlineTable ctermfg=4 guifg=#75a0bd gui=NONE - -hi perlHereDoc ctermfg=14 ctermbg=8 guifg=#dfdfdf guibg=#2e3436 gui=NONE -hi perlStatementFileDesc ctermfg=6 ctermbg=8 guifg=#68a6a8 guibg=#2e3436 gui=NONE -hi perlVarPlain ctermfg=3 ctermbg=8 guifg=#ab9a6a guibg=#2e3436 gui=NONE - -hi rubyDefine cterm=NONE ctermfg=14 ctermbg=8 guifg=#dfdfdf guibg=#2e3436 gui=NONE - -hi texMathMatcher ctermfg=3 ctermbg=8 guifg=#ab9a6a guibg=#2e3436 gui=NONE -hi texMathZoneX ctermfg=3 ctermbg=8 guifg=#ab9a6a guibg=#2e3436 gui=NONE -hi texRefLabel ctermfg=3 ctermbg=8 guifg=#ab9a6a guibg=#2e3436 gui=NONE -hi texStatement ctermfg=6 ctermbg=8 guifg=#68a6a8 guibg=#2e3436 gui=NONE - -hi vimCmdSep cterm=NONE ctermfg=4 guifg=#75a0bd gui=NONE -hi vimCommand ctermfg=3 guifg=#ab9a6a gui=NONE -hi vimCommentString ctermfg=13 guifg=#a793c4 gui=NONE -hi vimGroup cterm=NONE,underline ctermfg=4 guifg=#75a0bd gui=NONE,underline -hi vimHiGroup ctermfg=4 guifg=#75a0bd gui=NONE -hi vimHiLink ctermfg=4 guifg=#75a0bd gui=NONE -hi vimIsCommand ctermfg=11 guifg=#acacac gui=NONE -hi vimSynMtchOpt ctermfg=3 guifg=#ab9a6a gui=NONE -hi vimSynType ctermfg=6 guifg=#68a6a8 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 = '#3b4245' - let g:terminal_color_1 = '#c48d93' - let g:terminal_color_2 = '#6fa868' - let g:terminal_color_3 = '#ab9a6a' - let g:terminal_color_4 = '#75a0bd' - let g:terminal_color_5 = '#bd8ea1' - let g:terminal_color_6 = '#68a6a8' - let g:terminal_color_7 = '#e6e6e6' - let g:terminal_color_8 = '#2e3436' - let g:terminal_color_9 = '#bf9277' - let g:terminal_color_10 = '#999999' - let g:terminal_color_11 = '#acacac' - let g:terminal_color_12 = '#bfbfbf' - let g:terminal_color_13 = '#a793c4' - let g:terminal_color_14 = '#dfdfdf' - 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). - diff --git a/vim/colors/deus.vim b/vim/colors/deus.vim deleted file mode 100644 index fd6ea9d..0000000 --- a/vim/colors/deus.vim +++ /dev/null @@ -1,1220 +0,0 @@ -" ----------------------------------------------------------------------------- -" File: deus.vim -" Description: a retro-modern colorscheme in Vim -" Author: ajmwagar -" Source: https://github.com/ajmwagar/deus -" Last Modified: 04 Sep 2015 -" ----------------------------------------------------------------------------- - -" Supporting code ------------------------------------------------------------- -" Initialisation: {{{ - -if version > 580 - hi clear - if exists("syntax_on") - syntax reset - endif -endif - -let g:colors_name='deus' - -if !has('gui_running') && &t_Co != 256 - finish -endif - -" }}} -" Global Settings: {{{ - -if !exists('g:deus_bold') - let g:deus_bold=1 -endif -if !exists('g:deus_italic') - if has('gui_running') || $TERM_ITALICS == 'true' - let g:deus_italic=1 - else - let g:deus_italic=0 - endif -endif -if !exists('g:deus_undercurl') - let g:deus_undercurl=1 -endif -if !exists('g:deus_underline') - let g:deus_underline=1 -endif -if !exists('g:deus_inverse') - let g:deus_inverse=1 -endif - -if !exists('g:deus_guisp_fallback') || index(['fg', 'bg'], g:deus_guisp_fallback) == -1 - let g:deus_guisp_fallback='NONE' -endif - -if !exists('g:deus_improved_strings') - let g:deus_improved_strings=0 -endif - -if !exists('g:deus_improved_warnings') - let g:deus_improved_warnings=0 -endif - -if !exists('g:deus_termcolors') - let g:deus_termcolors=256 -endif - -if !exists('g:deus_invert_indent_guides') - let g:deus_invert_indent_guides=0 -endif - -if exists('g:deus_contrast') - echo 'g:deus_contrast is deprecated; use g:deus_contrast_light and g:deus_contrast_dark instead' -endif - -if !exists('g:deus_contrast_dark') - let g:deus_contrast_dark='medium' -endif - -if !exists('g:deus_contrast_light') - let g:deus_contrast_light='medium' -endif - -let s:is_dark=(&background == 'dark') - -" }}} -" Palette: {{{ - -" setup palette dictionary -let s:ds = {} - -" fill it with absolute colors -let s:ds.dark0_hard = ['#2C313A', 234] " 29-32-33 -let s:ds.dark0 = ['#2C323B', 235] " 40-40-40 -let s:ds.dark0_soft = ['#28282f', 236] " 50-48-47 -let s:ds.dark1 = ['#3c3836', 237] " 60-56-54 -let s:ds.dark2 = ['#2C313A', 239] " 80-73-69 -let s:ds.dark3 = ['#665c54', 241] " 102-92-84 -let s:ds.dark4 = ['#7c6f64', 243] " 124-111-100 -let s:ds.dark4_256 = ['#7c6f64', 243] " 124-111-100 - -let s:ds.gray_245 = ['#928374', 245] " 146-131-116 -let s:ds.gray_244 = ['#928374', 244] " 146-131-116 - -let s:ds.light0_hard = ['#d3d3d3', 230] " 249-245-215 -let s:ds.light0 = ['#d2d2d2', 229] " 253-244-193 -let s:ds.light0_soft = ['#d4d4d4', 228] " 242-229-188 -"let s:ds.light0_hard = ['#2C313A', 234] " 29-32-33 -"let s:ds.light0 = ['#2C323B', 235] " 40-40-40 -"let s:ds.light0_soft = ['#28282f', 236] " 50-48-47 -let s:ds.light1 = ['#ebdbb2', 223] " 235-219-178 -let s:ds.light2 = ['#d5c4a1', 250] " 213-196-161 -let s:ds.light3 = ['#bdae93', 248] " 189-174-147 -let s:ds.light4 = ['#a89984', 246] " 168-153-132 -let s:ds.light4_256 = ['#a89984', 246] " 168-153-132 - -let s:ds.bright_red = ['#fb4934', 167] " 251-73-52 -let s:ds.bright_green = ['#98C379', 142] " 184-187-38 -let s:ds.bright_yellow = ['#fabd2f', 214] " 250-189-47 -let s:ds.bright_blue = ['#83a598', 109] " 131-165-152 -let s:ds.bright_purple = ['#C678DD', 175] " 211-134-155 -let s:ds.bright_aqua = ['#8ec07c', 108] " 142-192-124 -let s:ds.bright_orange = ['#fe8019', 208] " 254-128-25 - -let s:ds.neutral_red = ['#cc241d', 124] " 204-36-29 -let s:ds.neutral_green = ['#98971a', 106] " 152-151-26 -let s:ds.neutral_yellow = ['#d79921', 172] " 215-153-33 -let s:ds.neutral_blue = ['#458588', 66] " 69-133-136 -let s:ds.neutral_purple = ['#b16286', 132] " 177-98-134 -let s:ds.neutral_aqua = ['#689d6a', 72] " 104-157-106 -let s:ds.neutral_orange = ['#d65d0e', 166] " 214-93-14 - -let s:ds.faded_red = ['#9d0006', 88] " 157-0-6 -let s:ds.faded_green = ['#79740e', 100] " 121-116-14 -let s:ds.faded_yellow = ['#b57614', 136] " 181-118-20 -let s:ds.faded_blue = ['#076678', 24] " 7-102-120 -let s:ds.faded_purple = ['#8f3f71', 96] " 143-63-113 -let s:ds.faded_aqua = ['#427b58', 66] " 66-123-88 -let s:ds.faded_orange = ['#af3a03', 130] " 175-58-3 -" }}} -" Setup Emphasis: {{{ - -let s:bold = 'bold,' -if g:deus_bold == 0 - let s:bold = '' -endif - -let s:italic = 'italic,' -if g:deus_italic == 0 - let s:italic = '' -endif - -let s:underline = 'underline,' -if g:deus_underline == 0 - let s:underline = '' -endif - -let s:undercurl = 'undercurl,' -if g:deus_undercurl == 0 - let s:undercurl = '' -endif - -let s:inverse = 'inverse,' -if g:deus_inverse == 0 - let s:inverse = '' -endif - -" }}} -" Setup Colors: {{{ - -let s:vim_bg = ['bg', 'bg'] -let s:vim_fg = ['fg', 'fg'] -let s:none = ['NONE', 'NONE'] - -" determine relative colors -if s:is_dark - let s:bg0 = s:ds.dark0 - if g:deus_contrast_dark == 'soft' - let s:bg0 = s:ds.dark0_soft - elseif g:deus_contrast_dark == 'hard' - let s:bg0 = s:ds.dark0_hard - endif - - let s:bg1 = s:ds.dark1 - let s:bg2 = s:ds.dark2 - let s:bg3 = s:ds.dark3 - let s:bg4 = s:ds.dark4 - - let s:gray = s:ds.gray_245 - - let s:fg0 = s:ds.light0 - let s:fg1 = s:ds.light1 - let s:fg2 = s:ds.light2 - let s:fg3 = s:ds.light3 - let s:fg4 = s:ds.light4 - - let s:fg4_256 = s:ds.light4_256 - - let s:red = s:ds.bright_red - let s:green = s:ds.bright_green - let s:yellow = s:ds.bright_yellow - let s:blue = s:ds.bright_blue - let s:purple = s:ds.bright_purple - let s:aqua = s:ds.bright_aqua - let s:orange = s:ds.bright_orange -else - let s:bg0 = s:ds.light0 - if g:deus_contrast_light == 'soft' - let s:bg0 = s:ds.light0_soft - elseif g:deus_contrast_light == 'hard' - let s:bg0 = s:ds.light0_hard - endif - - let s:bg1 = s:ds.light1 - let s:bg2 = s:ds.light2 - let s:bg3 = s:ds.light3 - let s:bg4 = s:ds.light4 - - let s:gray = s:ds.gray_244 - - let s:fg0 = s:ds.dark0 - let s:fg1 = s:ds.dark1 - let s:fg2 = s:ds.dark2 - let s:fg3 = s:ds.dark3 - let s:fg4 = s:ds.dark4 - - let s:fg4_256 = s:ds.dark4_256 - - let s:red = s:ds.bright_red - let s:green = s:ds.bright_green - let s:yellow = s:ds.bright_yellow - let s:blue = s:ds.bright_blue - let s:purple = s:ds.bright_purple - let s:aqua = s:ds.bright_aqua - let s:orange = s:ds.bright_orange -endif - -" reset to 16 colors fallback -"if g:deus_termcolors == 16 - "let s:bg0[1] = NONE - "let s:fg4[1] = 7 - "let s:gray[1] = 8 - "let s:red[1] = 9 - "let s:green[1] = 10 - "let s:yellow[1] = 11 - "let s:blue[1] = 12 - "let s:purple[1] = 5 - "let s:aqua[1] = 14 - "let s:fg1[1] = 15 -"endif - -" save current relative colors back to palette dictionary -let s:ds.bg0 = s:bg0 -let s:ds.bg1 = s:bg1 -let s:ds.bg2 = s:bg2 -let s:ds.bg3 = s:bg3 -let s:ds.bg4 = s:bg4 - -let s:ds.gray = s:gray - -let s:ds.fg0 = s:fg0 -let s:ds.fg1 = s:fg1 -let s:ds.fg2 = s:fg2 -let s:ds.fg3 = s:fg3 -let s:ds.fg4 = s:fg4 - -let s:ds.fg4_256 = s:fg4_256 - -let s:ds.red = s:red -let s:ds.green = s:green -let s:ds.yellow = s:yellow -let s:ds.blue = s:blue -let s:ds.purple = s:purple -let s:ds.aqua = s:aqua -let s:ds.orange = s:orange - -" }}} - -" Overload Setting: {{{ - -let s:hls_cursor = s:orange -if exists('g:deus_hls_cursor') - let s:hls_cursor = get(s:ds, g:deus_hls_cursor) -endif - -let s:number_column = s:bg4 -let s:sign_column = s:bg1 - -if exists('g:gitgutter_override_sign_column_highlight') && - \ g:gitgutter_override_sign_column_highlight == 1 - let s:sign_column = s:number_column -else - let g:gitgutter_override_sign_column_highlight = 0 - - if exists('g:deus_sign_column') - let s:sign_column = get(s:ds, g:deus_sign_column) - endif -endif - -let s:color_column = s:bg1 -if exists('g:deus_color_column') - let s:color_column = get(s:ds, g:deus_color_column) -endif - -let s:vert_split = s:bg2 -if exists('g:deus_vert_split') - let s:vert_split = get(s:ds, g:deus_vert_split) -endif - -let s:invert_signs = '' -if exists('g:deus_invert_signs') - if g:deus_invert_signs == 1 - let s:invert_signs = s:inverse - endif -endif - -let s:invert_selection = s:inverse -if exists('g:deus_invert_selection') - if g:deus_invert_selection == 0 - let s:invert_selection = '' - endif -endif - -let s:invert_tabline = '' -if exists('g:deus_invert_tabline') - if g:deus_invert_tabline == 1 - let s:invert_tabline = s:inverse - endif -endif - -let s:italicize_comments = s:italic -if exists('g:deus_italicize_comments') - if g:deus_italicize_comments == 0 - let s:italicize_comments = '' - endif -endif - -let s:italicize_strings = '' -if exists('g:deus_italicize_strings') - if g:deus_italicize_strings == 1 - let s:italicize_strings = s:italic - endif -endif - -" }}} -" Highlighting Function: {{{ - -function! s:HL(group, fg, ...) - " Arguments: group, guifg, guibg, gui, guisp - - " foreground - let fg = a:fg - - " background - if a:0 >= 1 - let bg = a:1 - else - let bg = s:none - endif - - " emphasis - if a:0 >= 2 && strlen(a:2) - let emstr = a:2 - else - let emstr = 'NONE,' - endif - - " special fallback - if a:0 >= 3 - if g:deus_guisp_fallback != 'NONE' - let fg = a:3 - endif - - " bg fallback mode should invert higlighting - if g:deus_guisp_fallback == 'bg' - let emstr .= 'inverse,' - endif - endif - - let histring = [ 'hi', a:group, - \ 'guifg=' . fg[0], 'ctermfg=' . fg[1], - \ 'guibg=' . bg[0], 'ctermbg=' . bg[1], - \ 'gui=' . emstr[:-2], 'cterm=' . emstr[:-2] - \ ] - - " special - if a:0 >= 3 - call add(histring, 'guisp=' . a:3[0]) - endif - - execute join(histring, ' ') -endfunction - -" }}} -" deus Hi Groups: {{{ - -" memoize common hi groups -call s:HL('deusFg0', s:fg0) -call s:HL('deusFg1', s:fg1) -call s:HL('deusFg2', s:fg2) -call s:HL('deusFg3', s:fg3) -call s:HL('deusFg4', s:fg4) -call s:HL('deusGray', s:gray) -call s:HL('deusBg0', s:bg0) -call s:HL('deusBg1', s:bg1) -call s:HL('deusBg2', s:bg2) -call s:HL('deusBg3', s:bg3) -call s:HL('deusBg4', s:bg4) - -call s:HL('deusRed', s:red) -call s:HL('deusRedBold', s:red, s:none, s:bold) -call s:HL('deusGreen', s:green) -call s:HL('deusGreenBold', s:green, s:none, s:bold) -call s:HL('deusYellow', s:yellow) -call s:HL('deusYellowBold', s:yellow, s:none, s:bold) -call s:HL('deusBlue', s:blue) -call s:HL('deusBlueBold', s:blue, s:none, s:bold) -call s:HL('deusPurple', s:purple) -call s:HL('deusPurpleBold', s:purple, s:none, s:bold) -call s:HL('deusAqua', s:aqua) -call s:HL('deusAquaBold', s:aqua, s:none, s:bold) -call s:HL('deusOrange', s:orange) -call s:HL('deusOrangeBold', s:orange, s:none, s:bold) - -call s:HL('deusRedSign', s:red, s:sign_column, s:invert_signs) -call s:HL('deusGreenSign', s:green, s:sign_column, s:invert_signs) -call s:HL('deusYellowSign', s:yellow, s:sign_column, s:invert_signs) -call s:HL('deusBlueSign', s:blue, s:sign_column, s:invert_signs) -call s:HL('deusPurpleSign', s:purple, s:sign_column, s:invert_signs) -call s:HL('deusAquaSign', s:aqua, s:sign_column, s:invert_signs) - -" }}} - -" Vanilla colorscheme --------------------------------------------------------- -" General UI: {{{ - -" Normal text -call s:HL('Normal', s:fg1, s:bg0) - -" Correct background (see issue #7): -" --- Problem with changing between dark and light on 256 color terminal -" --- https://github.com/morhetz/deus/issues/7 -if s:is_dark - set background=dark -else - set background=light -endif - -if version >= 700 - " Screen line that the cursor is - call s:HL('CursorLine', s:none, s:bg1) - " Screen column that the cursor is - hi! link CursorColumn CursorLine - - " Tab pages line filler - call s:HL('TabLineFill', s:bg4, s:vim_bg, s:invert_tabline) - " Active tab page label - call s:HL('TabLineSel', s:vim_bg, s:bg4, s:bold . s:invert_tabline) - " Not active tab page label - hi! link TabLine TabLineFill - - " Match paired bracket under the cursor - call s:HL('MatchParen', s:none, s:bg3, s:bold) -endif - -if version >= 703 - " Highlighted screen columns - call s:HL('ColorColumn', s:none, s:color_column) - - " Concealed element: \lambda → λ - call s:HL('Conceal', s:blue, s:none) - - " Line number of CursorLine - call s:HL('CursorLineNr', s:yellow, s:bg1) -endif - -hi! link NonText deusBg2 -hi! link SpecialKey deusBg2 - -call s:HL('Visual', s:none, s:bg3, s:invert_selection) -hi! link VisualNOS Visual - -call s:HL('Search', s:bg0, s:yellow) -call s:HL('IncSearch', s:bg0, s:hls_cursor) - -call s:HL('Underlined', s:blue, s:none, s:underline) - -call s:HL('StatusLine', s:bg4, s:bg0, s:bold . s:inverse) -call s:HL('StatusLineNC', s:bg2, s:fg4, s:bold . s:inverse) - -" The column separating vertically split windows -call s:HL('VertSplit', s:fg4, s:vert_split) - -" Current match in wildmenu completion -call s:HL('WildMenu', s:blue, s:bg2, s:bold) - -" Directory names, special names in listing -hi! link Directory deusGreenBold - -" Titles for output from :set all, :autocmd, etc. -hi! link Title deusGreenBold - -" Error messages on the command line -call s:HL('ErrorMsg', s:vim_bg, s:red, s:bold) -" More prompt: -- More -- -hi! link MoreMsg deusYellowBold -" Current mode message: -- INSERT -- -hi! link ModeMsg deusYellowBold -" 'Press enter' prompt and yes/no questions -hi! link Question deusOrangeBold -" Warning messages -hi! link WarningMsg deusRedBold - -" }}} -" Gutter: {{{ - -" Line number for :number and :# commands -call s:HL('LineNr', s:number_column) - -" Column where signs are displayed -call s:HL('SignColumn', s:none, s:sign_column) - -" Line used for closed folds -call s:HL('Folded', s:gray, s:bg1, s:italic) -" Column where folds are displayed -call s:HL('FoldColumn', s:gray, s:bg1) - -" }}} -" Cursor: {{{ - -" Character under cursor -call s:HL('Cursor', s:none, s:none, s:inverse) -" Visual mode cursor, selection -hi! link vCursor Cursor -" Input moder cursor -hi! link iCursor Cursor -" Language mapping cursor -hi! link lCursor Cursor - -" }}} -" Syntax Highlighting: {{{ - -if g:deus_improved_strings == 0 - hi! link Special deusOrange -else - call s:HL('Special', s:bg1, s:orange, s:italic) -endif - -call s:HL('Comment', s:gray, s:none, s:italicize_comments) -call s:HL('Todo', s:vim_fg, s:vim_bg, s:bold . s:italic) -call s:HL('Error', s:red, s:vim_bg, s:bold . s:inverse) - -" Generic statement -hi! link Statement deusRed -" if, then, else, endif, swicth, etc. -hi! link Conditional deusRed -" for, do, while, etc. -hi! link Repeat deusRed -" case, default, etc. -hi! link Label deusRed -" try, catch, throw -hi! link Exception deusRed -" sizeof, "+", "*", etc. -hi! link Operator Normal -" Any other keyword -hi! link Keyword deusRed - -" Variable name -hi! link Identifier deusBlue -" Function name -hi! link Function deusGreenBold - -" Generic preprocessor -hi! link PreProc deusAqua -" Preprocessor #include -hi! link Include deusAqua -" Preprocessor #define -hi! link Define deusAqua -" Same as Define -hi! link Macro deusAqua -" Preprocessor #if, #else, #endif, etc. -hi! link PreCondit deusAqua - -" Generic constant -hi! link Constant deusPurple -" Character constant: 'c', '/n' -hi! link Character deusPurple -" String constant: "this is a string" -if g:deus_improved_strings == 0 - call s:HL('String', s:green, s:none, s:italicize_strings) -else - call s:HL('String', s:bg1, s:fg1, s:italicize_strings) -endif -" Boolean constant: TRUE, false -hi! link Boolean deusPurple -" Number constant: 234, 0xff -hi! link Number deusPurple -" Floating point constant: 2.3e10 -hi! link Float deusPurple - -" Generic type -hi! link Type deusYellow -" static, register, volatile, etc -hi! link StorageClass deusOrange -" struct, union, enum, etc. -hi! link Structure deusAqua -" typedef -hi! link Typedef deusYellow - -" }}} -" Completion Menu: {{{ - -if version >= 700 - " Popup menu: normal item - call s:HL('Pmenu', s:fg1, s:bg2) - " Popup menu: selected item - call s:HL('PmenuSel', s:bg2, s:blue, s:bold) - " Popup menu: scrollbar - call s:HL('PmenuSbar', s:none, s:bg2) - " Popup menu: scrollbar thumb - call s:HL('PmenuThumb', s:none, s:bg4) -endif - -" }}} -" Diffs: {{{ - -call s:HL('DiffDelete', s:red, s:bg0, s:inverse) -call s:HL('DiffAdd', s:green, s:bg0, s:inverse) -"call s:HL('DiffChange', s:bg0, s:blue) -"call s:HL('DiffText', s:bg0, s:yellow) - -" Alternative setting -call s:HL('DiffChange', s:aqua, s:bg0, s:inverse) -call s:HL('DiffText', s:yellow, s:bg0, s:inverse) - -" }}} -" Spelling: {{{ - -if has("spell") - " Not capitalised word, or compile warnings - if g:deus_improved_warnings == 0 - call s:HL('SpellCap', s:none, s:none, s:undercurl, s:red) - else - call s:HL('SpellCap', s:green, s:none, s:bold . s:italic) - endif - " Not recognized word - call s:HL('SpellBad', s:none, s:none, s:undercurl, s:blue) - " Wrong spelling for selected region - call s:HL('SpellLocal', s:none, s:none, s:undercurl, s:aqua) - " Rare word - call s:HL('SpellRare', s:none, s:none, s:undercurl, s:purple) -endif - -" }}} - -" Plugin specific ------------------------------------------------------------- -" EasyMotion: {{{ - -hi! link EasyMotionTarget Search -hi! link EasyMotionShade Comment - -" }}} -" Sneak: {{{ - -hi! link SneakPluginTarget Search -hi! link SneakStreakTarget Search -call s:HL('SneakStreakMask', s:yellow, s:yellow) -hi! link SneakStreakStatusLine Search - -" }}} -" Indent Guides: {{{ - -if !exists('g:indent_guides_auto_colors') - let g:indent_guides_auto_colors = 0 -endif - -if g:indent_guides_auto_colors == 0 - if g:deus_invert_indent_guides == 0 - call s:HL('IndentGuidesOdd', s:vim_bg, s:bg2) - call s:HL('IndentGuidesEven', s:vim_bg, s:bg1) - else - call s:HL('IndentGuidesOdd', s:vim_bg, s:bg2, s:inverse) - call s:HL('IndentGuidesEven', s:vim_bg, s:bg3, s:inverse) - endif -endif - -" }}} -" IndentLine: {{{ - -if !exists('g:indentLine_color_term') - let g:indentLine_color_term = s:bg2[1] -endif -if !exists('g:indentLine_color_gui') - let g:indentLine_color_gui = s:bg2[0] -endif - -" }}} -" Rainbow Parentheses: {{{ - -if !exists('g:rbpt_colorpairs') - let g:rbpt_colorpairs = - \ [ - \ ['blue', '#458588'], ['magenta', '#b16286'], - \ ['red', '#cc241d'], ['166', '#d65d0e'] - \ ] -endif - -let g:rainbow_guifgs = [ '#d65d0e', '#cc241d', '#b16286', '#458588' ] -let g:rainbow_ctermfgs = [ '166', 'red', 'magenta', 'blue' ] - -if !exists('g:rainbow_conf') - let g:rainbow_conf = {} -endif -if !has_key(g:rainbow_conf, 'guifgs') - let g:rainbow_conf['guifgs'] = g:rainbow_guifgs -endif -if !has_key(g:rainbow_conf, 'ctermfgs') - let g:rainbow_conf['ctermfgs'] = g:rainbow_ctermfgs -endif - -let g:niji_dark_colours = g:rbpt_colorpairs -let g:niji_light_colours = g:rbpt_colorpairs - -"}}} -" GitGutter: {{{ - -hi! link GitGutterAdd deusGreenSign -hi! link GitGutterChange deusAquaSign -hi! link GitGutterDelete deusRedSign -hi! link GitGutterChangeDelete deusAquaSign - -" }}} -" GitCommit: "{{{ - -hi! link gitcommitSelectedFile deusGreen -hi! link gitcommitDiscardedFile deusRed - -" }}} -" Signify: {{{ - -hi! link SignifySignAdd deusGreenSign -hi! link SignifySignChange deusAquaSign -hi! link SignifySignDelete deusRedSign - -" }}} -" Syntastic: {{{ - -call s:HL('SyntasticError', s:none, s:none, s:undercurl, s:red) -call s:HL('SyntasticWarning', s:none, s:none, s:undercurl, s:yellow) - -hi! link SyntasticErrorSign deusRedSign -hi! link SyntasticWarningSign deusYellowSign - -" }}} -" Signature: {{{ -hi! link SignatureMarkText deusBlueSign -hi! link SignatureMarkerText deusPurpleSign - -" }}} -" ShowMarks: {{{ - -hi! link ShowMarksHLl deusBlueSign -hi! link ShowMarksHLu deusBlueSign -hi! link ShowMarksHLo deusBlueSign -hi! link ShowMarksHLm deusBlueSign - -" }}} -" CtrlP: {{{ - -hi! link CtrlPMatch deusYellow -hi! link CtrlPNoEntries deusRed -hi! link CtrlPPrtBase deusBg2 -hi! link CtrlPPrtCursor deusBlue -hi! link CtrlPLinePre deusBg2 - -call s:HL('CtrlPMode1', s:blue, s:bg2, s:bold) -call s:HL('CtrlPMode2', s:bg0, s:blue, s:bold) -call s:HL('CtrlPStats', s:fg4, s:bg2, s:bold) - -" }}} -" Startify: {{{ - -hi! link StartifyBracket deusFg3 -hi! link StartifyFile deusFg0 -hi! link StartifyNumber deusBlue -hi! link StartifyPath deusGray -hi! link StartifySlash deusGray -hi! link StartifySection deusYellow -hi! link StartifySpecial deusBg2 -hi! link StartifyHeader deusOrange -hi! link StartifyFooter deusBg2 - -" }}} -" Vimshell: {{{ - -let g:vimshell_escape_colors = [ - \ s:bg4[0], s:red[0], s:green[0], s:yellow[0], - \ s:blue[0], s:purple[0], s:aqua[0], s:fg4[0], - \ s:bg0[0], s:red[0], s:green[0], s:orange[0], - \ s:blue[0], s:purple[0], s:aqua[0], s:fg0[0] - \ ] - -" }}} -" BufTabLine: {{{ - -call s:HL('BufTabLineCurrent', s:bg0, s:fg4) -call s:HL('BufTabLineActive', s:fg4, s:bg2) -call s:HL('BufTabLineHidden', s:bg4, s:bg1) -call s:HL('BufTabLineFill', s:bg0, s:bg0) - -" }}} - -" Filetype specific ----------------------------------------------------------- -" Diff: {{{ - -hi! link diffAdded deusGreen -hi! link diffRemoved deusRed -hi! link diffChanged deusAqua - -hi! link diffFile deusOrange -hi! link diffNewFile deusYellow - -hi! link diffLine deusBlue - -" }}} -" Html: {{{ - -hi! link htmlTag deusBlue -hi! link htmlEndTag deusBlue - -hi! link htmlTagName deusAquaBold -hi! link htmlArg deusAqua - -hi! link htmlScriptTag deusPurple -hi! link htmlTagN deusFg1 -hi! link htmlSpecialTagName deusAquaBold - -call s:HL('htmlLink', s:fg4, s:none, s:underline) - -hi! link htmlSpecialChar deusOrange - -call s:HL('htmlBold', s:vim_fg, s:vim_bg, s:bold) -call s:HL('htmlBoldUnderline', s:vim_fg, s:vim_bg, s:bold . s:underline) -call s:HL('htmlBoldItalic', s:vim_fg, s:vim_bg, s:bold . s:italic) -call s:HL('htmlBoldUnderlineItalic', s:vim_fg, s:vim_bg, s:bold . s:underline . s:italic) - -call s:HL('htmlUnderline', s:vim_fg, s:vim_bg, s:underline) -call s:HL('htmlUnderlineItalic', s:vim_fg, s:vim_bg, s:underline . s:italic) -call s:HL('htmlItalic', s:vim_fg, s:vim_bg, s:italic) - -" }}} -" Xml: {{{ - -hi! link xmlTag deusBlue -hi! link xmlEndTag deusBlue -hi! link xmlTagName deusBlue -hi! link xmlEqual deusBlue -hi! link docbkKeyword deusAquaBold - -hi! link xmlDocTypeDecl deusGray -hi! link xmlDocTypeKeyword deusPurple -hi! link xmlCdataStart deusGray -hi! link xmlCdataCdata deusPurple -hi! link dtdFunction deusGray -hi! link dtdTagName deusPurple - -hi! link xmlAttrib deusAqua -hi! link xmlProcessingDelim deusGray -hi! link dtdParamEntityPunct deusGray -hi! link dtdParamEntityDPunct deusGray -hi! link xmlAttribPunct deusGray - -hi! link xmlEntity deusOrange -hi! link xmlEntityPunct deusOrange -" }}} -" Vim: {{{ - -call s:HL('vimCommentTitle', s:fg4_256, s:none, s:bold . s:italicize_comments) - -hi! link vimNotation deusOrange -hi! link vimBracket deusOrange -hi! link vimMapModKey deusOrange -hi! link vimFuncSID deusFg3 -hi! link vimSetSep deusFg3 -hi! link vimSep deusFg3 -hi! link vimContinue deusFg3 - -" }}} -" Clojure: {{{ - -hi! link clojureKeyword deusBlue -hi! link clojureCond deusOrange -hi! link clojureSpecial deusOrange -hi! link clojureDefine deusOrange - -hi! link clojureFunc deusYellow -hi! link clojureRepeat deusYellow -hi! link clojureCharacter deusAqua -hi! link clojureStringEscape deusAqua -hi! link clojureException deusRed - -hi! link clojureRegexp deusAqua -hi! link clojureRegexpEscape deusAqua -call s:HL('clojureRegexpCharClass', s:fg3, s:none, s:bold) -hi! link clojureRegexpMod clojureRegexpCharClass -hi! link clojureRegexpQuantifier clojureRegexpCharClass - -hi! link clojureParen deusFg3 -hi! link clojureAnonArg deusYellow -hi! link clojureVariable deusBlue -hi! link clojureMacro deusOrange - -hi! link clojureMeta deusYellow -hi! link clojureDeref deusYellow -hi! link clojureQuote deusYellow -hi! link clojureUnquote deusYellow - -" }}} -" C: {{{ - -hi! link cOperator deusPurple -hi! link cStructure deusOrange - -" }}} -" Python: {{{ - -hi! link pythonBuiltin deusOrange -hi! link pythonBuiltinObj deusOrange -hi! link pythonBuiltinFunc deusOrange -hi! link pythonFunction deusAqua -hi! link pythonDecorator deusRed -hi! link pythonInclude deusBlue -hi! link pythonImport deusBlue -hi! link pythonRun deusBlue -hi! link pythonCoding deusBlue -hi! link pythonOperator deusRed -hi! link pythonExceptions deusPurple -hi! link pythonBoolean deusPurple -hi! link pythonDot deusFg3 - -" }}} -" CSS: {{{ - -hi! link cssBraces deusBlue -hi! link cssFunctionName deusYellow -hi! link cssIdentifier deusOrange -hi! link cssClassName deusGreen -hi! link cssColor deusBlue -hi! link cssSelectorOp deusBlue -hi! link cssSelectorOp2 deusBlue -hi! link cssImportant deusGreen -hi! link cssVendor deusFg1 - -hi! link cssTextProp deusAqua -hi! link cssAnimationProp deusAqua -hi! link cssUIProp deusYellow -hi! link cssTransformProp deusAqua -hi! link cssTransitionProp deusAqua -hi! link cssPrintProp deusAqua -hi! link cssPositioningProp deusYellow -hi! link cssBoxProp deusAqua -hi! link cssFontDescriptorProp deusAqua -hi! link cssFlexibleBoxProp deusAqua -hi! link cssBorderOutlineProp deusAqua -hi! link cssBackgroundProp deusAqua -hi! link cssMarginProp deusAqua -hi! link cssListProp deusAqua -hi! link cssTableProp deusAqua -hi! link cssFontProp deusAqua -hi! link cssPaddingProp deusAqua -hi! link cssDimensionProp deusAqua -hi! link cssRenderProp deusAqua -hi! link cssColorProp deusAqua -hi! link cssGeneratedContentProp deusAqua - -" }}} -" JavaScript: {{{ - -hi! link javaScriptBraces deusFg1 -hi! link javaScriptFunction deusAqua -hi! link javaScriptIdentifier deusRed -hi! link javaScriptMember deusBlue -hi! link javaScriptNumber deusPurple -hi! link javaScriptNull deusPurple -hi! link javaScriptParens deusFg3 - -" }}} -" YAJS: {{{ - -hi! link javascriptImport deusAqua -hi! link javascriptExport deusAqua -hi! link javascriptClassKeyword deusAqua -hi! link javascriptClassExtends deusAqua -hi! link javascriptDefault deusAqua - -hi! link javascriptClassName deusYellow -hi! link javascriptClassSuperName deusYellow -hi! link javascriptGlobal deusYellow - -hi! link javascriptEndColons deusFg1 -hi! link javascriptFuncArg deusFg1 -hi! link javascriptGlobalMethod deusFg1 -hi! link javascriptNodeGlobal deusFg1 - -" hi! link javascriptVariable deusOrange -hi! link javascriptVariable deusPurple -" hi! link javascriptIdentifier deusOrange -" hi! link javascriptClassSuper deusOrange -hi! link javascriptIdentifier deusOrange -hi! link javascriptClassSuper deusOrange - -" hi! link javascriptFuncKeyword deusOrange -" hi! link javascriptAsyncFunc deusOrange -hi! link javascriptFuncKeyword deusAqua -hi! link javascriptAsyncFunc deusAqua -hi! link javascriptClassStatic deusOrange - -hi! link javascriptOperator deusRed -hi! link javascriptForOperator deusRed -hi! link javascriptYield deusRed -hi! link javascriptExceptions deusRed -hi! link javascriptMessage deusRed - -hi! link javascriptTemplateSB deusAqua -hi! link javascriptTemplateSubstitution deusFg1 - -" hi! link javascriptLabel deusBlue -" hi! link javascriptObjectLabel deusBlue -" hi! link javascriptPropertyName deusBlue -hi! link javascriptLabel deusFg1 -hi! link javascriptObjectLabel deusFg1 -hi! link javascriptPropertyName deusFg1 - -hi! link javascriptLogicSymbols deusFg1 -hi! link javascriptArrowFunc deusFg1 - -hi! link javascriptDocParamName deusFg4 -hi! link javascriptDocTags deusFg4 -hi! link javascriptDocNotation deusFg4 -hi! link javascriptDocParamType deusFg4 -hi! link javascriptDocNamedParamType deusFg4 - -" }}} -" CoffeeScript: {{{ - -hi! link coffeeExtendedOp deusFg3 -hi! link coffeeSpecialOp deusFg3 -hi! link coffeeCurly deusOrange -hi! link coffeeParen deusFg3 -hi! link coffeeBracket deusOrange - -" }}} -" Ruby: {{{ - -hi! link rubyStringDelimiter deusGreen -hi! link rubyInterpolationDelimiter deusAqua - -" }}} -" ObjectiveC: {{{ - -hi! link objcTypeModifier deusRed -hi! link objcDirective deusBlue - -" }}} -" Go: {{{ - -hi! link goDirective deusAqua -hi! link goConstants deusPurple -hi! link goDeclaration deusRed -hi! link goDeclType deusBlue -hi! link goBuiltins deusOrange - -" }}} -" Lua: {{{ - -hi! link luaIn deusRed -hi! link luaFunction deusAqua -hi! link luaTable deusOrange - -" }}} -" MoonScript: {{{ - -hi! link moonSpecialOp deusFg3 -hi! link moonExtendedOp deusFg3 -hi! link moonFunction deusFg3 -hi! link moonObject deusYellow - -" }}} -" Java: {{{ - -hi! link javaAnnotation deusBlue -hi! link javaDocTags deusAqua -hi! link javaCommentTitle vimCommentTitle -hi! link javaParen deusFg3 -hi! link javaParen1 deusFg3 -hi! link javaParen2 deusFg3 -hi! link javaParen3 deusFg3 -hi! link javaParen4 deusFg3 -hi! link javaParen5 deusFg3 -hi! link javaOperator deusOrange - -hi! link javaVarArg deusGreen - -" }}} -" Elixir: {{{ - -hi! link elixirDocString Comment - -hi! link elixirStringDelimiter deusGreen -hi! link elixirInterpolationDelimiter deusAqua - -" }}} -" Scala: {{{ - -" NB: scala vim syntax file is kinda horrible -hi! link scalaNameDefinition deusFg1 -hi! link scalaCaseFollowing deusFg1 -hi! link scalaCapitalWord deusFg1 -hi! link scalaTypeExtension deusFg1 - -hi! link scalaKeyword deusRed -hi! link scalaKeywordModifier deusRed - -hi! link scalaSpecial deusAqua -hi! link scalaOperator deusFg1 - -hi! link scalaTypeDeclaration deusYellow -hi! link scalaTypeTypePostDeclaration deusYellow - -hi! link scalaInstanceDeclaration deusFg1 -hi! link scalaInterpolation deusAqua - -" }}} -" Markdown: {{{ - -call s:HL('markdownItalic', s:fg3, s:none, s:italic) - -hi! link markdownH1 deusGreenBold -hi! link markdownH2 deusGreenBold -hi! link markdownH3 deusYellowBold -hi! link markdownH4 deusYellowBold -hi! link markdownH5 deusYellow -hi! link markdownH6 deusYellow - -hi! link markdownCode deusAqua -hi! link markdownCodeBlock deusAqua -hi! link markdownCodeDelimiter deusAqua - -hi! link markdownBlockquote deusGray -hi! link markdownListMarker deusGray -hi! link markdownOrderedListMarker deusGray -hi! link markdownRule deusGray -hi! link markdownHeadingRule deusGray - -hi! link markdownUrlDelimiter deusFg3 -hi! link markdownLinkDelimiter deusFg3 -hi! link markdownLinkTextDelimiter deusFg3 - -hi! link markdownHeadingDelimiter deusOrange -hi! link markdownUrl deusPurple -hi! link markdownUrlTitleDelimiter deusGreen - -call s:HL('markdownLinkText', s:gray, s:none, s:underline) -hi! link markdownIdDeclaration markdownLinkText - -" }}} -" Haskell: {{{ - -" hi! link haskellType deusYellow -" hi! link haskellOperators deusOrange -" hi! link haskellConditional deusAqua -" hi! link haskellLet deusOrange -" -hi! link haskellType deusFg1 -hi! link haskellIdentifier deusFg1 -hi! link haskellSeparator deusFg1 -hi! link haskellDelimiter deusFg4 -hi! link haskellOperators deusBlue -" -hi! link haskellBacktick deusOrange -hi! link haskellStatement deusOrange -hi! link haskellConditional deusOrange - -hi! link haskellLet deusAqua -hi! link haskellDefault deusAqua -hi! link haskellWhere deusAqua -hi! link haskellBottom deusAqua -hi! link haskellBlockKeywords deusAqua -hi! link haskellImportKeywords deusAqua -hi! link haskellDeclKeyword deusAqua -hi! link haskellDeriving deusAqua -hi! link haskellAssocType deusAqua - -hi! link haskellNumber deusPurple -hi! link haskellPragma deusPurple - -hi! link haskellString deusGreen -hi! link haskellChar deusGreen - -" }}} -" Json: {{{ - -hi! link jsonKeyword deusGreen -hi! link jsonQuote deusGreen -hi! link jsonBraces deusFg1 -hi! link jsonString deusFg1 - -" }}} - - -" Functions ------------------------------------------------------------------- -" Search Highlighting Cursor {{{ - -function! DeusHlsShowCursor() - call s:HL('Cursor', s:bg0, s:hls_cursor) -endfunction - -function! DeusHlsHideCursor() - call s:HL('Cursor', s:none, s:none, s:inverse) -endfunction - -" }}} - -" vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker: diff --git a/vim/colors/garden.vim b/vim/colors/garden.vim deleted file mode 100644 index 3f55409..0000000 --- a/vim/colors/garden.vim +++ /dev/null @@ -1,97 +0,0 @@ -" Vim color file -" Name: Garden -" Date: Thursday, June 15, 2017 -" Author: Jak Wings -" Credits: Thanks to http://bytefluent.com/vivify/ - -set background=light - -if version > 580 - hi clear - if exists('syntax_on') - syntax reset - endif -endif - -let g:colors_name = 'garden' - -hi Boolean guifg=#00005f guibg=NONE guisp=NONE gui=NONE ctermfg=17 ctermbg=NONE cterm=NONE -hi Character guifg=#00005f guibg=NONE guisp=NONE gui=NONE ctermfg=17 ctermbg=NONE cterm=NONE -hi ColorColumn guifg=#080808 guibg=#eeeeee guisp=NONE gui=NONE ctermfg=232 ctermbg=255 cterm=NONE -hi Comment guifg=#b2b2b2 guibg=NONE guisp=NONE gui=NONE ctermfg=249 ctermbg=NONE cterm=NONE -hi Conceal guifg=#0000af guibg=NONE guisp=NONE gui=NONE ctermfg=19 ctermbg=NONE cterm=NONE -hi Conditional guifg=#d70000 guibg=NONE guisp=NONE gui=NONE ctermfg=160 ctermbg=NONE cterm=NONE -hi Constant guifg=#00005f guibg=NONE guisp=NONE gui=NONE ctermfg=17 ctermbg=NONE cterm=NONE -hi Cursor guifg=#ffffff guibg=#af5fff guisp=#af5fff gui=NONE ctermfg=231 ctermbg=135 cterm=NONE -hi CursorColumn guifg=#080808 guibg=#eeeeee guisp=NONE gui=NONE ctermfg=232 ctermbg=255 cterm=NONE -hi CursorLine guifg=#080808 guibg=#eeeeee guisp=NONE gui=NONE ctermfg=232 ctermbg=255 cterm=NONE -hi CursorLineNr guifg=#080808 guibg=#eeeeee guisp=NONE gui=NONE ctermfg=232 ctermbg=255 cterm=NONE -hi Debug guifg=#870000 guibg=NONE guisp=NONE gui=NONE ctermfg=88 ctermbg=NONE cterm=NONE -hi Define guifg=#875f00 guibg=NONE guisp=NONE gui=NONE ctermfg=94 ctermbg=NONE cterm=NONE -hi Delimiter guifg=#870000 guibg=NONE guisp=NONE gui=NONE ctermfg=88 ctermbg=NONE cterm=NONE -hi DiffAdd guifg=#ffffff guibg=#5faf5f guisp=#5faf5f gui=NONE ctermfg=231 ctermbg=71 cterm=NONE -hi DiffChange guifg=#3a3a3a guibg=#d7d787 guisp=#d7d787 gui=NONE ctermfg=237 ctermbg=186 cterm=NONE -hi DiffDelete guifg=#ffffff guibg=#ff8787 guisp=#ff8787 gui=NONE ctermfg=231 ctermbg=210 cterm=NONE -hi DiffText guifg=#080808 guibg=#d7d787 guisp=#d7d787 gui=bold ctermfg=232 ctermbg=186 cterm=bold -hi Directory guifg=#875f00 guibg=NONE guisp=NONE gui=NONE ctermfg=94 ctermbg=NONE cterm=NONE -hi EndOfBuffer guifg=#e4e4e4 guibg=NONE guisp=NONE gui=NONE ctermfg=254 ctermbg=NONE cterm=NONE -hi Error guifg=#ffffff guibg=#af0000 guisp=NONE gui=NONE ctermfg=231 ctermbg=124 cterm=NONE -hi ErrorMsg guifg=#af0000 guibg=NONE guisp=NONE gui=NONE ctermfg=124 ctermbg=NONE cterm=NONE -hi Exception guifg=#d70000 guibg=NONE guisp=NONE gui=NONE ctermfg=160 ctermbg=NONE cterm=NONE -hi Float guifg=#00005f guibg=NONE guisp=NONE gui=NONE ctermfg=17 ctermbg=NONE cterm=NONE -hi FoldColumn guifg=#585858 guibg=#eeeeee guisp=NONE gui=NONE ctermfg=240 ctermbg=255 cterm=NONE -hi Folded guifg=#585858 guibg=NONE guisp=NONE gui=NONE ctermfg=240 ctermbg=NONE cterm=NONE -hi Function guifg=#005f00 guibg=NONE guisp=NONE gui=NONE ctermfg=22 ctermbg=NONE cterm=NONE -hi Identifier guifg=#5f8700 guibg=NONE guisp=NONE gui=NONE ctermfg=64 ctermbg=NONE cterm=NONE -hi Ignore guifg=NONE guibg=NONE guisp=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE -hi IncSearch guifg=#1c1c1c guibg=#ffffaf guisp=#ffffaf gui=NONE ctermfg=234 ctermbg=229 cterm=NONE -hi Include guifg=#875f00 guibg=NONE guisp=NONE gui=NONE ctermfg=94 ctermbg=NONE cterm=NONE -hi Keyword guifg=#d70000 guibg=NONE guisp=NONE gui=NONE ctermfg=160 ctermbg=NONE cterm=NONE -hi Label guifg=#d70000 guibg=NONE guisp=NONE gui=NONE ctermfg=160 ctermbg=NONE cterm=NONE -hi LineNr guifg=#e4e4e4 guibg=NONE guisp=NONE gui=NONE ctermfg=254 ctermbg=NONE cterm=NONE -hi Macro guifg=#875f00 guibg=NONE guisp=NONE gui=NONE ctermfg=94 ctermbg=NONE cterm=NONE -hi MatchParen guifg=#af0000 guibg=#afd75f guisp=#afd75f gui=bold ctermfg=124 ctermbg=149 cterm=bold -hi ModeMsg guifg=#0000af guibg=NONE guisp=NONE gui=NONE ctermfg=19 ctermbg=NONE cterm=NONE -hi MoreMsg guifg=#5f0000 guibg=NONE guisp=NONE gui=NONE ctermfg=52 ctermbg=NONE cterm=NONE -hi NonText guifg=#e4e4e4 guibg=NONE guisp=NONE gui=NONE ctermfg=254 ctermbg=NONE cterm=NONE -hi Normal guifg=#080808 guibg=#ffffff guisp=NONE gui=NONE ctermfg=232 ctermbg=231 cterm=NONE -hi Number guifg=#00005f guibg=NONE guisp=NONE gui=NONE ctermfg=17 ctermbg=NONE cterm=NONE -hi Operator guifg=#d70000 guibg=NONE guisp=NONE gui=NONE ctermfg=160 ctermbg=NONE cterm=NONE -hi Pmenu guifg=#080808 guibg=#ffffd7 guisp=NONE gui=NONE ctermfg=232 ctermbg=230 cterm=NONE -hi PmenuSbar guifg=NONE guibg=#eeeeee guisp=NONE gui=NONE ctermfg=NONE ctermbg=255 cterm=NONE -hi PmenuSel guifg=#af0000 guibg=#d7d7af guisp=NONE gui=NONE ctermfg=124 ctermbg=187 cterm=NONE -hi PmenuThumb guifg=NONE guibg=#afaf87 guisp=NONE gui=NONE ctermfg=NONE ctermbg=144 cterm=NONE -hi PreCondit guifg=#875f00 guibg=NONE guisp=NONE gui=NONE ctermfg=94 ctermbg=NONE cterm=NONE -hi PreProc guifg=#875f00 guibg=NONE guisp=NONE gui=NONE ctermfg=94 ctermbg=NONE cterm=NONE -hi Question guifg=NONE guibg=NONE guisp=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=bold -hi Repeat guifg=#d70000 guibg=NONE guisp=NONE gui=NONE ctermfg=160 ctermbg=NONE cterm=NONE -hi Search guifg=#444444 guibg=#ffffd7 guisp=#ffffd7 gui=NONE ctermfg=238 ctermbg=230 cterm=NONE -hi SignColumn guifg=#585858 guibg=#eeeeee guisp=NONE gui=NONE ctermfg=240 ctermbg=255 cterm=NONE -hi Special guifg=#870000 guibg=NONE guisp=NONE gui=NONE ctermfg=88 ctermbg=NONE cterm=NONE -hi SpecialChar guifg=#870000 guibg=NONE guisp=NONE gui=NONE ctermfg=88 ctermbg=NONE cterm=NONE -hi SpecialComment guifg=#870000 guibg=NONE guisp=NONE gui=NONE ctermfg=88 ctermbg=NONE cterm=NONE -hi SpecialKey guifg=#005fff guibg=NONE guisp=NONE gui=NONE ctermfg=27 ctermbg=NONE cterm=NONE -hi SpellBad guifg=NONE guibg=NONE guisp=#ff0000 gui=undercurl ctermfg=196 ctermbg=189 cterm=underline -hi SpellCap guifg=NONE guibg=NONE guisp=#005fff gui=undercurl ctermfg=27 ctermbg=189 cterm=underline -hi SpellLocal guifg=NONE guibg=NONE guisp=#d78700 gui=undercurl ctermfg=167 ctermbg=189 cterm=underline -hi SpellRare guifg=NONE guibg=NONE guisp=#9e9e9e gui=undercurl ctermfg=247 ctermbg=189 cterm=underline -hi Statement guifg=#d70000 guibg=NONE guisp=NONE gui=NONE ctermfg=160 ctermbg=NONE cterm=NONE -hi StatusLine guifg=#eeeeee guibg=#808080 guisp=NONE gui=NONE ctermfg=255 ctermbg=244 cterm=NONE -hi StatusLineNC guifg=#c6c6c6 guibg=#808080 guisp=NONE gui=NONE ctermfg=251 ctermbg=244 cterm=NONE -hi StorageClass guifg=#5f0000 guibg=NONE guisp=NONE gui=NONE ctermfg=52 ctermbg=NONE cterm=NONE -hi String guifg=#00005f guibg=NONE guisp=NONE gui=NONE ctermfg=17 ctermbg=NONE cterm=NONE -hi Structure guifg=#5f0000 guibg=NONE guisp=NONE gui=NONE ctermfg=52 ctermbg=NONE cterm=NONE -hi TabLine guifg=#262626 guibg=#af875f guisp=NONE gui=NONE ctermfg=235 ctermbg=137 cterm=NONE -hi TabLineFill guifg=NONE guibg=#af875f guisp=NONE gui=NONE ctermfg=NONE ctermbg=137 cterm=NONE -hi TabLineSel guifg=#eeeeee guibg=#af875f guisp=NONE gui=bold ctermfg=255 ctermbg=137 cterm=bold -hi Tag guifg=#870000 guibg=NONE guisp=NONE gui=NONE ctermfg=88 ctermbg=NONE cterm=NONE -hi Title guifg=NONE guibg=NONE guisp=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=bold -hi Todo guifg=#ffffff guibg=#ffaf00 guisp=NONE gui=NONE ctermfg=231 ctermbg=214 cterm=NONE -hi Type guifg=#5f0000 guibg=NONE guisp=NONE gui=NONE ctermfg=52 ctermbg=NONE cterm=NONE -hi Typedef guifg=#5f0000 guibg=NONE guisp=NONE gui=NONE ctermfg=52 ctermbg=NONE cterm=NONE -hi Underlined guifg=NONE guibg=NONE guisp=NONE gui=underline ctermfg=NONE ctermbg=NONE cterm=underline -hi VertSplit guifg=#c6c6c6 guibg=#808080 guisp=NONE gui=NONE ctermfg=244 ctermbg=244 cterm=NONE -hi Visual guifg=#080808 guibg=#ffffaf guisp=#ffffaf gui=NONE ctermfg=232 ctermbg=229 cterm=NONE -hi VisualNOS guifg=#080808 guibg=#d7d7af guisp=#d7d7af gui=NONE ctermfg=232 ctermbg=187 cterm=NONE -hi WarningMsg guifg=#ff5f00 guibg=NONE guisp=NONE gui=NONE ctermfg=202 ctermbg=NONE cterm=NONE -hi WildMenu guifg=#afd700 guibg=#808080 guisp=NONE gui=NONE ctermfg=148 ctermbg=244 cterm=NONE diff --git a/vim/colors/greygull.vim b/vim/colors/greygull.vim deleted file mode 100644 index 5d5cfa6..0000000 --- a/vim/colors/greygull.vim +++ /dev/null @@ -1,315 +0,0 @@ -hi clear - -if exists('syntax_on') - syntax reset -endif - -let colors_name = 'greygull' - -hi Normal cterm=NONE ctermfg=11 ctermbg=15 guifg=#6d767d guibg=#ffffff gui=NONE - -set background=light - -hi ColorColumn cterm=NONE ctermbg=7 guibg=#e6eaed gui=NONE -hi Comment cterm=NONE ctermfg=14 guifg=#808487 gui=italic -hi ConId cterm=NONE ctermfg=3 guifg=#ad9142 gui=NONE -hi Conceal cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi Constant cterm=NONE ctermfg=6 guifg=#3fa2a6 gui=NONE -hi Cursor cterm=NONE ctermfg=15 ctermbg=15 guifg=#ffffff guibg=#808487 gui=NONE -hi CursorColumn cterm=NONE ctermbg=7 guibg=#e6eaed gui=NONE -hi CursorLine cterm=NONE ctermbg=7 guibg=#e6eaed guisp=#61707a gui=NONE -hi CursorLineNr cterm=NONE ctermfg=11 gui=bold guifg=#6d767d -hi DiffAdd cterm=NONE ctermfg=2 ctermbg=7 gui=NONE guifg=#4aa840 guibg=#e6eaed guisp=#4aa840 gui=NONE -hi DiffChange cterm=NONE ctermfg=3 ctermbg=7 gui=NONE guifg=#ad9142 guibg=#e6eaed guisp=#ad9142 gui=NONE -hi DiffDelete cterm=NONE ctermfg=1 ctermbg=7 gui=NONE guifg=#db7681 guibg=#e6eaed gui=NONE -hi DiffText cterm=NONE ctermfg=4 ctermbg=7 gui=NONE guifg=#4e9bcf guibg=#e6eaed guisp=#4e9bcf gui=NONE -hi Directory cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi Error cterm=NONE ctermfg=1 ctermbg=NONE guifg=#db7681 guibg=#ffffff gui=NONE -hi ErrorMsg cterm=reverse ctermfg=1 ctermbg=NONE guifg=#db7681 guibg=NONE gui=reverse -hi FoldColumn cterm=NONE ctermfg=11 ctermbg=7 guifg=#6d767d guibg=#e6eaed gui=NONE -hi Folded cterm=NONE,underline ctermfg=11 ctermbg=7 guifg=#6d767d guibg=#e6eaed guisp=#ffffff gui=NONE -hi HelpExample cterm=NONE ctermfg=10 guifg=#61707a gui=NONE -hi Identifier cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi IncSearch cterm=standout ctermfg=9 gui=standout guifg=#d1814f -hi LineNr cterm=NONE ctermfg=14 ctermbg=7 guifg=#808487 guibg=#e6eaed gui=NONE -hi MatchParen cterm=NONE ctermfg=1 ctermbg=14 gui=NONE guifg=#db7681 guibg=#808487 gui=NONE -hi ModeMsg cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi MoreMsg cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi NonText cterm=NONE ctermfg=12 gui=NONE guifg=#787e82 gui=NONE -hi Pmenu cterm=reverse ctermfg=11 ctermbg=7 guifg=#6d767d guibg=#e6eaed gui=reverse -hi PmenuSbar cterm=reverse ctermfg=0 ctermbg=11 guifg=#1d252b guibg=#6d767d gui=reverse -hi PmenuSel cterm=reverse ctermfg=14 ctermbg=0 guifg=#808487 guibg=#1d252b gui=reverse -hi PmenuThumb cterm=reverse ctermfg=11 ctermbg=15 guifg=#6d767d guibg=#ffffff gui=reverse -hi PreProc cterm=NONE ctermfg=9 guifg=#d1814f gui=NONE -hi Question cterm=NONE ctermfg=6 gui=NONE guifg=#3fa2a6 gui=NONE -hi Search cterm=reverse ctermfg=3 ctermbg=NONE guifg=#ad9142 guibg=NONE gui=reverse -hi SignColumn cterm=NONE ctermfg=11 ctermbg=NONE guifg=#6d767d guibg=NONE gui=NONE -hi Special cterm=NONE ctermfg=1 guifg=#db7681 gui=NONE -hi SpecialKey cterm=NONE ctermfg=12 ctermbg=7 gui=NONE guifg=#787e82 guibg=#e6eaed gui=NONE -hi SpellBad cterm=undercurl ctermfg=NONE ctermbg=NONE gui=undercurl guisp=#db7681 -hi SpellCap cterm=undercurl ctermfg=NONE ctermbg=NONE gui=undercurl guisp=#a783de -hi SpellLocal cterm=undercurl ctermfg=NONE ctermbg=NONE gui=undercurl guisp=#ad9142 -hi SpellRare cterm=undercurl ctermfg=NONE ctermbg=NONE gui=undercurl guisp=#3fa2a6 -hi Statement cterm=NONE ctermfg=2 guifg=#4aa840 gui=NONE -hi StatusLine cterm=reverse ctermfg=14 ctermbg=15 gui=reverse guifg=#808487 guibg=#ffffff guibg=NONE -hi StatusLineNC cterm=reverse ctermfg=12 ctermbg=7 gui=reverse guifg=#787e82 guibg=#e6eaed guibg=NONE -hi TabLine cterm=underline ctermfg=11 ctermbg=7 gui=underline guifg=#6d767d guibg=#e6eaed guisp=#6d767d -hi TabLineFill cterm=underline ctermfg=11 ctermbg=7 gui=underline guifg=#6d767d guibg=#e6eaed guisp=#6d767d -hi TabLineSel cterm=underline,reverse ctermfg=14 ctermbg=0 gui=underline,reverse guifg=#808487 guibg=#1d252b guisp=#6d767d -hi Title cterm=NONE ctermfg=9 guifg=#d1814f gui=NONE -hi Todo cterm=NONE ctermfg=5 guifg=#cf7a9d guibg=NONE gui=bold -hi Type cterm=NONE ctermfg=3 guifg=#ad9142 gui=NONE -hi Underlined cterm=NONE ctermfg=13 guifg=#a783de gui=NONE -hi VarId cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi VertSplit cterm=NONE ctermfg=12 ctermbg=12 guifg=#787e82 guibg=#787e82 gui=NONE -hi Visual cterm=reverse ctermfg=14 ctermbg=15 gui=reverse guifg=#808487 guibg=#ffffff guibg=NONE -hi VisualNOS cterm=reverse ctermbg=7 gui=reverse guibg=#e6eaed guibg=NONE -hi WarningMsg cterm=NONE ctermfg=9 gui=NONE guifg=#db7681 gui=NONE -hi WildMenu cterm=reverse ctermfg=0 ctermbg=7 guifg=#1d252b guibg=#e6eaed gui=reverse -hi cPreCondit cterm=NONE ctermfg=9 guifg=#d1814f gui=NONE -hi gitcommitBranch cterm=NONE ctermfg=5 gui=NONE guifg=#cf7a9d gui=NONE -hi gitcommitComment cterm=NONE ctermfg=14 gui=italic guifg=#808487 gui=NONE -hi gitcommitDiscardedFile cterm=NONE ctermfg=1 gui=NONE guifg=#db7681 gui=NONE -hi gitcommitDiscardedType cterm=NONE ctermfg=1 guifg=#db7681 gui=NONE -hi gitcommitFile cterm=NONE ctermfg=11 gui=NONE guifg=#6d767d gui=NONE -hi gitcommitHeader cterm=NONE ctermfg=14 guifg=#808487 gui=NONE -hi gitcommitOnBranch cterm=NONE ctermfg=14 gui=NONE guifg=#808487 gui=NONE -hi gitcommitSelectedFile cterm=NONE ctermfg=2 gui=NONE guifg=#4aa840 gui=NONE -hi gitcommitSelectedType cterm=NONE ctermfg=2 guifg=#4aa840 gui=NONE -hi gitcommitUnmerged cterm=NONE ctermfg=2 gui=NONE guifg=#4aa840 gui=NONE -hi gitcommitUnmergedFile cterm=NONE ctermfg=3 gui=NONE guifg=#ad9142 gui=NONE -hi gitcommitUntrackedFile cterm=NONE ctermfg=6 gui=NONE guifg=#3fa2a6 gui=NONE -hi helpHyperTextEntry cterm=NONE ctermfg=2 guifg=#4aa840 gui=NONE -hi helpHyperTextJump cterm=underline ctermfg=4 gui=underline guifg=#4e9bcf -hi helpNote cterm=NONE ctermfg=5 guifg=#cf7a9d gui=NONE -hi helpOption cterm=NONE ctermfg=6 guifg=#3fa2a6 gui=NONE -hi helpVim cterm=NONE ctermfg=5 guifg=#cf7a9d gui=NONE -hi hsImport cterm=NONE ctermfg=5 guifg=#cf7a9d gui=NONE -hi hsImportLabel cterm=NONE ctermfg=6 guifg=#3fa2a6 gui=NONE -hi hsModuleName cterm=underline ctermfg=2 gui=underline guifg=#4aa840 -hi hsNiceOperator cterm=NONE ctermfg=6 guifg=#3fa2a6 gui=NONE -hi hsStatement cterm=NONE ctermfg=6 guifg=#3fa2a6 gui=NONE -hi hsString cterm=NONE ctermfg=12 guifg=#787e82 gui=NONE -hi hsStructure cterm=NONE ctermfg=6 guifg=#3fa2a6 gui=NONE -hi hsType cterm=NONE ctermfg=3 guifg=#ad9142 gui=NONE -hi hsTypedef cterm=NONE ctermfg=6 guifg=#3fa2a6 gui=NONE -hi hsVarSym cterm=NONE ctermfg=6 guifg=#3fa2a6 gui=NONE -hi hs_DeclareFunction cterm=NONE ctermfg=9 guifg=#d1814f gui=NONE -hi hs_OpFunctionName cterm=NONE ctermfg=3 guifg=#ad9142 gui=NONE -hi hs_hlFunctionName cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi htmlArg cterm=NONE ctermfg=12 guifg=#787e82 gui=NONE -hi htmlEndTag cterm=NONE ctermfg=14 guifg=#808487 gui=NONE -hi htmlSpecialTagName cterm=NONE ctermfg=4 gui=italic guifg=#4e9bcf gui=NONE -hi htmlTag cterm=NONE ctermfg=14 guifg=#808487 gui=NONE -hi htmlTagN cterm=NONE ctermfg=10 gui=NONE guifg=#61707a gui=NONE -hi htmlTagName cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi javaScript cterm=NONE ctermfg=3 guifg=#ad9142 gui=NONE -hi pandocBlockQuote cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi pandocBlockQuoteLeader1 cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi pandocBlockQuoteLeader2 cterm=NONE ctermfg=6 guifg=#3fa2a6 gui=NONE -hi pandocBlockQuoteLeader3 cterm=NONE ctermfg=3 guifg=#ad9142 gui=NONE -hi pandocBlockQuoteLeader4 cterm=NONE ctermfg=1 guifg=#db7681 gui=NONE -hi pandocBlockQuoteLeader5 cterm=NONE ctermfg=11 guifg=#6d767d gui=NONE -hi pandocBlockQuoteLeader6 cterm=NONE ctermfg=14 guifg=#808487 gui=NONE -hi pandocCitation cterm=NONE ctermfg=5 guifg=#cf7a9d gui=NONE -hi pandocCitationDelim cterm=NONE ctermfg=5 guifg=#cf7a9d gui=NONE -hi pandocCitationID cterm=underline ctermfg=5 gui=underline guifg=#cf7a9d -hi pandocCitationRef cterm=NONE ctermfg=5 guifg=#cf7a9d gui=NONE -hi pandocComment cterm=NONE ctermfg=14 gui=italic guifg=#808487 gui=NONE -hi pandocDefinitionBlock cterm=NONE ctermfg=13 guifg=#a783de gui=NONE -hi pandocDefinitionIndctr cterm=NONE ctermfg=13 gui=NONE guifg=#a783de gui=NONE -hi pandocDefinitionTerm cterm=standout ctermfg=13 gui=standout guifg=#a783de -hi pandocEmphasis cterm=NONE ctermfg=11 gui=italic guifg=#6d767d gui=NONE -hi pandocEmphasisDefinition cterm=NONE ctermfg=13 gui=italic guifg=#a783de gui=NONE -hi pandocEmphasisHeading cterm=NONE ctermfg=9 gui=NONE guifg=#d1814f gui=NONE -hi pandocEmphasisNested cterm=NONE ctermfg=11 gui=NONE guifg=#6d767d gui=NONE -hi pandocEmphasisNestedDefinition cterm=NONE ctermfg=13 gui=NONE guifg=#a783de gui=NONE -hi pandocEmphasisNestedHeading cterm=NONE ctermfg=9 gui=NONE guifg=#d1814f gui=NONE -hi pandocEmphasisNestedTable cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi pandocEmphasisTable cterm=NONE ctermfg=4 gui=italic guifg=#4e9bcf gui=NONE -hi pandocEscapePair cterm=NONE ctermfg=1 gui=NONE guifg=#db7681 gui=NONE -hi pandocFootnote cterm=NONE ctermfg=2 guifg=#4aa840 gui=NONE -hi pandocFootnoteDefLink cterm=NONE ctermfg=2 gui=NONE guifg=#4aa840 gui=NONE -hi pandocFootnoteInline cterm=NONE,underline ctermfg=2 gui=NONE,underline guifg=#4aa840 gui=NONE -hi pandocFootnoteLink cterm=underline ctermfg=2 gui=underline guifg=#4aa840 -hi pandocHeading cterm=NONE ctermfg=9 gui=NONE guifg=#d1814f gui=NONE -hi pandocHeadingMarker cterm=NONE ctermfg=3 gui=NONE guifg=#ad9142 gui=NONE -hi pandocImageCaption cterm=NONE,underline ctermfg=13 gui=NONE,underline guifg=#a783de gui=NONE -hi pandocLinkDefinition cterm=underline ctermfg=6 gui=underline guifg=#3fa2a6 guisp=#787e82 -hi pandocLinkDefinitionID cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi pandocLinkDelim cterm=NONE ctermfg=14 guifg=#808487 gui=NONE -hi pandocLinkLabel cterm=underline ctermfg=4 gui=underline guifg=#4e9bcf -hi pandocLinkText cterm=NONE,underline ctermfg=4 gui=NONE,underline guifg=#4e9bcf gui=NONE -hi pandocLinkTitle cterm=underline ctermfg=12 gui=underline guifg=#787e82 -hi pandocLinkTitleDelim cterm=underline ctermfg=14 gui=underline guifg=#808487 guisp=#787e82 -hi pandocLinkURL cterm=underline ctermfg=12 gui=underline guifg=#787e82 -hi pandocListMarker cterm=NONE ctermfg=5 guifg=#cf7a9d gui=NONE -hi pandocListReference cterm=underline ctermfg=5 gui=underline guifg=#cf7a9d -hi pandocMetadata cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi pandocMetadataDelim cterm=NONE ctermfg=14 guifg=#808487 gui=NONE -hi pandocMetadataKey cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi pandocNonBreakingSpace cterm=reverse ctermfg=1 ctermbg=NONE gui=reverse guifg=#db7681 guibg=NONE -hi pandocRule cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi pandocRuleLine cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi pandocStrikeout cterm=reverse ctermfg=14 ctermbg=NONE gui=reverse guifg=#808487 guibg=NONE -hi pandocStrikeoutDefinition cterm=reverse ctermfg=13 ctermbg=NONE gui=reverse guifg=#a783de guibg=NONE -hi pandocStrikeoutHeading cterm=reverse ctermfg=9 ctermbg=NONE gui=reverse guifg=#d1814f guibg=NONE -hi pandocStrikeoutTable cterm=reverse ctermfg=4 ctermbg=NONE gui=reverse guifg=#4e9bcf guibg=NONE -hi pandocStrongEmphasis cterm=NONE ctermfg=11 gui=NONE guifg=#6d767d gui=NONE -hi pandocStrongEmphasisDefinition cterm=NONE ctermfg=13 gui=NONE guifg=#a783de gui=NONE -hi pandocStrongEmphasisEmphasis cterm=NONE ctermfg=11 gui=NONE guifg=#6d767d gui=NONE -hi pandocStrongEmphasisEmphasisDefinition cterm=NONE ctermfg=13 gui=NONE guifg=#a783de gui=NONE -hi pandocStrongEmphasisEmphasisHeading cterm=NONE ctermfg=9 gui=NONE guifg=#d1814f gui=NONE -hi pandocStrongEmphasisEmphasisTable cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi pandocStrongEmphasisHeading cterm=NONE ctermfg=9 gui=NONE guifg=#d1814f gui=NONE -hi pandocStrongEmphasisNested cterm=NONE ctermfg=11 gui=NONE guifg=#6d767d gui=NONE -hi pandocStrongEmphasisNestedDefinition cterm=NONE ctermfg=13 gui=NONE guifg=#a783de gui=NONE -hi pandocStrongEmphasisNestedHeading cterm=NONE ctermfg=9 gui=NONE guifg=#d1814f gui=NONE -hi pandocStrongEmphasisNestedTable cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi pandocStrongEmphasisTable cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi pandocStyleDelim cterm=NONE ctermfg=14 guifg=#808487 gui=NONE -hi pandocSubscript cterm=NONE ctermfg=13 guifg=#a783de gui=NONE -hi pandocSubscriptDefinition cterm=NONE ctermfg=13 guifg=#a783de gui=NONE -hi pandocSubscriptHeading cterm=NONE ctermfg=9 gui=NONE guifg=#d1814f gui=NONE -hi pandocSubscriptTable cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi pandocSuperscript cterm=NONE ctermfg=13 guifg=#a783de gui=NONE -hi pandocSuperscriptDefinition cterm=NONE ctermfg=13 guifg=#a783de gui=NONE -hi pandocSuperscriptHeading cterm=NONE ctermfg=9 gui=NONE guifg=#d1814f gui=NONE -hi pandocSuperscriptTable cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi pandocTable cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi pandocTableStructure cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi pandocTableZebraDark cterm=NONE ctermfg=4 ctermbg=7 guifg=#4e9bcf guibg=#e6eaed gui=NONE -hi pandocTableZebraLight cterm=NONE ctermfg=4 ctermbg=15 guifg=#4e9bcf guibg=#ffffff gui=NONE -hi pandocTitleBlock cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi pandocTitleBlockTitle cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi pandocTitleComment cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi pandocVerbatimBlock cterm=NONE ctermfg=3 guifg=#ad9142 gui=NONE -hi pandocVerbatimInline cterm=NONE ctermfg=3 guifg=#ad9142 gui=NONE -hi pandocVerbatimInlineDefinition cterm=NONE ctermfg=13 guifg=#a783de gui=NONE -hi pandocVerbatimInlineHeading cterm=NONE ctermfg=9 gui=NONE guifg=#d1814f gui=NONE -hi pandocVerbatimInlineTable cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi perlHereDoc cterm=NONE ctermfg=10 ctermbg=15 guifg=#61707a guibg=#ffffff gui=NONE -hi perlStatementFileDesc cterm=NONE ctermfg=6 ctermbg=15 guifg=#3fa2a6 guibg=#ffffff gui=NONE -hi perlVarPlain cterm=NONE ctermfg=3 ctermbg=15 guifg=#ad9142 guibg=#ffffff gui=NONE -hi rubyDefine cterm=NONE ctermfg=10 ctermbg=15 gui=NONE guifg=#61707a guibg=#ffffff gui=NONE -hi texMathMatcher cterm=NONE ctermfg=3 ctermbg=15 guifg=#ad9142 guibg=#ffffff gui=NONE -hi texMathZoneX cterm=NONE ctermfg=3 ctermbg=15 guifg=#ad9142 guibg=#ffffff gui=NONE -hi texRefLabel cterm=NONE ctermfg=3 ctermbg=15 guifg=#ad9142 guibg=#ffffff gui=NONE -hi texStatement cterm=NONE ctermfg=6 ctermbg=15 guifg=#3fa2a6 guibg=#ffffff gui=NONE -hi vimCmdSep cterm=NONE ctermfg=4 gui=NONE guifg=#4e9bcf gui=NONE -hi vimCommand cterm=NONE ctermfg=3 guifg=#ad9142 gui=NONE -hi vimCommentString cterm=NONE ctermfg=13 guifg=#a783de gui=NONE -hi vimGroup cterm=NONE,underline ctermfg=4 gui=NONE,underline guifg=#4e9bcf gui=NONE -hi vimHiGroup cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi vimHiLink cterm=NONE ctermfg=4 guifg=#4e9bcf gui=NONE -hi vimIsCommand cterm=NONE ctermfg=12 guifg=#787e82 gui=NONE -hi vimSynMtchOpt cterm=NONE ctermfg=3 guifg=#ad9142 gui=NONE -hi vimSynType cterm=NONE ctermfg=6 guifg=#3fa2a6 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 = '#e6eaed' - let g:terminal_color_1 = '#db7681' - let g:terminal_color_2 = '#4aa840' - let g:terminal_color_3 = '#ad9142' - let g:terminal_color_4 = '#4e9bcf' - let g:terminal_color_5 = '#cf7a9d' - let g:terminal_color_6 = '#3fa2a6' - let g:terminal_color_7 = '#1d252b' - let g:terminal_color_8 = '#ffffff' - let g:terminal_color_9 = '#d1814f' - let g:terminal_color_10 = '#808487' - let g:terminal_color_11 = '#787e82' - let g:terminal_color_12 = '#6d767d' - let g:terminal_color_13 = '#a783de' - let g:terminal_color_14 = '#61707a' - let g:terminal_color_15 = '#0b141a' -endif - -" This colour scheme was generated by modifying the 'flattened_light' 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). diff --git a/vim/colors/gruvbox.vim b/vim/colors/gruvbox.vim deleted file mode 100644 index ebc9eff..0000000 --- a/vim/colors/gruvbox.vim +++ /dev/null @@ -1,1239 +0,0 @@ -" ----------------------------------------------------------------------------- -" File: gruvbox.vim -" Description: Retro groove color scheme for Vim -" Author: morhetz -" Source: https://github.com/morhetz/gruvbox -" Last Modified: 04 Sep 2015 -" ----------------------------------------------------------------------------- - -" Supporting code ------------------------------------------------------------- -" Initialisation: {{{ - -if version > 580 - hi clear - if exists("syntax_on") - syntax reset - endif -endif - -let g:colors_name='gruvbox' - -if !has('gui_running') && &t_Co != 256 - finish -endif - -" }}} -" Global Settings: {{{ - -if !exists('g:gruvbox_bold') - let g:gruvbox_bold=1 -endif -if !exists('g:gruvbox_italic') - if has('gui_running') || $TERM_ITALICS == 'true' - let g:gruvbox_italic=1 - else - let g:gruvbox_italic=0 - endif -endif -if !exists('g:gruvbox_undercurl') - let g:gruvbox_undercurl=1 -endif -if !exists('g:gruvbox_underline') - let g:gruvbox_underline=1 -endif -if !exists('g:gruvbox_inverse') - let g:gruvbox_inverse=1 -endif - -if !exists('g:gruvbox_guisp_fallback') || index(['fg', 'bg'], g:gruvbox_guisp_fallback) == -1 - let g:gruvbox_guisp_fallback='NONE' -endif - -if !exists('g:gruvbox_improved_strings') - let g:gruvbox_improved_strings=0 -endif - -if !exists('g:gruvbox_improved_warnings') - let g:gruvbox_improved_warnings=0 -endif - -if !exists('g:gruvbox_termcolors') - let g:gruvbox_termcolors=256 -endif - -if !exists('g:gruvbox_invert_indent_guides') - let g:gruvbox_invert_indent_guides=0 -endif - -if exists('g:gruvbox_contrast') - echo 'g:gruvbox_contrast is deprecated; use g:gruvbox_contrast_light and g:gruvbox_contrast_dark instead' -endif - -if !exists('g:gruvbox_contrast_dark') - let g:gruvbox_contrast_dark='medium' -endif - -if !exists('g:gruvbox_contrast_light') - let g:gruvbox_contrast_light='medium' -endif - -let s:is_dark=(&background == 'dark') - -" }}} -" Palette: {{{ - -" setup palette dictionary -let s:gb = {} - -" fill it with absolute colors -let s:gb.dark0_hard = ['#1d2021', 234] " 29-32-33 -let s:gb.dark0 = ['#282828', 235] " 40-40-40 -let s:gb.dark0_soft = ['#32302f', 236] " 50-48-47 -let s:gb.dark1 = ['#3c3836', 237] " 60-56-54 -let s:gb.dark2 = ['#504945', 239] " 80-73-69 -let s:gb.dark3 = ['#665c54', 241] " 102-92-84 -let s:gb.dark4 = ['#7c6f64', 243] " 124-111-100 -let s:gb.dark4_256 = ['#7c6f64', 243] " 124-111-100 - -let s:gb.gray_245 = ['#928374', 245] " 146-131-116 -let s:gb.gray_244 = ['#928374', 244] " 146-131-116 - -let s:gb.light0_hard = ['#f9f5d7', 230] " 249-245-215 -let s:gb.light0 = ['#fbf1c7', 229] " 253-244-193 -let s:gb.light0_soft = ['#f2e5bc', 228] " 242-229-188 -let s:gb.light1 = ['#ebdbb2', 223] " 235-219-178 -let s:gb.light2 = ['#d5c4a1', 250] " 213-196-161 -let s:gb.light3 = ['#bdae93', 248] " 189-174-147 -let s:gb.light4 = ['#a89984', 246] " 168-153-132 -let s:gb.light4_256 = ['#a89984', 246] " 168-153-132 - -let s:gb.bright_red = ['#fb4934', 167] " 251-73-52 -let s:gb.bright_green = ['#b8bb26', 142] " 184-187-38 -let s:gb.bright_yellow = ['#fabd2f', 214] " 250-189-47 -let s:gb.bright_blue = ['#83a598', 109] " 131-165-152 -let s:gb.bright_purple = ['#d3869b', 175] " 211-134-155 -let s:gb.bright_aqua = ['#8ec07c', 108] " 142-192-124 -let s:gb.bright_orange = ['#fe8019', 208] " 254-128-25 - -let s:gb.neutral_red = ['#cc241d', 124] " 204-36-29 -let s:gb.neutral_green = ['#98971a', 106] " 152-151-26 -let s:gb.neutral_yellow = ['#d79921', 172] " 215-153-33 -let s:gb.neutral_blue = ['#458588', 66] " 69-133-136 -let s:gb.neutral_purple = ['#b16286', 132] " 177-98-134 -let s:gb.neutral_aqua = ['#689d6a', 72] " 104-157-106 -let s:gb.neutral_orange = ['#d65d0e', 166] " 214-93-14 - -let s:gb.faded_red = ['#9d0006', 88] " 157-0-6 -let s:gb.faded_green = ['#79740e', 100] " 121-116-14 -let s:gb.faded_yellow = ['#b57614', 136] " 181-118-20 -let s:gb.faded_blue = ['#076678', 24] " 7-102-120 -let s:gb.faded_purple = ['#8f3f71', 96] " 143-63-113 -let s:gb.faded_aqua = ['#427b58', 66] " 66-123-88 -let s:gb.faded_orange = ['#af3a03', 130] " 175-58-3 - -" }}} -" Setup Emphasis: {{{ - -let s:bold = 'bold,' -if g:gruvbox_bold == 0 - let s:bold = '' -endif - -let s:italic = 'italic,' -if g:gruvbox_italic == 0 - let s:italic = '' -endif - -let s:underline = 'underline,' -if g:gruvbox_underline == 0 - let s:underline = '' -endif - -let s:undercurl = 'undercurl,' -if g:gruvbox_undercurl == 0 - let s:undercurl = '' -endif - -let s:inverse = 'inverse,' -if g:gruvbox_inverse == 0 - let s:inverse = '' -endif - -" }}} -" Setup Colors: {{{ - -let s:vim_bg = ['bg', 'bg'] -let s:vim_fg = ['fg', 'fg'] -let s:none = ['NONE', 'NONE'] - -" determine relative colors -if s:is_dark - let s:bg0 = s:gb.dark0 - if g:gruvbox_contrast_dark == 'soft' - let s:bg0 = s:gb.dark0_soft - elseif g:gruvbox_contrast_dark == 'hard' - let s:bg0 = s:gb.dark0_hard - endif - - let s:bg1 = s:gb.dark1 - let s:bg2 = s:gb.dark2 - let s:bg3 = s:gb.dark3 - let s:bg4 = s:gb.dark4 - - let s:gray = s:gb.gray_245 - - let s:fg0 = s:gb.light0 - let s:fg1 = s:gb.light1 - let s:fg2 = s:gb.light2 - let s:fg3 = s:gb.light3 - let s:fg4 = s:gb.light4 - - let s:fg4_256 = s:gb.light4_256 - - let s:red = s:gb.bright_red - let s:green = s:gb.bright_green - let s:yellow = s:gb.bright_yellow - let s:blue = s:gb.bright_blue - let s:purple = s:gb.bright_purple - let s:aqua = s:gb.bright_aqua - let s:orange = s:gb.bright_orange -else - let s:bg0 = s:gb.light0 - if g:gruvbox_contrast_light == 'soft' - let s:bg0 = s:gb.light0_soft - elseif g:gruvbox_contrast_light == 'hard' - let s:bg0 = s:gb.light0_hard - endif - - let s:bg1 = s:gb.light1 - let s:bg2 = s:gb.light2 - let s:bg3 = s:gb.light3 - let s:bg4 = s:gb.light4 - - let s:gray = s:gb.gray_244 - - let s:fg0 = s:gb.dark0 - let s:fg1 = s:gb.dark1 - let s:fg2 = s:gb.dark2 - let s:fg3 = s:gb.dark3 - let s:fg4 = s:gb.dark4 - - let s:fg4_256 = s:gb.dark4_256 - - let s:red = s:gb.faded_red - let s:green = s:gb.faded_green - let s:yellow = s:gb.faded_yellow - let s:blue = s:gb.faded_blue - let s:purple = s:gb.faded_purple - let s:aqua = s:gb.faded_aqua - let s:orange = s:gb.faded_orange -endif - -" reset to 16 colors fallback -if g:gruvbox_termcolors == 16 - let s:bg0[1] = 0 - let s:fg4[1] = 7 - let s:gray[1] = 8 - let s:red[1] = 9 - let s:green[1] = 10 - let s:yellow[1] = 11 - let s:blue[1] = 12 - let s:purple[1] = 13 - let s:aqua[1] = 14 - let s:fg1[1] = 15 -endif - -" save current relative colors back to palette dictionary -let s:gb.bg0 = s:bg0 -let s:gb.bg1 = s:bg1 -let s:gb.bg2 = s:bg2 -let s:gb.bg3 = s:bg3 -let s:gb.bg4 = s:bg4 - -let s:gb.gray = s:gray - -let s:gb.fg0 = s:fg0 -let s:gb.fg1 = s:fg1 -let s:gb.fg2 = s:fg2 -let s:gb.fg3 = s:fg3 -let s:gb.fg4 = s:fg4 - -let s:gb.fg4_256 = s:fg4_256 - -let s:gb.red = s:red -let s:gb.green = s:green -let s:gb.yellow = s:yellow -let s:gb.blue = s:blue -let s:gb.purple = s:purple -let s:gb.aqua = s:aqua -let s:gb.orange = s:orange - -" }}} - -" Overload Setting: {{{ - -let s:hls_cursor = s:orange -if exists('g:gruvbox_hls_cursor') - let s:hls_cursor = get(s:gb, g:gruvbox_hls_cursor) -endif - -let s:number_column = s:none -if exists('g:gruvbox_number_column') - let s:number_column = get(s:gb, g:gruvbox_number_column) -endif - -let s:sign_column = s:bg1 - -if exists('g:gitgutter_override_sign_column_highlight') && - \ g:gitgutter_override_sign_column_highlight == 1 - let s:sign_column = s:number_column -else - let g:gitgutter_override_sign_column_highlight = 0 - - if exists('g:gruvbox_sign_column') - let s:sign_column = get(s:gb, g:gruvbox_sign_column) - endif -endif - -let s:color_column = s:bg1 -if exists('g:gruvbox_color_column') - let s:color_column = get(s:gb, g:gruvbox_color_column) -endif - -let s:vert_split = s:bg2 -if exists('g:gruvbox_vert_split') - let s:vert_split = get(s:gb, g:gruvbox_vert_split) -endif - -let s:invert_signs = '' -if exists('g:gruvbox_invert_signs') - if g:gruvbox_invert_signs == 1 - let s:invert_signs = s:inverse - endif -endif - -let s:invert_selection = s:inverse -if exists('g:gruvbox_invert_selection') - if g:gruvbox_invert_selection == 0 - let s:invert_selection = '' - endif -endif - -let s:invert_tabline = '' -if exists('g:gruvbox_invert_tabline') - if g:gruvbox_invert_tabline == 1 - let s:invert_tabline = s:inverse - endif -endif - -let s:italicize_comments = s:italic -if exists('g:gruvbox_italicize_comments') - if g:gruvbox_italicize_comments == 0 - let s:italicize_comments = '' - endif -endif - -let s:italicize_strings = '' -if exists('g:gruvbox_italicize_strings') - if g:gruvbox_italicize_strings == 1 - let s:italicize_strings = s:italic - endif -endif - -" }}} -" Highlighting Function: {{{ - -function! s:HL(group, fg, ...) - " Arguments: group, guifg, guibg, gui, guisp - - " foreground - let fg = a:fg - - " background - if a:0 >= 1 - let bg = a:1 - else - let bg = s:none - endif - - " emphasis - if a:0 >= 2 && strlen(a:2) - let emstr = a:2 - else - let emstr = 'NONE,' - endif - - " special fallback - if a:0 >= 3 - if g:gruvbox_guisp_fallback != 'NONE' - let fg = a:3 - endif - - " bg fallback mode should invert higlighting - if g:gruvbox_guisp_fallback == 'bg' - let emstr .= 'inverse,' - endif - endif - - let histring = [ 'hi', a:group, - \ 'guifg=' . fg[0], 'ctermfg=' . fg[1], - \ 'guibg=' . bg[0], 'ctermbg=' . bg[1], - \ 'gui=' . emstr[:-2], 'cterm=' . emstr[:-2] - \ ] - - " special - if a:0 >= 3 - call add(histring, 'guisp=' . a:3[0]) - endif - - execute join(histring, ' ') -endfunction - -" }}} -" Gruvbox Hi Groups: {{{ - -" memoize common hi groups -call s:HL('GruvboxFg0', s:fg0) -call s:HL('GruvboxFg1', s:fg1) -call s:HL('GruvboxFg2', s:fg2) -call s:HL('GruvboxFg3', s:fg3) -call s:HL('GruvboxFg4', s:fg4) -call s:HL('GruvboxGray', s:gray) -call s:HL('GruvboxBg0', s:bg0) -call s:HL('GruvboxBg1', s:bg1) -call s:HL('GruvboxBg2', s:bg2) -call s:HL('GruvboxBg3', s:bg3) -call s:HL('GruvboxBg4', s:bg4) - -call s:HL('GruvboxRed', s:red) -call s:HL('GruvboxRedBold', s:red, s:none, s:bold) -call s:HL('GruvboxGreen', s:green) -call s:HL('GruvboxGreenBold', s:green, s:none, s:bold) -call s:HL('GruvboxYellow', s:yellow) -call s:HL('GruvboxYellowBold', s:yellow, s:none, s:bold) -call s:HL('GruvboxBlue', s:blue) -call s:HL('GruvboxBlueBold', s:blue, s:none, s:bold) -call s:HL('GruvboxPurple', s:purple) -call s:HL('GruvboxPurpleBold', s:purple, s:none, s:bold) -call s:HL('GruvboxAqua', s:aqua) -call s:HL('GruvboxAquaBold', s:aqua, s:none, s:bold) -call s:HL('GruvboxOrange', s:orange) -call s:HL('GruvboxOrangeBold', s:orange, s:none, s:bold) - -call s:HL('GruvboxRedSign', s:red, s:sign_column, s:invert_signs) -call s:HL('GruvboxGreenSign', s:green, s:sign_column, s:invert_signs) -call s:HL('GruvboxYellowSign', s:yellow, s:sign_column, s:invert_signs) -call s:HL('GruvboxBlueSign', s:blue, s:sign_column, s:invert_signs) -call s:HL('GruvboxPurpleSign', s:purple, s:sign_column, s:invert_signs) -call s:HL('GruvboxAquaSign', s:aqua, s:sign_column, s:invert_signs) - -" }}} - -" Vanilla colorscheme --------------------------------------------------------- -" General UI: {{{ - -" Normal text -call s:HL('Normal', s:fg1, s:bg0) - -" Correct background (see issue #7): -" --- Problem with changing between dark and light on 256 color terminal -" --- https://github.com/morhetz/gruvbox/issues/7 -if s:is_dark - set background=dark -else - set background=light -endif - -if version >= 700 - " Screen line that the cursor is - call s:HL('CursorLine', s:none, s:bg1) - " Screen column that the cursor is - hi! link CursorColumn CursorLine - - " Tab pages line filler - call s:HL('TabLineFill', s:bg4, s:vim_bg, s:invert_tabline) - " Active tab page label - call s:HL('TabLineSel', s:vim_bg, s:bg4, s:bold . s:invert_tabline) - " Not active tab page label - hi! link TabLine TabLineFill - - " Match paired bracket under the cursor - call s:HL('MatchParen', s:none, s:bg3, s:bold) -endif - -if version >= 703 - " Highlighted screen columns - call s:HL('ColorColumn', s:none, s:color_column) - - " Concealed element: \lambda → λ - call s:HL('Conceal', s:blue, s:none) - - " Line number of CursorLine - call s:HL('CursorLineNr', s:yellow, s:bg1) -endif - -hi! link NonText GruvboxBg2 -hi! link SpecialKey GruvboxBg2 - -call s:HL('Visual', s:none, s:bg3, s:invert_selection) -hi! link VisualNOS Visual - -call s:HL('Search', s:yellow, s:bg0, s:inverse) -call s:HL('IncSearch', s:hls_cursor, s:bg0, s:inverse) - -call s:HL('Underlined', s:blue, s:none, s:underline) - -call s:HL('StatusLine', s:bg4, s:bg0, s:bold . s:inverse) -call s:HL('StatusLineNC', s:bg2, s:fg4, s:bold . s:inverse) - -" The column separating vertically split windows -call s:HL('VertSplit', s:fg4, s:vert_split) - -" Current match in wildmenu completion -call s:HL('WildMenu', s:blue, s:bg2, s:bold) - -" Directory names, special names in listing -hi! link Directory GruvboxGreenBold - -" Titles for output from :set all, :autocmd, etc. -hi! link Title GruvboxGreenBold - -" Error messages on the command line -call s:HL('ErrorMsg', s:bg0, s:red, s:bold) -" More prompt: -- More -- -hi! link MoreMsg GruvboxYellowBold -" Current mode message: -- INSERT -- -hi! link ModeMsg GruvboxYellowBold -" 'Press enter' prompt and yes/no questions -hi! link Question GruvboxOrangeBold -" Warning messages -hi! link WarningMsg GruvboxRedBold - -" }}} -" Gutter: {{{ - -" Line number for :number and :# commands -call s:HL('LineNr', s:bg4, s:number_column) - -" Column where signs are displayed -call s:HL('SignColumn', s:none, s:sign_column) - -" Line used for closed folds -call s:HL('Folded', s:gray, s:bg1, s:italic) -" Column where folds are displayed -call s:HL('FoldColumn', s:gray, s:bg1) - -" }}} -" Cursor: {{{ - -" Character under cursor -call s:HL('Cursor', s:none, s:none, s:inverse) -" Visual mode cursor, selection -hi! link vCursor Cursor -" Input moder cursor -hi! link iCursor Cursor -" Language mapping cursor -hi! link lCursor Cursor - -" }}} -" Syntax Highlighting: {{{ - -if g:gruvbox_improved_strings == 0 - hi! link Special GruvboxOrange -else - call s:HL('Special', s:bg1, s:orange, s:italic) -endif - -call s:HL('Comment', s:gray, s:none, s:italicize_comments) -call s:HL('Todo', s:vim_fg, s:vim_bg, s:bold . s:italic) -call s:HL('Error', s:red, s:vim_bg, s:bold . s:inverse) - -" Generic statement -hi! link Statement GruvboxRed -" if, then, else, endif, swicth, etc. -hi! link Conditional GruvboxRed -" for, do, while, etc. -hi! link Repeat GruvboxRed -" case, default, etc. -hi! link Label GruvboxRed -" try, catch, throw -hi! link Exception GruvboxRed -" sizeof, "+", "*", etc. -hi! link Operator Normal -" Any other keyword -hi! link Keyword GruvboxRed - -" Variable name -hi! link Identifier GruvboxBlue -" Function name -hi! link Function GruvboxGreenBold - -" Generic preprocessor -hi! link PreProc GruvboxAqua -" Preprocessor #include -hi! link Include GruvboxAqua -" Preprocessor #define -hi! link Define GruvboxAqua -" Same as Define -hi! link Macro GruvboxAqua -" Preprocessor #if, #else, #endif, etc. -hi! link PreCondit GruvboxAqua - -" Generic constant -hi! link Constant GruvboxPurple -" Character constant: 'c', '/n' -hi! link Character GruvboxPurple -" String constant: "this is a string" -if g:gruvbox_improved_strings == 0 - call s:HL('String', s:green, s:none, s:italicize_strings) -else - call s:HL('String', s:bg1, s:fg1, s:italicize_strings) -endif -" Boolean constant: TRUE, false -hi! link Boolean GruvboxPurple -" Number constant: 234, 0xff -hi! link Number GruvboxPurple -" Floating point constant: 2.3e10 -hi! link Float GruvboxPurple - -" Generic type -hi! link Type GruvboxYellow -" static, register, volatile, etc -hi! link StorageClass GruvboxOrange -" struct, union, enum, etc. -hi! link Structure GruvboxAqua -" typedef -hi! link Typedef GruvboxYellow - -" }}} -" Completion Menu: {{{ - -if version >= 700 - " Popup menu: normal item - call s:HL('Pmenu', s:fg1, s:bg2) - " Popup menu: selected item - call s:HL('PmenuSel', s:bg2, s:blue, s:bold) - " Popup menu: scrollbar - call s:HL('PmenuSbar', s:none, s:bg2) - " Popup menu: scrollbar thumb - call s:HL('PmenuThumb', s:none, s:bg4) -endif - -" }}} -" Diffs: {{{ - -call s:HL('DiffDelete', s:red, s:bg0, s:inverse) -call s:HL('DiffAdd', s:green, s:bg0, s:inverse) -"call s:HL('DiffChange', s:bg0, s:blue) -"call s:HL('DiffText', s:bg0, s:yellow) - -" Alternative setting -call s:HL('DiffChange', s:aqua, s:bg0, s:inverse) -call s:HL('DiffText', s:yellow, s:bg0, s:inverse) - -" }}} -" Spelling: {{{ - -if has("spell") - " Not capitalised word, or compile warnings - if g:gruvbox_improved_warnings == 0 - call s:HL('SpellCap', s:none, s:none, s:undercurl, s:red) - else - call s:HL('SpellCap', s:green, s:none, s:bold . s:italic) - endif - " Not recognized word - call s:HL('SpellBad', s:none, s:none, s:undercurl, s:blue) - " Wrong spelling for selected region - call s:HL('SpellLocal', s:none, s:none, s:undercurl, s:aqua) - " Rare word - call s:HL('SpellRare', s:none, s:none, s:undercurl, s:purple) -endif - -" }}} - -" Plugin specific ------------------------------------------------------------- -" EasyMotion: {{{ - -hi! link EasyMotionTarget Search -hi! link EasyMotionShade Comment - -" }}} -" Sneak: {{{ - -hi! link SneakPluginTarget Search -hi! link SneakStreakTarget Search -call s:HL('SneakStreakMask', s:yellow, s:yellow) -hi! link SneakStreakStatusLine Search - -" }}} -" Indent Guides: {{{ - -if !exists('g:indent_guides_auto_colors') - let g:indent_guides_auto_colors = 0 -endif - -if g:indent_guides_auto_colors == 0 - if g:gruvbox_invert_indent_guides == 0 - call s:HL('IndentGuidesOdd', s:vim_bg, s:bg2) - call s:HL('IndentGuidesEven', s:vim_bg, s:bg1) - else - call s:HL('IndentGuidesOdd', s:vim_bg, s:bg2, s:inverse) - call s:HL('IndentGuidesEven', s:vim_bg, s:bg3, s:inverse) - endif -endif - -" }}} -" IndentLine: {{{ - -if !exists('g:indentLine_color_term') - let g:indentLine_color_term = s:bg2[1] -endif -if !exists('g:indentLine_color_gui') - let g:indentLine_color_gui = s:bg2[0] -endif - -" }}} -" Rainbow Parentheses: {{{ - -if !exists('g:rbpt_colorpairs') - let g:rbpt_colorpairs = - \ [ - \ ['blue', '#458588'], ['magenta', '#b16286'], - \ ['red', '#cc241d'], ['166', '#d65d0e'] - \ ] -endif - -let g:rainbow_guifgs = [ '#d65d0e', '#cc241d', '#b16286', '#458588' ] -let g:rainbow_ctermfgs = [ '166', 'red', 'magenta', 'blue' ] - -if !exists('g:rainbow_conf') - let g:rainbow_conf = {} -endif -if !has_key(g:rainbow_conf, 'guifgs') - let g:rainbow_conf['guifgs'] = g:rainbow_guifgs -endif -if !has_key(g:rainbow_conf, 'ctermfgs') - let g:rainbow_conf['ctermfgs'] = g:rainbow_ctermfgs -endif - -let g:niji_dark_colours = g:rbpt_colorpairs -let g:niji_light_colours = g:rbpt_colorpairs - -"}}} -" GitGutter: {{{ - -hi! link GitGutterAdd GruvboxGreenSign -hi! link GitGutterChange GruvboxAquaSign -hi! link GitGutterDelete GruvboxRedSign -hi! link GitGutterChangeDelete GruvboxAquaSign - -" }}} -" GitCommit: "{{{ - -hi! link gitcommitSelectedFile GruvboxGreen -hi! link gitcommitDiscardedFile GruvboxRed - -" }}} -" Signify: {{{ - -hi! link SignifySignAdd GruvboxGreenSign -hi! link SignifySignChange GruvboxAquaSign -hi! link SignifySignDelete GruvboxRedSign - -" }}} -" Syntastic: {{{ - -call s:HL('SyntasticError', s:none, s:none, s:undercurl, s:red) -call s:HL('SyntasticWarning', s:none, s:none, s:undercurl, s:yellow) - -hi! link SyntasticErrorSign GruvboxRedSign -hi! link SyntasticWarningSign GruvboxYellowSign - -" }}} -" Signature: {{{ -hi! link SignatureMarkText GruvboxBlueSign -hi! link SignatureMarkerText GruvboxPurpleSign - -" }}} -" ShowMarks: {{{ - -hi! link ShowMarksHLl GruvboxBlueSign -hi! link ShowMarksHLu GruvboxBlueSign -hi! link ShowMarksHLo GruvboxBlueSign -hi! link ShowMarksHLm GruvboxBlueSign - -" }}} -" CtrlP: {{{ - -hi! link CtrlPMatch GruvboxYellow -hi! link CtrlPNoEntries GruvboxRed -hi! link CtrlPPrtBase GruvboxBg2 -hi! link CtrlPPrtCursor GruvboxBlue -hi! link CtrlPLinePre GruvboxBg2 - -call s:HL('CtrlPMode1', s:blue, s:bg2, s:bold) -call s:HL('CtrlPMode2', s:bg0, s:blue, s:bold) -call s:HL('CtrlPStats', s:fg4, s:bg2, s:bold) - -" }}} -" Startify: {{{ - -hi! link StartifyBracket GruvboxFg3 -hi! link StartifyFile GruvboxFg0 -hi! link StartifyNumber GruvboxBlue -hi! link StartifyPath GruvboxGray -hi! link StartifySlash GruvboxGray -hi! link StartifySection GruvboxYellow -hi! link StartifySpecial GruvboxBg2 -hi! link StartifyHeader GruvboxOrange -hi! link StartifyFooter GruvboxBg2 - -" }}} -" Vimshell: {{{ - -let g:vimshell_escape_colors = [ - \ s:bg4[0], s:red[0], s:green[0], s:yellow[0], - \ s:blue[0], s:purple[0], s:aqua[0], s:fg4[0], - \ s:bg0[0], s:red[0], s:green[0], s:orange[0], - \ s:blue[0], s:purple[0], s:aqua[0], s:fg0[0] - \ ] - -" }}} -" BufTabLine: {{{ - -call s:HL('BufTabLineCurrent', s:bg0, s:fg4) -call s:HL('BufTabLineActive', s:fg4, s:bg2) -call s:HL('BufTabLineHidden', s:bg4, s:bg1) -call s:HL('BufTabLineFill', s:bg0, s:bg0) - -" }}} - -" Filetype specific ----------------------------------------------------------- -" Diff: {{{ - -hi! link diffAdded GruvboxGreen -hi! link diffRemoved GruvboxRed -hi! link diffChanged GruvboxAqua - -hi! link diffFile GruvboxOrange -hi! link diffNewFile GruvboxYellow - -hi! link diffLine GruvboxBlue - -" }}} -" Html: {{{ - -hi! link htmlTag GruvboxBlue -hi! link htmlEndTag GruvboxBlue - -hi! link htmlTagName GruvboxAquaBold -hi! link htmlArg GruvboxAqua - -hi! link htmlScriptTag GruvboxPurple -hi! link htmlTagN GruvboxFg1 -hi! link htmlSpecialTagName GruvboxAquaBold - -call s:HL('htmlLink', s:fg4, s:none, s:underline) - -hi! link htmlSpecialChar GruvboxOrange - -call s:HL('htmlBold', s:vim_fg, s:vim_bg, s:bold) -call s:HL('htmlBoldUnderline', s:vim_fg, s:vim_bg, s:bold . s:underline) -call s:HL('htmlBoldItalic', s:vim_fg, s:vim_bg, s:bold . s:italic) -call s:HL('htmlBoldUnderlineItalic', s:vim_fg, s:vim_bg, s:bold . s:underline . s:italic) - -call s:HL('htmlUnderline', s:vim_fg, s:vim_bg, s:underline) -call s:HL('htmlUnderlineItalic', s:vim_fg, s:vim_bg, s:underline . s:italic) -call s:HL('htmlItalic', s:vim_fg, s:vim_bg, s:italic) - -" }}} -" Xml: {{{ - -hi! link xmlTag GruvboxBlue -hi! link xmlEndTag GruvboxBlue -hi! link xmlTagName GruvboxBlue -hi! link xmlEqual GruvboxBlue -hi! link docbkKeyword GruvboxAquaBold - -hi! link xmlDocTypeDecl GruvboxGray -hi! link xmlDocTypeKeyword GruvboxPurple -hi! link xmlCdataStart GruvboxGray -hi! link xmlCdataCdata GruvboxPurple -hi! link dtdFunction GruvboxGray -hi! link dtdTagName GruvboxPurple - -hi! link xmlAttrib GruvboxAqua -hi! link xmlProcessingDelim GruvboxGray -hi! link dtdParamEntityPunct GruvboxGray -hi! link dtdParamEntityDPunct GruvboxGray -hi! link xmlAttribPunct GruvboxGray - -hi! link xmlEntity GruvboxOrange -hi! link xmlEntityPunct GruvboxOrange -" }}} -" Vim: {{{ - -call s:HL('vimCommentTitle', s:fg4_256, s:none, s:bold . s:italicize_comments) - -hi! link vimNotation GruvboxOrange -hi! link vimBracket GruvboxOrange -hi! link vimMapModKey GruvboxOrange -hi! link vimFuncSID GruvboxFg3 -hi! link vimSetSep GruvboxFg3 -hi! link vimSep GruvboxFg3 -hi! link vimContinue GruvboxFg3 - -" }}} -" Clojure: {{{ - -hi! link clojureKeyword GruvboxBlue -hi! link clojureCond GruvboxOrange -hi! link clojureSpecial GruvboxOrange -hi! link clojureDefine GruvboxOrange - -hi! link clojureFunc GruvboxYellow -hi! link clojureRepeat GruvboxYellow -hi! link clojureCharacter GruvboxAqua -hi! link clojureStringEscape GruvboxAqua -hi! link clojureException GruvboxRed - -hi! link clojureRegexp GruvboxAqua -hi! link clojureRegexpEscape GruvboxAqua -call s:HL('clojureRegexpCharClass', s:fg3, s:none, s:bold) -hi! link clojureRegexpMod clojureRegexpCharClass -hi! link clojureRegexpQuantifier clojureRegexpCharClass - -hi! link clojureParen GruvboxFg3 -hi! link clojureAnonArg GruvboxYellow -hi! link clojureVariable GruvboxBlue -hi! link clojureMacro GruvboxOrange - -hi! link clojureMeta GruvboxYellow -hi! link clojureDeref GruvboxYellow -hi! link clojureQuote GruvboxYellow -hi! link clojureUnquote GruvboxYellow - -" }}} -" C: {{{ - -hi! link cOperator GruvboxPurple -hi! link cStructure GruvboxOrange - -" }}} -" Python: {{{ - -hi! link pythonBuiltin GruvboxOrange -hi! link pythonBuiltinObj GruvboxOrange -hi! link pythonBuiltinFunc GruvboxOrange -hi! link pythonFunction GruvboxAqua -hi! link pythonDecorator GruvboxRed -hi! link pythonInclude GruvboxBlue -hi! link pythonImport GruvboxBlue -hi! link pythonRun GruvboxBlue -hi! link pythonCoding GruvboxBlue -hi! link pythonOperator GruvboxRed -hi! link pythonExceptions GruvboxPurple -hi! link pythonBoolean GruvboxPurple -hi! link pythonDot GruvboxFg3 - -" }}} -" CSS: {{{ - -hi! link cssBraces GruvboxBlue -hi! link cssFunctionName GruvboxYellow -hi! link cssIdentifier GruvboxOrange -hi! link cssClassName GruvboxGreen -hi! link cssColor GruvboxBlue -hi! link cssSelectorOp GruvboxBlue -hi! link cssSelectorOp2 GruvboxBlue -hi! link cssImportant GruvboxGreen -hi! link cssVendor GruvboxFg1 - -hi! link cssTextProp GruvboxAqua -hi! link cssAnimationProp GruvboxAqua -hi! link cssUIProp GruvboxYellow -hi! link cssTransformProp GruvboxAqua -hi! link cssTransitionProp GruvboxAqua -hi! link cssPrintProp GruvboxAqua -hi! link cssPositioningProp GruvboxYellow -hi! link cssBoxProp GruvboxAqua -hi! link cssFontDescriptorProp GruvboxAqua -hi! link cssFlexibleBoxProp GruvboxAqua -hi! link cssBorderOutlineProp GruvboxAqua -hi! link cssBackgroundProp GruvboxAqua -hi! link cssMarginProp GruvboxAqua -hi! link cssListProp GruvboxAqua -hi! link cssTableProp GruvboxAqua -hi! link cssFontProp GruvboxAqua -hi! link cssPaddingProp GruvboxAqua -hi! link cssDimensionProp GruvboxAqua -hi! link cssRenderProp GruvboxAqua -hi! link cssColorProp GruvboxAqua -hi! link cssGeneratedContentProp GruvboxAqua - -" }}} -" JavaScript: {{{ - -hi! link javaScriptBraces GruvboxFg1 -hi! link javaScriptFunction GruvboxAqua -hi! link javaScriptIdentifier GruvboxRed -hi! link javaScriptMember GruvboxBlue -hi! link javaScriptNumber GruvboxPurple -hi! link javaScriptNull GruvboxPurple -hi! link javaScriptParens GruvboxFg3 - -" }}} -" YAJS: {{{ - -hi! link javascriptImport GruvboxAqua -hi! link javascriptExport GruvboxAqua -hi! link javascriptClassKeyword GruvboxAqua -hi! link javascriptClassExtends GruvboxAqua -hi! link javascriptDefault GruvboxAqua - -hi! link javascriptClassName GruvboxYellow -hi! link javascriptClassSuperName GruvboxYellow -hi! link javascriptGlobal GruvboxYellow - -hi! link javascriptEndColons GruvboxFg1 -hi! link javascriptFuncArg GruvboxFg1 -hi! link javascriptGlobalMethod GruvboxFg1 -hi! link javascriptNodeGlobal GruvboxFg1 - -" hi! link javascriptVariable GruvboxOrange -hi! link javascriptVariable GruvboxRed -" hi! link javascriptIdentifier GruvboxOrange -" hi! link javascriptClassSuper GruvboxOrange -hi! link javascriptIdentifier GruvboxOrange -hi! link javascriptClassSuper GruvboxOrange - -" hi! link javascriptFuncKeyword GruvboxOrange -" hi! link javascriptAsyncFunc GruvboxOrange -hi! link javascriptFuncKeyword GruvboxAqua -hi! link javascriptAsyncFunc GruvboxAqua -hi! link javascriptClassStatic GruvboxOrange - -hi! link javascriptOperator GruvboxRed -hi! link javascriptForOperator GruvboxRed -hi! link javascriptYield GruvboxRed -hi! link javascriptExceptions GruvboxRed -hi! link javascriptMessage GruvboxRed - -hi! link javascriptTemplateSB GruvboxAqua -hi! link javascriptTemplateSubstitution GruvboxFg1 - -" hi! link javascriptLabel GruvboxBlue -" hi! link javascriptObjectLabel GruvboxBlue -" hi! link javascriptPropertyName GruvboxBlue -hi! link javascriptLabel GruvboxFg1 -hi! link javascriptObjectLabel GruvboxFg1 -hi! link javascriptPropertyName GruvboxFg1 - -hi! link javascriptLogicSymbols GruvboxFg1 -hi! link javascriptArrowFunc GruvboxFg1 - -hi! link javascriptDocParamName GruvboxFg4 -hi! link javascriptDocTags GruvboxFg4 -hi! link javascriptDocNotation GruvboxFg4 -hi! link javascriptDocParamType GruvboxFg4 -hi! link javascriptDocNamedParamType GruvboxFg4 - -" }}} -" TypeScript: {{{ - -hi! link typeScriptReserved GruvboxAqua -hi! link typeScriptLabel GruvboxAqua -hi! link typeScriptIdentifier GruvboxOrange -hi! link typeScriptBraces GruvboxFg1 -hi! link typeScriptEndColons GruvboxFg1 -hi! link typeScriptDOMObjects GruvboxFg1 -hi! link typeScriptAjaxMethods GruvboxFg1 -hi! link typeScriptLogicSymbols GruvboxFg1 -hi! link typeScriptDocSeeTag Comment -hi! link typeScriptDocParam Comment -hi! link typeScriptDocTags vimCommentTitle - -" }}} -" CoffeeScript: {{{ - -hi! link coffeeExtendedOp GruvboxFg3 -hi! link coffeeSpecialOp GruvboxFg3 -hi! link coffeeCurly GruvboxOrange -hi! link coffeeParen GruvboxFg3 -hi! link coffeeBracket GruvboxOrange - -" }}} -" Ruby: {{{ - -hi! link rubyStringDelimiter GruvboxGreen -hi! link rubyInterpolationDelimiter GruvboxAqua - -" }}} -" ObjectiveC: {{{ - -hi! link objcTypeModifier GruvboxRed -hi! link objcDirective GruvboxBlue - -" }}} -" Go: {{{ - -hi! link goDirective GruvboxAqua -hi! link goConstants GruvboxPurple -hi! link goDeclaration GruvboxRed -hi! link goDeclType GruvboxBlue -hi! link goBuiltins GruvboxOrange - -" }}} -" Lua: {{{ - -hi! link luaIn GruvboxRed -hi! link luaFunction GruvboxAqua -hi! link luaTable GruvboxOrange - -" }}} -" MoonScript: {{{ - -hi! link moonSpecialOp GruvboxFg3 -hi! link moonExtendedOp GruvboxFg3 -hi! link moonFunction GruvboxFg3 -hi! link moonObject GruvboxYellow - -" }}} -" Java: {{{ - -hi! link javaAnnotation GruvboxBlue -hi! link javaDocTags GruvboxAqua -hi! link javaCommentTitle vimCommentTitle -hi! link javaParen GruvboxFg3 -hi! link javaParen1 GruvboxFg3 -hi! link javaParen2 GruvboxFg3 -hi! link javaParen3 GruvboxFg3 -hi! link javaParen4 GruvboxFg3 -hi! link javaParen5 GruvboxFg3 -hi! link javaOperator GruvboxOrange - -hi! link javaVarArg GruvboxGreen - -" }}} -" Elixir: {{{ - -hi! link elixirDocString Comment - -hi! link elixirStringDelimiter GruvboxGreen -hi! link elixirInterpolationDelimiter GruvboxAqua - -hi! link elixirModuleDeclaration GruvboxYellow - -" }}} -" Scala: {{{ - -" NB: scala vim syntax file is kinda horrible -hi! link scalaNameDefinition GruvboxFg1 -hi! link scalaCaseFollowing GruvboxFg1 -hi! link scalaCapitalWord GruvboxFg1 -hi! link scalaTypeExtension GruvboxFg1 - -hi! link scalaKeyword GruvboxRed -hi! link scalaKeywordModifier GruvboxRed - -hi! link scalaSpecial GruvboxAqua -hi! link scalaOperator GruvboxFg1 - -hi! link scalaTypeDeclaration GruvboxYellow -hi! link scalaTypeTypePostDeclaration GruvboxYellow - -hi! link scalaInstanceDeclaration GruvboxFg1 -hi! link scalaInterpolation GruvboxAqua - -" }}} -" Markdown: {{{ - -call s:HL('markdownItalic', s:fg3, s:none, s:italic) - -hi! link markdownH1 GruvboxGreenBold -hi! link markdownH2 GruvboxGreenBold -hi! link markdownH3 GruvboxYellowBold -hi! link markdownH4 GruvboxYellowBold -hi! link markdownH5 GruvboxYellow -hi! link markdownH6 GruvboxYellow - -hi! link markdownCode GruvboxAqua -hi! link markdownCodeBlock GruvboxAqua -hi! link markdownCodeDelimiter GruvboxAqua - -hi! link markdownBlockquote GruvboxGray -hi! link markdownListMarker GruvboxGray -hi! link markdownOrderedListMarker GruvboxGray -hi! link markdownRule GruvboxGray -hi! link markdownHeadingRule GruvboxGray - -hi! link markdownUrlDelimiter GruvboxFg3 -hi! link markdownLinkDelimiter GruvboxFg3 -hi! link markdownLinkTextDelimiter GruvboxFg3 - -hi! link markdownHeadingDelimiter GruvboxOrange -hi! link markdownUrl GruvboxPurple -hi! link markdownUrlTitleDelimiter GruvboxGreen - -call s:HL('markdownLinkText', s:gray, s:none, s:underline) -hi! link markdownIdDeclaration markdownLinkText - -" }}} -" Haskell: {{{ - -" hi! link haskellType GruvboxYellow -" hi! link haskellOperators GruvboxOrange -" hi! link haskellConditional GruvboxAqua -" hi! link haskellLet GruvboxOrange -" -hi! link haskellType GruvboxFg1 -hi! link haskellIdentifier GruvboxFg1 -hi! link haskellSeparator GruvboxFg1 -hi! link haskellDelimiter GruvboxFg4 -hi! link haskellOperators GruvboxBlue -" -hi! link haskellBacktick GruvboxOrange -hi! link haskellStatement GruvboxOrange -hi! link haskellConditional GruvboxOrange - -hi! link haskellLet GruvboxAqua -hi! link haskellDefault GruvboxAqua -hi! link haskellWhere GruvboxAqua -hi! link haskellBottom GruvboxAqua -hi! link haskellBlockKeywords GruvboxAqua -hi! link haskellImportKeywords GruvboxAqua -hi! link haskellDeclKeyword GruvboxAqua -hi! link haskellDeriving GruvboxAqua -hi! link haskellAssocType GruvboxAqua - -hi! link haskellNumber GruvboxPurple -hi! link haskellPragma GruvboxPurple - -hi! link haskellString GruvboxGreen -hi! link haskellChar GruvboxGreen - -" }}} -" Json: {{{ - -hi! link jsonKeyword GruvboxGreen -hi! link jsonQuote GruvboxGreen -hi! link jsonBraces GruvboxFg1 -hi! link jsonString GruvboxFg1 - -" }}} - - -" Functions ------------------------------------------------------------------- -" Search Highlighting Cursor {{{ - -function! GruvboxHlsShowCursor() - call s:HL('Cursor', s:bg0, s:hls_cursor) -endfunction - -function! GruvboxHlsHideCursor() - call s:HL('Cursor', s:none, s:none, s:inverse) -endfunction - -" }}} - -" vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker: diff --git a/vim/colors/kalisi.vim b/vim/colors/kalisi.vim new file mode 100644 index 0000000..7de511d --- /dev/null +++ b/vim/colors/kalisi.vim @@ -0,0 +1,621 @@ + +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" +" Name: kalisi +" Author: Arthur Jaron +" EMail: hifreeo@gmail.com +" Version: 0.8.0 +" Last Change: 2015.09.27 +" +" +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +" Settings +if !exists('g:kalisi_recolor_quickfixsigns') + let g:kalisi_recolor_quickfixsigns = 1 +endif + +" the default scheme is 'light' +if &background == "dark" + hi clear + let g:colors_name = "kalisi" + + hi Normal guifg=#d0d0d0 guibg=#404042 gui=none + + hi Comment guifg=#8a8a8a + hi CommentURL guifg=#6090c0 guibg=NONE gui=underline + hi CommentEmail guifg=#6090c0 guibg=NONE gui=underline + + hi Constant guifg=#ffaf00 gui=bold + hi String guifg=#ffc63f + hi Character guifg=#c85bff + hi Number guifg=#ffad3f + hi Boolean guifg=#94be54 + hi Float guifg=#fff650 + + " HTML Closing tags + " Vim variables + hi Identifier guifg=#29a3ac gui=none + " HTML Starting tags <...> + hi Function guifg=#7ad6ff gui=none + + hi Statement guifg=#94be54 gui=bold + hi Conditional guifg=#7aa6c2 gui=bold + hi Repeat guifg=#7aa6c2 guibg=NONE gui=bold + hi Label guifg=#409a50 gui=bold + " operator cpp: sizeof() + hi Operator guifg=#658aa5 guibg=NONE gui=none + "html: special keywords in jscript: window log + hi Keyword guifg=#adffdd gui=none + hi Exception guifg=#2080c0 guibg=NONE gui=bold + + hi PreProc guifg=#2288ee gui=bold + hi Include guifg=#2288ee gui=bold + hi Define guifg=#2288ee gui=bold + hi Macro guifg=#a68ad2 gui=none + hi PreCondit guifg=#7aa6c2 gui=none + + " vim: lots of links + " c: int char void + " html: class href id + hi Type guifg=#5d8fbe gui=none ctermfg=67 + hi StorageClass guifg=#55aa85 gui=italic + " c: struct + " py: self __name__ Error Exception and is not + hi Structure guifg=#557a95 gui=none + " cpp: static cast + hi Typedef guifg=#55aa85 + + hi Special guifg=#e7f6da gui=none + hi SpecialChar guifg=#6a96ff + hi SpecialKey guifg=#767676 guibg=#3a3a3a ctermbg=243 ctermfg=237 + + hi Tag guifg=#00c0ff gui=bold + hi Delimiter guifg=#7a9acd guibg=NONE gui=none + + hi SpecialComment guifg=#6090c0 gui=bold + hi Debug guifg=#ddb800 guibg=NONE gui=bold + + hi Underlined guifg=#b5b5b5 guibg=NONE gui=underline + + " Misc syntax ############################################################### + + hi Todo guifg=#fff63f guibg=#736a3f gui=bold + + hi Directory guifg=#b5b5b5 guibg=NONE gui=bold + + hi DiffAdd guibg=#384b38 + hi DiffChange guibg=#383a4b + hi DiffText guifg=#e0e0e0 guibg=#484898 + hi DiffDelete guifg=#484848 guibg=#3b3b3b + + hi SpellBad guisp=#e83030 gui=undercurl + hi SpellCap guisp=#476afc gui=undercurl + hi SpellLocal guisp=#48b040 gui=undercurl + hi SpellRare guisp=#eeeeee gui=undercurl + + " User interface ############################################################ + + hi Search guifg=#000000 guibg=#b8ea00 gui=bold + hi IncSearch guifg=#f8cf00 guibg=#000000 + + hi Error guifg=#e5a5a5 guibg=#602020 gui=bold,underline + hi ErrorMsg guifg=#f5c5c5 guibg=#901010 gui=bold + hi WarningMsg guifg=#edc830 guibg=NONE gui=none + hi WildMenu guifg=#000000 guibg=#A6DB29 gui=none + hi Question guifg=#000000 guibg=#A6DB29 gui=none + hi MoreMsg guifg=#000000 guibg=#A6DB29 gui=none + hi ModeMsg guifg=#000000 guibg=#A6DB29 + + hi Cursor guibg=#d80000 guifg=#ffffff + hi CursorLineNr guifg=#d0d0d0 guibg=#482020 gui=bold + hi CursorLine guibg=#4a4a4c + hi CursorColumn guibg=#4a4a4c + hi MatchParen guifg=#202020 guibg=#8fca24 gui=none + + hi Visual guibg=#3a4d6e gui=none + hi VisualNOS guibg=#4a4d4e gui=none + + hi Pmenu guifg=#b5b5b5 guibg=#303032 + hi PmenuSel guifg=#222222 guibg=#A6DB29 gui=none + hi PmenuSbar guibg=#a0a0a0 + hi PmenuThumb guibg=#555555 + + hi SignColumn guifg=#A6E22E guibg=#303032 + hi FoldColumn guifg=#b0b8c0 guibg=#373d43 gui=bold + hi Folded guifg=#727780 guibg=#373d43 gui=none + + hi NonText guifg=#958b7f guibg=#3a3a3a gui=none + hi Conceal guifg=#f6f3e8 guibg=#303030 + + hi LineNr guifg=#857b6f guibg=#303032 gui=none + hi StatusLine guifg=#b5b5b5 guibg=#222222 gui=none term=NONE cterm=NONE + hi StatusLineNC guifg=#857b6f guibg=#303032 gui=none + + hi VertSplit guifg=#222222 guibg=#2b2b2b gui=none + hi Title guifg=#d0d0d0 guibg=NONE gui=bold + + hi TabLine guifg=#afd700 guibg=#005f00 gui=none + hi TabLineSel guifg=#005f00 guibg=#afd700 gui=none + hi TabLineFill guifg=#303030 guibg=#a0a0a0 gui=none + + " Language Specific ########################################################## + + " Python (non-default syntax file) + hi PythonOperator guifg=#7aa6c2 gui=none + hi pythonDocstring guifg=#6a7a8d guibg=NONE gui=none + hi pythonDoctest guifg=#4a6a8d + hi link pythonDocTest pythonDoctest + hi link pythonDocTest2 pythonDoctest + + " C + hi link cType Type + + " Embedded inside HTML