citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

herald.vim (15692B)


      1 " Vim color file
      2 " Name:       herald.vim
      3 " Author:     Fabio Cevasco <h3rald@h3rald.com>
      4 " Version:    0.2.0
      5 " Notes:      Supports 8, 16, 256 and 16,777,216 (RGB) color modes
      6 
      7 hi clear
      8 
      9 if exists("syntax_on")
     10 	syntax reset
     11 endif
     12 
     13 let colors_name = "herald"
     14 
     15 set background=dark
     16 
     17 " Set some syntax-related variables
     18 let ruby_operators = 1
     19 
     20 if has("gui_running")
     21 
     22 	" -> Text; Miscellaneous
     23 	hi Normal         guibg=#1F1F1F guifg=#D0D0D0 gui=none
     24 	hi SpecialKey     guibg=#1F1F1F guifg=#E783E9 gui=none
     25 	hi VertSplit      guibg=#1F1F1F guifg=#FFEE68 gui=none
     26 	hi SignColumn     guibg=#1F1F1F guifg=#BF81FA gui=none
     27 	hi NonText        guibg=#1F1F1F guifg=#FC6984 gui=none
     28 	hi Directory      guibg=#1F1F1F guifg=#FFEE68 gui=none 
     29 	hi Title          guibg=#1F1F1F guifg=#6DF584 gui=bold
     30 
     31 	" -> Cursor 
     32 	hi Cursor         guibg=#FFEE68 guifg=#1F1F1F gui=none
     33 	hi CursorIM       guibg=#FFEE68 guifg=#1F1F1F gui=none
     34 	hi CursorColumn   guibg=#000000               gui=none
     35 	hi CursorLine     guibg=#000000               gui=none
     36 
     37 	" -> Folding
     38 	hi FoldColumn     guibg=#001336 guifg=#003DAD gui=none
     39 	hi Folded         guibg=#001336 guifg=#003DAD gui=none
     40 
     41 	" -> Line info  
     42 	hi LineNr         guibg=#000000 guifg=#696567 gui=none
     43 	hi StatusLine     guibg=#000000 guifg=#696567 gui=none
     44 	hi StatusLineNC   guibg=#25365a guifg=#696567 gui=none
     45 
     46 	" -> Messages
     47 	hi ErrorMsg       guibg=#A32024 guifg=#D0D0D0 gui=none
     48 	hi Question       guibg=#1F1F1F guifg=#FFA500 gui=none
     49 	hi WarningMsg     guibg=#FFA500 guifg=#000000 gui=none
     50 	hi MoreMsg        guibg=#1F1F1F guifg=#FFA500 gui=none
     51 	hi ModeMsg        guibg=#1F1F1F guifg=#FFA500 gui=none
     52 
     53 	" -> Search 
     54 	hi Search         guibg=#696567 guifg=#FFEE68 gui=none 
     55 	hi IncSearch      guibg=#696567 guifg=#FFEE68 gui=none
     56 
     57 	" -> Diff
     58 	hi DiffAdd        guibg=#006124 guifg=#ED9000 gui=none
     59 	hi DiffChange     guibg=#0B294A guifg=#A36000 gui=none
     60 	hi DiffDelete     guibg=#081F38 guifg=#ED9000 gui=none
     61 	hi DiffText       guibg=#12457D guifg=#ED9000 gui=underline
     62 
     63 	" -> Menu
     64 	hi Pmenu          guibg=#140100 guifg=#660300 gui=none
     65 	hi PmenuSel       guibg=#F17A00 guifg=#4C0200 gui=none
     66 	hi PmenuSbar      guibg=#430300               gui=none
     67 	hi PmenuThumb     guibg=#720300               gui=none
     68 	hi PmenuSel       guibg=#F17A00 guifg=#4C0200 gui=none
     69 
     70 	" -> Tabs
     71 	hi TabLine        guibg=#141414 guifg=#1F1F1F gui=none
     72 	hi TabLineFill    guibg=#000000               gui=none
     73 	hi TabLineSel     guibg=#1F1F1F guifg=#D0D0D0 gui=bold  
     74 	"
     75 	" -> Visual Mode
     76 	hi Visual         guibg=#000000 guifg=#FFB539 gui=none
     77 	hi VisualNOS      guibg=#000000 guifg=#696567 gui=none
     78 
     79 	" -> Code
     80 	hi Comment        guibg=#1F1F1F guifg=#696567 gui=none
     81 	hi Constant       guibg=#1F1F1F guifg=#6DF584 gui=none
     82 	hi String         guibg=#1F1F1F guifg=#FFB539 gui=none
     83 	hi Error          guibg=#1F1F1F guifg=#FC4234 gui=none
     84 	hi Identifier     guibg=#1F1F1F guifg=#70BDF1 gui=none
     85 	hi Function       guibg=#1F1F1F guifg=#90CBF1 gui=none
     86 	hi Ignore         guibg=#1F1F1F guifg=#1F1F1F gui=none
     87 	hi MatchParen     guibg=#FFA500 guifg=#1F1F1F gui=none
     88 	hi PreProc        guibg=#1F1F1F guifg=#BF81FA gui=none
     89 	hi Special        guibg=#1F1F1F guifg=#FFEE68 gui=none
     90 	hi Todo           guibg=#1F1F1F guifg=#FC4234 gui=bold
     91 	hi Underlined     guibg=#1F1F1F guifg=#FC4234 gui=underline
     92 	hi Statement      guibg=#1F1F1F guifg=#E783E9 gui=none
     93 	hi Operator       guibg=#1F1F1F guifg=#FC6984 gui=none
     94 	hi Delimiter      guibg=#1F1F1F guifg=#FC6984 gui=none
     95 	hi Type           guibg=#1F1F1F guifg=#FFEE68 gui=none
     96 	hi Exception      guibg=#1F1F1F guifg=#FC4234 gui=none
     97 
     98 	" -> HTML-specific
     99 	hi htmlBold                 guibg=#1F1F1F guifg=#D0D0D0 gui=bold
    100 	hi htmlBoldItalic           guibg=#1F1F1F guifg=#D0D0D0 gui=bold,italic
    101 	hi htmlBoldUnderline        guibg=#1F1F1F guifg=#D0D0D0 gui=bold,underline
    102 	hi htmlBoldUnderlineItalic  guibg=#1F1F1F guifg=#D0D0D0 gui=bold,underline,italic
    103 	hi htmlItalic               guibg=#1F1F1F guifg=#D0D0D0 gui=italic
    104 	hi htmlUnderline            guibg=#1F1F1F guifg=#D0D0D0 gui=underline
    105 	hi htmlUnderlineItalic      guibg=#1F1F1F guifg=#D0D0D0 gui=underline,italic
    106 
    107 elseif &t_Co == 256
    108 
    109 	" -> Text; Miscellaneous
    110 	hi Normal         ctermbg=234  ctermfg=252   cterm=none
    111 	hi SpecialKey     ctermbg=234  ctermfg=176   cterm=none
    112 	hi VertSplit      ctermbg=234  ctermfg=227   cterm=none
    113 	hi SignColumn     ctermbg=234  ctermfg=141   cterm=none
    114 	hi NonText        ctermbg=234  ctermfg=204   cterm=none
    115 	hi Directory      ctermbg=234  ctermfg=227   cterm=none 
    116 	hi Title          ctermbg=234  ctermfg=84    cterm=bold
    117 
    118 	" -> Cursor 
    119 	hi Cursor         ctermbg=227  ctermfg=234   cterm=none
    120 	hi CursorIM       ctermbg=227  ctermfg=234   cterm=none
    121 	hi CursorColumn   ctermbg=0                  cterm=none
    122 	hi CursorLine     ctermbg=0                  cterm=none
    123 
    124 	" -> Folding
    125 	hi FoldColumn     ctermbg=234  ctermfg=25    cterm=none
    126 	hi Folded         ctermbg=234  ctermfg=25    cterm=none
    127 
    128 	" -> Line info  
    129 	hi LineNr         ctermbg=0    ctermfg=241   cterm=none
    130 	hi StatusLine     ctermbg=0    ctermfg=241   cterm=none
    131 	hi StatusLineNC   ctermbg=237  ctermfg=241   cterm=none
    132 
    133 	" -> Messages
    134 	hi ErrorMsg       ctermbg=124  ctermfg=252   cterm=none
    135 	hi Question       ctermbg=234  ctermfg=214   cterm=none
    136 	hi WarningMsg     ctermbg=214  ctermfg=0     cterm=none
    137 	hi MoreMsg        ctermbg=234  ctermfg=214   cterm=none
    138 	hi ModeMsg        ctermbg=234  ctermfg=214   cterm=none
    139 
    140 	" -> Search 
    141 	hi Search         ctermbg=241  ctermfg=227   cterm=none 
    142 	hi IncSearch      ctermbg=241  ctermfg=227   cterm=none
    143 
    144 	" -> Diff
    145 	hi DiffAdd        ctermbg=22   ctermfg=208   cterm=none
    146 	hi DiffChange     ctermbg=235  ctermfg=130   cterm=none
    147 	hi DiffDelete     ctermbg=234  ctermfg=208   cterm=none
    148 	hi DiffText       ctermbg=24   ctermfg=208   cterm=underline
    149 
    150 	" -> Menu
    151 	hi Pmenu          ctermbg=0    ctermfg=52    cterm=none
    152 	hi PmenuSel       ctermbg=208  ctermfg=52    cterm=none
    153 	hi PmenuSbar      ctermbg=52                 cterm=none
    154 	hi PmenuThumb     ctermbg=52                 cterm=none
    155 	hi PmenuSel       ctermbg=208  ctermfg=52    cterm=none
    156 
    157 	" -> Tabs
    158 	hi TabLine        ctermbg=233  ctermfg=234   cterm=none
    159 	hi TabLineFill    ctermbg=0                  cterm=none
    160 	hi TabLineSel     ctermbg=234  ctermfg=252   cterm=bold 
    161 	"
    162 	" -> Visual Mode
    163 	hi Visual         ctermbg=0    ctermfg=215   cterm=none 
    164 	hi VisualNOS      ctermbg=0    ctermfg=241   cterm=none
    165 
    166 	" -> Code
    167 	hi Comment        ctermbg=234  ctermfg=241   cterm=none
    168 	hi Constant       ctermbg=234  ctermfg=84    cterm=none
    169 	hi String         ctermbg=234  ctermfg=215   cterm=none
    170 	hi Error          ctermbg=234  ctermfg=203   cterm=none
    171 	hi Identifier     ctermbg=234  ctermfg=75    cterm=none
    172 	hi Function       ctermbg=234  ctermfg=117   cterm=none
    173 	hi Ignore         ctermbg=234  ctermfg=234   cterm=none
    174 	hi MatchParen     ctermbg=214  ctermfg=234   cterm=none
    175 	hi PreProc        ctermbg=234  ctermfg=141   cterm=none
    176 	hi Special        ctermbg=234  ctermfg=227   cterm=none
    177 	hi Todo           ctermbg=234  ctermfg=203   cterm=bold
    178 	hi Underlined     ctermbg=234  ctermfg=203   cterm=underline
    179 	hi Statement      ctermbg=234  ctermfg=176   cterm=none
    180 	hi Operator       ctermbg=234  ctermfg=204   cterm=none
    181 	hi Delimiter      ctermbg=234  ctermfg=204   cterm=none
    182 	hi Type           ctermbg=234  ctermfg=227   cterm=none
    183 	hi Exception      ctermbg=234  ctermfg=203   cterm=none 
    184 
    185 	" -> HTML-specific
    186 	hi htmlBold                 ctermbg=234  ctermfg=252   cterm=bold
    187 	hi htmlBoldItalic           ctermbg=234  ctermfg=252   cterm=bold,italic
    188 	hi htmlBoldUnderline        ctermbg=234  ctermfg=252   cterm=bold,underline
    189 	hi htmlBoldUnderlineItalic  ctermbg=234  ctermfg=252   cterm=bold,underline,italic
    190 	hi htmlItalic               ctermbg=234  ctermfg=252   cterm=italic
    191 	hi htmlUnderline            ctermbg=234  ctermfg=252   cterm=underline
    192 	hi htmlUnderlineItalic      ctermbg=234  ctermfg=252   cterm=underline,italic
    193 
    194 elseif &t_Co == 16
    195 
    196 	" -> Text; Miscellaneous
    197 	hi Normal         ctermbg=8  ctermfg=15 cterm=none
    198 	hi SpecialKey     ctermbg=8  ctermfg=5  cterm=none
    199 	hi VertSplit      ctermbg=8  ctermfg=14  cterm=none
    200 	hi SignColumn     ctermbg=8  ctermfg=5  cterm=none
    201   hi NonText        ctermbg=8  ctermfg=4  cterm=none
    202   hi Directory      ctermbg=8  ctermfg=14  cterm=none 
    203   hi Title          ctermbg=8  ctermfg=10 cterm=bold
    204 
    205   " -> Cursor 
    206   hi Cursor         ctermbg=14 ctermfg=8  cterm=none
    207   hi CursorIM       ctermbg=14 ctermfg=8  cterm=none
    208   hi CursorColumn   ctermbg=0            cterm=none
    209   hi CursorLine     ctermbg=0            cterm=none
    210 
    211   " -> Folding
    212   hi FoldColumn     ctermbg=0  ctermfg=1  cterm=none
    213   hi Folded         ctermbg=0  ctermfg=1  cterm=none
    214 
    215   " -> Line info  
    216   hi LineNr         ctermbg=0  ctermfg=7  cterm=none
    217   hi StatusLine     ctermbg=0  ctermfg=7  cterm=none
    218   hi StatusLineNC   ctermbg=0  ctermfg=7  cterm=none
    219 
    220   " -> Messages
    221   hi ErrorMsg       ctermbg=4  ctermfg=7  cterm=none
    222   hi Question       ctermbg=8  ctermfg=14 cterm=none
    223   hi WarningMsg     ctermbg=14 ctermfg=0  cterm=none
    224   hi MoreMsg        ctermbg=8  ctermfg=14 cterm=none
    225   hi ModeMsg        ctermbg=8  ctermfg=14 cterm=none
    226 
    227   " -> Search 
    228   hi Search         ctermbg=7  ctermfg=14 cterm=none 
    229   hi IncSearch      ctermbg=7  ctermfg=14 cterm=none
    230 
    231   " -> Diff
    232   hi DiffAdd        ctermbg=0  ctermfg=10 cterm=none
    233   hi DiffChange     ctermbg=0  ctermfg=14 cterm=none
    234   hi DiffDelete     ctermbg=0  ctermfg=12 cterm=none
    235   hi DiffText       ctermbg=1  ctermfg=14 cterm=underline
    236 
    237   " -> Menu
    238   hi Pmenu          ctermbg=0  ctermfg=4  cterm=none
    239   hi PmenuSel       ctermbg=14 ctermfg=4  cterm=none
    240   hi PmenuSbar      ctermbg=0             cterm=none
    241   hi PmenuThumb     ctermbg=4             cterm=none
    242   hi PmenuSel       ctermbg=14 ctermfg=4  cterm=none
    243 
    244   " -> Tabs
    245   hi TabLine        ctermbg=7  ctermfg=8  cterm=none
    246   hi TabLineFill    ctermbg=0             cterm=none
    247   hi TabLineSel     ctermbg=8  ctermfg=7  cterm=bold  
    248   "
    249   " -> Visual Mode
    250   hi Visual         ctermbg=0  ctermfg=14 cterm=none
    251   hi VisualNOS      ctermbg=0  ctermfg=7  cterm=none
    252 
    253   " -> Code
    254   hi Comment        ctermbg=8  ctermfg=7  cterm=none
    255   hi Constant       ctermbg=8  ctermfg=10 cterm=none
    256   hi String         ctermbg=8  ctermfg=6  cterm=none
    257   hi Error          ctermbg=8  ctermfg=4  cterm=none
    258   hi Identifier     ctermbg=8  ctermfg=11 cterm=none
    259   hi Function       ctermbg=8  ctermfg=11 cterm=none
    260   hi Ignore         ctermbg=8  ctermfg=8  cterm=none
    261   hi MatchParen     ctermbg=14 ctermfg=8  cterm=none
    262   hi PreProc        ctermbg=8  ctermfg=5  cterm=none
    263   hi Special        ctermbg=8  ctermfg=14 cterm=none
    264   hi Todo           ctermbg=8  ctermfg=12 cterm=bold
    265   hi Underlined     ctermbg=8  ctermfg=12 cterm=underline
    266   hi Statement      ctermbg=8  ctermfg=13 cterm=none
    267   hi Operator       ctermbg=8  ctermfg=4  cterm=none
    268   hi Delimiter      ctermbg=8  ctermfg=4 cterm=none
    269   hi Type           ctermbg=8  ctermfg=14 cterm=none
    270   hi Exception      ctermbg=8  ctermfg=12 cterm=none
    271 
    272   " -> HTML-specific
    273   hi htmlBold                  ctermbg=8 ctermfg=7 cterm=bold
    274   hi htmlBoldItalic            ctermbg=8 ctermfg=7 cterm=bold,italic
    275   hi htmlBoldUnderline         ctermbg=8 ctermfg=7 cterm=bold,underline
    276   hi htmlBoldUnderlineItalic   ctermbg=8 ctermfg=7 cterm=bold,underline,italic
    277   hi htmlItalic                ctermbg=8 ctermfg=7 cterm=italic
    278   hi htmlUnderline             ctermbg=8 ctermfg=7 cterm=underline
    279   hi htmlUnderlineItalic       ctermbg=8 ctermfg=7 cterm=underline,italic
    280 
    281 
    282 elseif &t_Co == 8
    283 
    284 	" -> Text; Miscellaneous
    285 	hi Normal         ctermbg=8  ctermfg=7  cterm=none
    286 	hi SpecialKey     ctermbg=8  ctermfg=5  cterm=none
    287 	hi VertSplit      ctermbg=8  ctermfg=6  cterm=none
    288 	hi SignColumn     ctermbg=8  ctermfg=5  cterm=none
    289   hi NonText        ctermbg=8  ctermfg=4  cterm=none
    290   hi Directory      ctermbg=8  ctermfg=6  cterm=none 
    291   hi Title          ctermbg=8  ctermfg=2  cterm=bold
    292 
    293   " -> Cursor 
    294   hi Cursor         ctermbg=6  ctermfg=8  cterm=none
    295   hi CursorIM       ctermbg=6  ctermfg=8  cterm=none
    296   hi CursorColumn   ctermbg=0             cterm=none
    297   hi CursorLine     ctermbg=0             cterm=none
    298 
    299   " -> Folding
    300   hi FoldColumn     ctermbg=0  ctermfg=1  cterm=none
    301   hi Folded         ctermbg=0  ctermfg=1  cterm=none
    302 
    303   " -> Line info  
    304   hi LineNr         ctermbg=0  ctermfg=7  cterm=none
    305   hi StatusLine     ctermbg=0  ctermfg=7  cterm=none
    306   hi StatusLineNC   ctermbg=0  ctermfg=7  cterm=none
    307 
    308   " -> Messages
    309   hi ErrorMsg       ctermbg=4  ctermfg=7  cterm=none
    310   hi Question       ctermbg=8  ctermfg=6  cterm=none
    311   hi WarningMsg     ctermbg=6  ctermfg=0  cterm=none
    312   hi MoreMsg        ctermbg=8  ctermfg=6  cterm=none
    313   hi ModeMsg        ctermbg=8  ctermfg=6  cterm=none
    314 
    315   " -> Search 
    316   hi Search         ctermbg=7  ctermfg=6  cterm=none 
    317   hi IncSearch      ctermbg=7  ctermfg=6  cterm=none
    318 
    319   " -> Diff
    320   hi DiffAdd        ctermbg=0  ctermfg=2  cterm=none
    321   hi DiffChange     ctermbg=0  ctermfg=6  cterm=none
    322   hi DiffDelete     ctermbg=0  ctermfg=4  cterm=none
    323   hi DiffText       ctermbg=1  ctermfg=6  cterm=underline
    324 
    325   " -> Menu
    326   hi Pmenu          ctermbg=0  ctermfg=4  cterm=none
    327   hi PmenuSel       ctermbg=6  ctermfg=4  cterm=none
    328   hi PmenuSbar      ctermbg=0             cterm=none
    329   hi PmenuThumb     ctermbg=4             cterm=none
    330   hi PmenuSel       ctermbg=6  ctermfg=4  cterm=none
    331 
    332   " -> Tabs
    333   hi TabLine        ctermbg=7  ctermfg=8  cterm=none
    334   hi TabLineFill    ctermbg=0             cterm=none
    335   hi TabLineSel     ctermbg=8  ctermfg=7  cterm=bold  
    336   "
    337   " -> Visual Mode
    338   hi Visual         ctermbg=0  ctermfg=6 cterm=none
    339   hi VisualNOS      ctermbg=0  ctermfg=7  cterm=none
    340 
    341   " -> Code
    342   hi Comment        ctermbg=8  ctermfg=7  cterm=none
    343   hi Constant       ctermbg=8  ctermfg=2 cterm=none
    344   hi String         ctermbg=8  ctermfg=6  cterm=none
    345   hi Error          ctermbg=8  ctermfg=4  cterm=none
    346   hi Identifier     ctermbg=8  ctermfg=3 cterm=none
    347   hi Function       ctermbg=8  ctermfg=3 cterm=none
    348   hi Ignore         ctermbg=8  ctermfg=8  cterm=none
    349   hi MatchParen     ctermbg=6  ctermfg=8  cterm=none
    350   hi PreProc        ctermbg=8  ctermfg=5  cterm=none
    351   hi Special        ctermbg=8  ctermfg=6 cterm=none
    352   hi Todo           ctermbg=8  ctermfg=4 cterm=bold
    353   hi Underlined     ctermbg=8  ctermfg=4 cterm=underline
    354   hi Statement      ctermbg=8  ctermfg=5 cterm=none
    355   hi Operator       ctermbg=8  ctermfg=4  cterm=none
    356   hi Delimiter      ctermbg=8  ctermfg=4 cterm=none
    357   hi Type           ctermbg=8  ctermfg=6 cterm=none
    358   hi Exception      ctermbg=8  ctermfg=4 cterm=none
    359 
    360   " -> HTML-specific
    361   hi htmlBold                  ctermbg=8 ctermfg=7 cterm=bold
    362   hi htmlBoldItalic            ctermbg=8 ctermfg=7 cterm=bold,italic
    363   hi htmlBoldUnderline         ctermbg=8 ctermfg=7 cterm=bold,underline
    364   hi htmlBoldUnderlineItalic   ctermbg=8 ctermfg=7 cterm=bold,underline,italic
    365   hi htmlItalic                ctermbg=8 ctermfg=7 cterm=italic
    366   hi htmlUnderline             ctermbg=8 ctermfg=7 cterm=underline
    367   hi htmlUnderlineItalic       ctermbg=8 ctermfg=7 cterm=underline,italic
    368 
    369 endif
    370 
    371 hi! default link bbcodeBold htmlBold
    372 hi! default link bbcodeBoldItalic htmlBoldItalic
    373 hi! default link bbcodeBoldItalicUnderline htmlBoldUnderlineItalic
    374 hi! default link bbcodeBoldUnderline htmlBoldUnderline
    375 hi! default link bbcodeItalic htmlItalic
    376 hi! default link bbcodeItalicUnderline htmlUnderlineItalic
    377 hi! default link bbcodeUnderline htmlUnderline
    378 
    379 " Spellcheck formatting
    380 if has("spell")
    381 	hi SpellBad   guisp=#FC4234 gui=undercurl
    382 	hi SpellCap   guisp=#70BDF1 gui=undercurl
    383 	hi SpellLocal guisp=#FFEE68 gui=undercurl
    384 	hi SpellRare  guisp=#6DF584 gui=undercurl
    385 endif