xonecas.io
314
Vc

vim-colors-256 / commit 230d840

initial commit

sean2015-11-05 230d840c94c69cb3c081f93eda591c72aff881da parent cd3d0ca

27 files changed

This diff is too big to show in full. The first 1000 lines are below, and every file is listed with its counts.

colors/256-grayvim.vim+46−0
@@ -0,0 +1,46 @@
1+" Vim color file
2+" Maintainer: Piotr Husiatyński <phusiatynski@gmail.com>
3+
4+set background=dark
5+set t_Co=256
6+let g:colors_name="256-grayvim"
7+
8+let python_highlight_all = 1
9+let c_gnu = 1
10+
11+
12+hi Normal ctermfg=253 ctermbg=235 cterm=None
13+hi Cursor ctermfg=Red ctermbg=None cterm=None
14+hi SpecialKey ctermfg=87 ctermbg=None cterm=Bold
15+hi Directory ctermfg=76 ctermbg=None cterm=None
16+hi ErrorMsg ctermfg=124 ctermbg=White cterm=None
17+hi PreProc ctermfg=246 ctermbg=None cterm=Bold
18+hi Search ctermfg=160 ctermbg=232 cterm=Bold
19+hi Type ctermfg=75 ctermbg=None cterm=Bold
20+hi Statement ctermfg=75 ctermbg=None cterm=None
21+hi Comment ctermfg=244 ctermbg=None cterm=None
22+hi Identifier ctermfg=111 ctermbg=None cterm=Bold
23+hi DiffText ctermfg=88 ctermbg=250 cterm=None
24+hi Constant ctermfg=208 ctermbg=None cterm=None
25+hi Todo ctermfg=233 ctermbg=118 cterm=Bold
26+hi Error ctermfg=233 ctermbg=124 cterm=Bold
27+hi Special ctermfg=160 ctermbg=None cterm=Bold
28+hi Ignore ctermfg=220 ctermbg=None cterm=Bold
29+hi Underline ctermfg=244 ctermbg=None cterm=None
30+
31+hi FoldColumn ctermfg=247 ctermbg=None cterm=Bold
32+hi StatusLineNC ctermfg=247 ctermbg=234 cterm=None
33+hi StatusLine ctermfg=247 ctermbg=233 cterm=Bold
34+hi VertSplit ctermfg=247 ctermbg=234 cterm=Bold
35+
36+hi LineNr ctermfg=238 ctermbg=244 cterm=Bold
37+hi LineNr ctermfg=247 ctermbg=235 cterm=Bold
38+hi NonText ctermfg=87 ctermbg=None cterm=Bold
39+
40+
41+hi Pmenu ctermfg=White ctermbg=DarkGray cterm=None
42+hi PmenuSel ctermfg=None ctermbg=Gray cterm=Bold
43+hi PmenuSbar ctermfg=DarkGray ctermbg=DarkGray cterm=None
44+hi PmenuThumb ctermfg=Gray ctermbg=Gray cterm=None
45+
46+"vim: sw=4
colors/256-jungle.vim+50−0
@@ -0,0 +1,50 @@
1+" Vim color file
2+" Maintainer: Piotr Husiatyński <phusiatynski@gmail.com>
3+
4+set background=dark
5+set t_Co=256
6+let g:colors_name="256-jungle"
7+
8+let python_highlight_all = 1
9+let c_gnu = 1
10+
11+
12+hi Normal ctermfg=253 ctermbg=234 cterm=None
13+hi Cursor ctermfg=253 ctermbg=57 cterm=None
14+hi SpecialKey ctermfg=70 ctermbg=None cterm=None
15+hi Directory ctermfg=57 ctermbg=254 cterm=None
16+hi ErrorMsg ctermfg=160 ctermbg=245 cterm=None
17+hi PreProc ctermfg=243 ctermbg=None cterm=Bold
18+hi Search ctermfg=125 ctermbg=None cterm=Bold
19+hi Type ctermfg=166 ctermbg=None cterm=Bold
20+hi Statement ctermfg=172 ctermbg=None cterm=Bold
21+hi Comment ctermfg=240 ctermbg=None cterm=None
22+hi LineNr ctermfg=244 ctermbg=233 cterm=None
23+hi NonText ctermfg=105 ctermbg=None cterm=Bold
24+hi DiffText ctermfg=165 ctermbg=244 cterm=None
25+hi Constant ctermfg=76 ctermbg=None cterm=None
26+hi Todo ctermfg=162 ctermbg=None cterm=Bold
27+hi Identifier ctermfg=142 ctermbg=None cterm=Bold
28+hi Error ctermfg=None ctermbg=196 cterm=Bold
29+hi Special ctermfg=172 ctermbg=None cterm=Bold
30+hi Ignore ctermfg=221 ctermbg=None cterm=Bold
31+hi Underline ctermfg=147 ctermbg=None cterm=Italic
32+
33+hi FoldColumn ctermfg=132 ctermbg=None cterm=None
34+hi Folded ctermfg=132 ctermbg=None cterm=Bold
35+
36+hi Visual ctermfg=248 ctermbg=238 cterm=None
37+
38+hi Pmenu ctermfg=62 ctermbg=233 cterm=None
39+hi PmenuSel ctermfg=69 ctermbg=232 cterm=Bold
40+hi PmenuSbar ctermfg=247 ctermbg=233 cterm=Bold
41+hi PmenuThumb ctermfg=248 ctermbg=233 cterm=None
42+
43+hi StatusLineNC ctermfg=248 ctermbg=239 cterm=None
44+hi StatusLine ctermfg=39 ctermbg=239 cterm=None
45+hi VertSplit ctermfg=239 ctermbg=239 cterm=None
46+
47+hi TabLine ctermfg=245 ctermbg=239 cterm=None
48+hi TabLineFill ctermfg=239 ctermbg=239
49+hi TabLineSel ctermfg=104 ctermbg=236 cterm=Bold
50+"vim: sw=4
colors/babymate256.vim+109−0
@@ -0,0 +1,109 @@
1+" Vim color file
2+"
3+" Port of gtksourceview babymate color scheme for 256-color terminals by Anton Bobrov (bobrov@vl.ru)
4+
5+set background=dark
6+
7+if version > 580
8+ hi clear
9+ if exists("syntax_on")
10+ syntax reset
11+ endif
12+endif
13+
14+
15+
16+let colors_name = "babymate256"
17+
18+" General colors
19+hi Normal guifg=#e3e3e3 ctermfg=254 guibg=#222429 ctermbg=235 gui=none cterm=none
20+hi Cursor guifg=#222429 ctermfg=235 guibg=#e3e3e3 ctermbg=254 gui=none cterm=none
21+hi Visual guibg=#506681 ctermbg=60 gui=none cterm=none
22+hi VisualNOS guifg=#e3e3e3 ctermfg=254 guibg=#666666 ctermbg=241 gui=none cterm=none
23+hi Search guifg=#e3e3e3 ctermfg=254 guibg=#506681 ctermbg=60 gui=none cterm=none
24+hi Folded guifg=#666666 ctermfg=241 guibg=#222429 ctermbg=235 gui=none cterm=none
25+" hi Title gui=none cterm=none
26+hi StatusLine guifg=#000000 ctermfg=16 guibg=#c7c7c7 ctermbg=251 gui=none cterm=none
27+hi StatusLineNC guifg=#666666 ctermfg=241 guibg=#c7c7c7 ctermbg=251 gui=none cterm=none
28+hi VertSplit guifg=#c7c7c7 ctermfg=251 guibg=#c7c7c7 ctermbg=251 gui=none cterm=none
29+hi LineNr guifg=#666666 ctermfg=241 guibg=#000000 ctermbg=16 gui=none cterm=none
30+hi NonText guifg=#666666 ctermfg=241 guibg=#222429 ctermbg=235 gui=none cterm=none
31+" hi SpecialKey gui=none cterm=none
32+" hi WarningMsg gui=none cterm=none
33+hi ErrorMsg guifg=#e3e3e3 ctermfg=254 gui=none cterm=none
34+hi Error guifg=#e3e3e3 ctermfg=254 gui=none cterm=none
35+
36+" Vim >= 7.0 specific colors
37+if version >= 700
38+ hi CursorLine guibg=#3a3d45 ctermbg=237 gui=none cterm=none
39+ hi MatchParen guifg=#e3e3e3 ctermfg=254 guibg=#000000 ctermbg=16 gui=none cterm=none
40+ hi Pmenu guifg=#e3e3e3 ctermfg=254 guibg=#3a3d45 ctermbg=237 gui=none cterm=none
41+ hi PmenuSel guifg=#15171c ctermfg=233 guibg=#c7c7c7 ctermbg=251 gui=none cterm=none
42+ hi PmenuSbar guifg=#3a3d45 ctermfg=237 guibg=#3a3d45 ctermbg=237 gui=none cterm=none
43+ hi PmenuThumb guifg=#666666 ctermfg=241 guibg=#666666 ctermbg=241 gui=none cterm=none
44+endif
45+
46+" Diff highlighting
47+hi DiffAdd guifg=#222429 ctermfg=235 guibg=#cbf8b0 ctermbg=193 gui=none cterm=none
48+hi DiffDelete guifg=#222429 ctermfg=235 guibg=#ffc0cb ctermbg=217 gui=none cterm=none
49+hi DiffChange guifg=#222429 ctermfg=235 guibg=#9cbddd ctermbg=110 gui=none cterm=none
50+hi DiffText guifg=#222429 ctermfg=235 guibg=#d0cffe ctermbg=189 gui=none cterm=none
51+
52+"hi CursorIM
53+"hi Directory
54+"hi IncSearch
55+"hi Menu
56+"hi ModeMsg
57+"hi MoreMsg
58+"hi PmenuSbar
59+"hi PmenuThumb
60+"hi Question
61+"hi Scrollbar
62+"hi SignColumn
63+"hi SpellBad
64+"hi SpellCap
65+"hi SpellLocal
66+"hi SpellRare
67+"hi TabLine
68+"hi TabLineFill
69+"hi TabLineSel
70+"hi Tooltip
71+"hi User1
72+"hi User9
73+"hi WildMenu
74+
75+
76+" Syntax highlighting
77+hi Keyword guifg=#ffc0cb ctermfg=217 gui=none cterm=none
78+" hi Statement guifg=#d0cffe ctermfg=189 gui=none cterm=none
79+hi Statement guifg=#ffc0cb ctermfg=217 gui=none cterm=none
80+hi Constant guifg=#e3e3e3 ctermfg=254 gui=none cterm=none
81+hi Number guifg=#9cbddd ctermfg=110 gui=none cterm=none
82+hi PreProc guifg=#ffc0cb ctermfg=217 gui=none cterm=none
83+hi Function guifg=#cbf8b0 ctermfg=193 gui=none cterm=none
84+hi Identifier guifg=#9cbddd ctermfg=110 gui=none cterm=none
85+hi Builtin guifg=#9cbddd ctermfg=110 gui=none cterm=none
86+hi Type guifg=#cbf8b0 ctermfg=193 gui=none cterm=none
87+hi Special guifg=#e3e3e3 ctermfg=254 gui=none cterm=none
88+hi String guifg=#9cbddd ctermfg=110 gui=none cterm=none
89+hi Character guifg=#ffc0cb ctermfg=217 gui=none cterm=none
90+hi Comment guifg=#666666 ctermfg=241 gui=italic cterm=italic
91+hi Todo guifg=#e3e3e3 ctermfg=254 guibg=#000000 ctermbg=16 gui=none cterm=none
92+hi Boolean guifg=#9cbddd ctermfg=110 gui=none cterm=none
93+
94+
95+" Links
96+hi! link FoldColumn Folded
97+hi! link CursorColumn CursorLine
98+hi! link ColorColumn CursorLine
99+
100+hi! link pythonBuiltin Builtin
101+hi! link pythonKeyword Statement
102+
103+" xterm color fix:
104+" printf '\033]11;#222429\007\033]4;16;#000000;60;#506681;110;#9CBDDD;189;#D0CFFE;193;#CBF8B0;217;#FFC0CB;233;#15171C;235;#222429;237;#3A3D45;241;#666666;251;#C7C7C7;254;#E3E3E3\007'
105+
106+" urxvt color fix:
107+" urxvt -bg #222429
108+" urxvt*background: #222429
109+" printf '\033]4;16;#000000;60;#506681;110;#9CBDDD;189;#D0CFFE;193;#CBF8B0;217;#FFC0CB;233;#15171C;235;#222429;237;#3A3D45;241;#666666;251;#C7C7C7;254;#E3E3E3\007'
colors/beauty256.vim+79−0
@@ -0,0 +1,79 @@
1+" Vim colour scheme
2+" Maintainer: Mahmoud Sahebi Afzal
3+" Last Change: 22 March 2008
4+" Version: 1.0
5+"
6+" This colorscheme is my try to be beautiful as posible in the xterm
7+" 256 color environments
8+
9+hi clear
10+set background=light
11+if exists("syntax_on")
12+ syntax reset
13+endif
14+
15+let g:colors_name = 'beauty256'
16+
17+hi Normal gui=none guifg=Black guibg=White ctermfg=0 ctermbg=231
18+
19+hi Cursor guifg=White guibg=Black ctermfg=231 ctermbg=16
20+hi LineNr gui=bold guifg=#828c95 guibg=#bbbbbb ctermfg=244 ctermbg=7
21+hi NonText gui=bold guifg=DarkGray guibg=#bbbbbb ctermfg=7 ctermbg=7
22+hi SpecialKey term=bold ctermfg=4
23+hi Title term=bold ctermfg=5 guifg=RoyalBlue4
24+hi Visual term=reverse ctermbg=7 guifg=White guibg=#829db9
25+hi Ignore ctermfg=bg guifg=bg
26+
27+hi FoldColumn guifg=Black guibg=#979797 ctermbg=7 ctermfg=4
28+hi Folded guifg=Black guibg=#bbbbbb ctermbg=7 ctermfg=244
29+hi StatusLine guifg=#ddddff guibg=#220088 ctermfg=5 ctermbg=231
30+hi StatusLineNC guifg=#829db9 guibg=Black ctermfg=8 ctermbg=188
31+hi VertSplit gui=bold guifg=#9ca6af guibg=Black cterm=bold ctermfg=231 ctermbg=8
32+hi Wildmenu guifg=Black guibg=White ctermfg=0 ctermbg=11
33+"hi CursorLine ctermbg=255
34+hi Pmenu guibg=Grey65 guifg=Black gui=none ctermfg=250 ctermbg=238
35+hi PmenuSbar guibg=Grey50 guifg=fg gui=none ctermbg=214
36+hi PmenuSel guibg=Yellow guifg=Black gui=none ctermbg=214 ctermfg=16
37+hi PmenuThumb guibg=Grey75 guifg=fg gui=none cterm=reverse
38+
39+hi IncSearch gui=none guifg=White guibg=Black cterm=reverse
40+hi Search gui=none guifg=Black guibg=Yellow ctermbg=11
41+
42+hi MoreMsg gui=bold guifg=ForestGreen
43+hi Question gui=bold guifg=ForestGreen
44+hi WarningMsg gui=bold guifg=Red
45+
46+hi Comment gui=italic guifg=#9999cc ctermfg=248
47+hi Error gui=none guifg=White guibg=Red ctermfg=15 ctermbg=197
48+hi Identifier gui=none guifg=Sienna4 ctermfg=94
49+hi Special gui=none guifg=RoyalBlue4 ctermfg=69
50+hi PreProc gui=none guifg=RoyalBlue3 ctermfg=12
51+hi Todo gui=bold guifg=Black guibg=Yellow ctermbg=214 ctermbg=232
52+hi Type gui=bold guifg=RoyalBlue4 ctermfg=62
53+hi Underlined gui=underline guifg=Blue
54+hi Directory ctermfg=132
55+hi Pmenu ctermfg=250 ctermbg=238
56+hi PmenuSel ctermbg=214 ctermfg=16
57+
58+hi Boolean gui=bold guifg=ForestGreen
59+hi Constant gui=none guifg=ForestGreen
60+hi Number gui=bold guifg=ForestGreen
61+hi String gui=none guifg=ForestGreen ctermfg=2
62+hi helpNote ctermbg=220 ctermfg=16
63+
64+hi Label gui=bold,underline guifg=Sienna4
65+hi Statement gui=bold guifg=#bb88bb ctermfg=132
66+hi htmlStatement ctermfg=132
67+
68+hi htmlBold gui=bold
69+hi htmlItalic gui=italic
70+hi htmlUnderline gui=underline
71+hi htmlBoldItalic gui=bold,italic
72+hi htmlBoldUnderline gui=bold,underline
73+hi htmlBoldUnderlineItalic gui=bold,underline,italic
74+hi htmlUnderlineItalic gui=underline,italic
75+
76+hi djangoStatement guibg=#ddffaa ctermbg=150 ctermfg=22
77+hi docSpecial guifg=RoyalBlue1
78+hi docTrans guibg=White guifg=White
79+hi docCode guifg=#00aa00
colors/burnttoast256.vim+121−0
@@ -0,0 +1,121 @@
1+" Vim color file
2+"
3+" Name: burnttoast256.vim
4+" Version: 1.2
5+" Maintainer: Francois Labelle <quantum.omega@gmail.com>
6+" Based on: xoria256.vim 1.1 by Dmitriy Y. Zotikov (xio) <xio@ungrund.org>
7+"
8+" Should work in recent 256 color terminals. 88-color terms like urxvt are
9+" unsupported.
10+"
11+" Don't forget to install 'ncurses-term' and set TERM to xterm-256color or
12+" similar value.
13+"
14+" Color numbers (0-255) see:
15+" http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
16+
17+
18+
19+" Bla-bla ----------------------------------------------------------------------
20+
21+if &t_Co != 256 && ! has("gui_running")
22+ echomsg ""
23+ echomsg "err: please use GUI or a 256-color terminal (so that t_Co=256 could be set)"
24+ echomsg ""
25+ finish
26+endif
27+
28+set background=dark
29+
30+hi clear
31+
32+if exists("syntax_on")
33+ syntax reset
34+endif
35+
36+let colors_name = "burnttoast256"
37+
38+" now set it up to change the status line based on mode
39+"if version >= 700
40+" au InsertEnter * hi StatusLine term=reverse ctermbg=5 gui=undercurl guisp=Magenta
41+" au InsertLeave * hi StatusLine term=reverse ctermfg=0 ctermbg=2 gui=bold,reverse
42+"endif
43+
44+
45+
46+" The real part ----------------------------------------------------------------
47+
48+"" General colors
49+hi Normal ctermfg=252 guifg=#d0d0d0 ctermbg=16 guibg=#000000 cterm=none gui=none
50+hi ColorColumn ctermbg=233 guibg=#121212
51+hi CursorColumn ctermbg=238 guibg=#444444
52+hi Cursor ctermbg=214 guibg=#ffaf00
53+hi CursorLine ctermbg=235 guibg=#262626 cterm=none gui=none
54+hi CursorLineNr ctermfg=7 guifg=#e5e5e5 ctermbg=233 guibg=#121212 cterm=bold gui=bold
55+hi FoldColumn ctermfg=248 guifg=#a8a8a8 ctermbg=bg guibg=bg
56+hi Folded ctermfg=255 guifg=#eeeeee ctermbg=60 guibg=#5f5f87
57+hi IncSearch ctermfg=0 guifg=#000000 ctermbg=223 guibg=#ffdfaf cterm=none gui=none
58+hi LineNr ctermfg=8 guifg=#7f7f7f ctermbg=233 guibg=#121212
59+hi NonText ctermfg=237 guifg=#3a3a3a
60+hi Pmenu ctermfg=0 guifg=#000000 ctermbg=246 guibg=#949494
61+hi PmenuSbar ctermbg=243 guibg=#767676
62+hi PmenuSel ctermfg=0 guifg=#000000 ctermbg=243 guibg=#767676
63+hi PmenuThumb ctermbg=252 guibg=#d0d0d0
64+hi Search ctermfg=0 guifg=#000000 ctermbg=149 guibg=#afd75f
65+hi SignColumn ctermfg=248 guifg=#a8a8a8
66+hi SpecialKey ctermfg=237 guifg=#3a3a3a
67+hi StatusLine ctermbg=239 guibg=#4e4e4e cterm=bold gui=bold
68+hi StatusLineNC ctermbg=237 guibg=#3a3a3a cterm=none gui=none
69+hi TabLine ctermfg=fg guifg=fg ctermbg=242 guibg=#6c6c6c cterm=underline gui=underline
70+hi TabLineFill ctermfg=fg guifg=fg ctermbg=242 guibg=#6c6c6c cterm=underline gui=underline
71+hi VertSplit ctermfg=237 guifg=#3a3a3a ctermbg=237 guibg=#3a3a3a cterm=none gui=none
72+hi Visual ctermfg=24 guifg=#005f87 ctermbg=153 guibg=#afd7ff
73+hi VIsualNOS ctermfg=24 guifg=#005f87 ctermbg=153 guibg=#afd7ff cterm=none gui=none
74+hi WildMenu ctermfg=0 guifg=#000000 ctermbg=184 guibg=#d7d700 cterm=bold gui=bold
75+hi LineNr ctermfg=8 guifg=#7f7f7f ctermbg=233 guibg=#121212
76+
77+"" Syntax highlighting
78+hi Comment ctermfg=36 guifg=#00af87
79+hi Constant ctermfg=227 guifg=#ffff5f
80+hi Error ctermfg=15 guifg=#ffffff ctermbg=1 guibg=#cd0000
81+hi ErrorMsg ctermfg=15 guifg=#ffffff ctermbg=1 guibg=#cd0000
82+hi Identifier ctermfg=134 guifg=#af5fd7 cterm=none gui=none
83+hi Ignore ctermfg=238 guifg=#444444
84+hi MatchParen ctermfg=188 guifg=#d7d7d7 ctermbg=68 guibg=#5f87d7 cterm=bold gui=bold
85+hi Number ctermfg=180 guifg=#d7af87
86+hi PreProc ctermfg=150 guifg=#afd787
87+hi Special ctermfg=174 guifg=#d78787
88+hi Statement ctermfg=75 guifg=#5fafff cterm=none gui=none
89+hi String ctermfg=217 guifg=#ffafaf
90+hi Todo ctermfg=0 guifg=#000000 ctermbg=36 guibg=#00af87
91+hi Type ctermfg=146 guifg=#afafd7 cterm=none gui=none
92+hi Underlined ctermfg=39 guifg=#00afff cterm=underline gui=underline
93+
94+"" Special
95+""" .diff
96+hi diffAdded ctermfg=150 guifg=#afd787
97+hi diffRemoved ctermfg=174 guifg=#d78787
98+""" vimdiff
99+hi diffAdd ctermfg=bg guifg=bg ctermbg=151 guibg=#afd7af
100+hi diffDelete ctermfg=bg guifg=bg ctermbg=246 guibg=#949494 cterm=none gui=none
101+hi diffChange ctermfg=bg guifg=bg ctermbg=181 guibg=#d7afaf
102+hi diffText ctermfg=bg guifg=bg ctermbg=174 guibg=#d78787 cterm=none gui=none
103+
104+"" To highlight lines that are too long
105+hi OverLength ctermbg=130 guibg=#af5f00
106+
107+"" Omni-completion menu
108+hi Pmenu ctermfg=0 guifg=#000000 ctermbg=104 guibg=#8787d7
109+hi PmenuSel ctermfg=0 guifg=#000000 ctermbg=223 guibg=#ffdfaf
110+
111+"" Spelling and compiling errors
112+hi SpellBad ctermbg=52 guibg=#5f0000
113+
114+"" Colors for unit testing.
115+hi RedBar ctermbg=52 guibg=#5f0000
116+hi GreenBar ctermbg=22 guibg=#005f00
117+
118+" For indentation
119+hi IndentGuidesOdd ctermbg=235 guibg=#262626 ctermfg=237 guifg=#3a3a3a
120+hi IndentGuidesEven ctermbg=233 guibg=#121212 ctermfg=237 guifg=#3a3a3a
121+
colors/calmar256-light.vim+247−0
@@ -0,0 +1,247 @@
1+" Vim color file: calmar256-dark.vim
2+" Last Change: 21. Aug 2007
3+" License: public domain
4+" Maintainer:: calmar <mac@calmar.ws>
5+"
6+" for a 256 color capable terminal like xterm-256color, ... or gvim as well
7+" "{{{
8+" it only works in such a terminal and when you have:
9+" set t_Co=256
10+" in your vimrc"}}}
11+
12+" {{{ t_Co=256 is set - check
13+if &t_Co != 256 && ! has("gui_running")
14+ echomsg ""
15+ echomsg "write 'set t_Co=256' in your .vimrc or this file won't load"
16+ echomsg ""
17+ finish
18+endif
19+" }}}
20+" {{{ reset colors and set colors_name and store cpo setting
21+set background=dark
22+hi clear
23+if exists("syntax_on")
24+ syntax reset
25+endif
26+
27+let g:colors_name = "calmar256-light"
28+
29+let s:save_cpo = &cpo
30+set cpo&vim
31+" }}}
32+
33+" FORMAT:"{{{
34+"
35+" \ ["color-group", "term-style", "foreground-color", "background-color", "gui-style", "under-curl-color" ],
36+"
37+" 'term-style'/'gui-style' can be:
38+" bold, underline, undercurl, reverse, inverse, italic, standout, NONE
39+"
40+" if gui-style is empty, the term-style value is used for the gui
41+"
42+" (Note: not everything is supported by a terminal nor the gui)
43+"
44+" besides empty values defaults to 'NONE"
45+"
46+" may also check: :help highlight-groups
47+" :help hl-<highlight-group> "
48+"
49+" for the Color numbers (0-255) for the foreground/background and under-curl-colors:
50+" http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
51+
52+"}}}
53+"============================================================
54+" EDIT/ADD your style/colors below
55+"------------------------------------------------------------
56+
57+" Format: \ ["color-group",
58+" "term-style",
59+" "foreground-color",
60+" "background-color",
61+" "gui-style",
62+" "under-curl-color" ],
63+
64+let s:colors256 = [
65+ \ ["Normal", "", "17", "230", "", "" ],
66+ \ ["Cursor", "", "", "226", "", "" ],
67+ \ ["CursorLine", "", "", "222", "", "" ],
68+ \ ["CursorColumn", "", "", "223", "", "" ],
69+ \ ["Incsearch", "bold", "195", "28", "", "" ],
70+ \ ["Search", "", "", "119", "", "" ],
71+ \ ["ErrorMsg", "bold", "16", "202", "", "" ],
72+ \ ["WarningMsg", "bold", "16", "190", "", "" ],
73+ \ ["ModeMsg", "bold", "16", "51", "", "" ],
74+ \ ["MoreMsg", "bold", "16", "154", "", "" ],
75+ \ ["Question", "bold", "27", "", "", "" ],
76+ \ ["StatusLine", "", "231", "30", "", "" ],
77+ \ ["StatusLineNC", "", "20", "250", "", "" ],
78+ \ ["User1", "bold", "28", "", "", "" ],
79+ \ ["User2", "bold", "39", "", "", "" ],
80+ \ ["VertSplit", "", "84", "22", "", "" ],
81+ \ ["WildMenu", "bold", "87", "35", "", "" ],
82+ \ ["DiffText", "", "16", "190", "", "" ],
83+ \ ["DiffChange", "", "16", "83", "", "" ],
84+ \ ["DiffDelete", "", "79", "124", "", "" ],
85+ \ ["DiffAdd", "", "79", "21", "", "" ],
86+ \ ["Folded", "bold", "19", "115", "", "" ],
87+ \ ["FoldedColumn", "", "39", "190", "", "" ],
88+ \ ["FoldColumn", "", "19", "115", "", "" ],
89+ \ ["Directory", "", "28", "", "", "" ],
90+ \ ["LineNr", "", "63", "228", "", "" ],
91+ \ ["NonText", "", "243", "229", "", "" ],
92+ \ ["SpecialKey", "", "190", "", "", "" ],
93+ \ ["Title", "bold", "18", "", "", "" ],
94+ \ ["Visual", "", "", "220", "", "" ],
95+ \ ["Comment", "", "21", "255", "", "" ],
96+ \ ["Costant", "", "58", "", "", "" ],
97+ \ ["String", "", "160", "", "", "" ],
98+ \ ["Error", "", "130", "", "", "" ],
99+ \ ["Identifier", "", "31", "", "", "" ],
100+ \ ["Ignore", "", "", "", "", "" ],
101+ \ ["Number", "bold", "23", "", "", "" ],
102+ \ ["PreProc", "", "26", "255", "", "" ],
103+ \ ["Special", "", "", "229", "", "" ],
104+ \ ["SpecialChar", "", "22", "", "", "" ],
105+ \ ["Statement", "", "36", "", "", "" ],
106+ \ ["Todo", "", "", "229", "", "" ],
107+ \ ["Type", "", "20", "", "", "" ],
108+ \ ["Underlined", "bold", "25", "", "", "" ],
109+ \ ["TaglistTagName","bold", "29", "118", "", "" ]]
110+
111+let s:colorvim7 = [
112+ \ ["Pmenu", "", "229", "29", "", "" ],
113+ \ ["PmenuSel", "bold", "232", "226", "", "" ],
114+ \ ["PmenuSbar", "", "16", "119", "", "" ],
115+ \ ["PmenuThumb", "", "16", "11", "", "" ],
116+ \ ["SpellBad", "undercurl", "","", "undercurl","160" ],
117+ \ ["SpellRare", "", "", "228", "", "" ],
118+ \ ["SpellLocal", "", "", "224", "", "" ],
119+ \ ["SpellCap", "", "", "247", "", "" ],
120+ \ ["MatchParen", "bold", "15", "22", "", "" ],
121+ \ ["TabLine", "", "252", "22", "", "" ],
122+ \ ["TabLineSel", "bold", "253", "30", "", "" ],
123+ \ ["TabLineFill", "", "247", "16", "", "" ]]
124+
125+"============================================================
126+" * NO NEED * to edit below (unless bugfixing)
127+"============================================================
128+"
129+" {{{ change empty fields to "NONE"
130+
131+for s:col in s:colors256
132+ for i in [1, 2, 3, 4, 5]
133+ if s:col[i] == ""
134+ let s:col[i] = "NONE"
135+ endif
136+ endfor
137+endfor
138+
139+for s:col in s:colorvim7
140+ for i in [1, 2, 3, 4, 5]
141+ if s:col[i] == ""
142+ let s:col[i] = "NONE"
143+ endif
144+ endfor
145+endfor
146+" }}}
147+" {{{ check args helper function
148+function! s:checkargs(arg)
149+ if a:arg+0 == 0 && a:arg != "0" "its a string
150+ return a:arg
151+ else
152+ return s:cmap[a:arg+0] "get rgb color based on the number
153+ endif
154+endfunction
155+" }}}
156+" {{{ guisetcolor helper function
157+"
158+function! s:guisetcolor(colarg)
159+ " if gui-style is empty use (c)term-style also for gui
160+ if a:colarg[4] == ""
161+ let guival = a:colarg[1]
162+ else
163+ let guival = a:colarg[4]
164+ endif
165+
166+ let fg = s:checkargs(a:colarg[2])
167+ let bg = s:checkargs(a:colarg[3])
168+ let sp = s:checkargs(a:colarg[5])
169+
170+ exec "hi ".a:colarg[0]." gui=".guival." guifg=".fg." guibg=".bg." guisp=".sp
171+endfunction
172+" }}}
173+" {{{ color setup for terminal
174+if ! has("gui_running")
175+ for s:col in s:colors256
176+ exec "hi ".s:col[0]." cterm=".s:col[1]." ctermfg=".s:col[2]." ctermbg=".s:col[3]
177+ endfor
178+ if v:version >= 700
179+ for s:col in s:colorvim7
180+ exec "hi ".s:col[0]." cterm=".s:col[1]." ctermfg=".s:col[2]." ctermbg=".s:col[3]
181+ endfor
182+ endif
183+else
184+" }}}
185+ " color-mapping array {{{
186+ " number of vim colors and #html colors equivalent for gui
187+ let s:cmap = [
188+ \ "#000000", "#800000", "#008000", "#808000",
189+ \ "#000080", "#800080", "#008080", "#c0c0c0",
190+ \ "#808080", "#ff0000", "#00ff00", "#ffff00",
191+ \ "#0000ff", "#ff00ff", "#00ffff", "#ffffff",
192+ \
193+ \ "#000000", "#00005f", "#000087", "#0000af", "#0000d7", "#0000ff",
194+ \ "#005f00", "#005f5f", "#005f87", "#005faf", "#005fd7", "#005fff",
195+ \ "#008700", "#00875f", "#008787", "#0087af", "#0087d7", "#0087ff",
196+ \ "#00af00", "#00af5f", "#00af87", "#00afaf", "#00afd7", "#00afff",
197+ \ "#00d700", "#00d75f", "#00d787", "#00d7af", "#00d7d7", "#00d7ff",
198+ \ "#00ff00", "#00ff5f", "#00ff87", "#00ffaf", "#00ffd7", "#00ffff",
199+ \ "#5f0000", "#5f005f", "#5f0087", "#5f00af", "#5f00d7", "#5f00ff",
200+ \ "#5f5f00", "#5f5f5f", "#5f5f87", "#5f5faf", "#5f5fd7", "#5f5fff",
201+ \ "#5f8700", "#5f875f", "#5f8787", "#5f87af", "#5f87d7", "#5f87ff",
202+ \ "#5faf00", "#5faf5f", "#5faf87", "#5fafaf", "#5fafd7", "#5fafff",
203+ \ "#5fd700", "#5fd75f", "#5fd787", "#5fd7af", "#5fd7d7", "#5fd7ff",
204+ \ "#5fff00", "#5fff5f", "#5fff87", "#5fffaf", "#5fffd7", "#5fffff",
205+ \ "#870000", "#87005f", "#870087", "#8700af", "#8700d7", "#8700ff",
206+ \ "#875f00", "#875f5f", "#875f87", "#875faf", "#875fd7", "#875fff",
207+ \ "#878700", "#87875f", "#878787", "#8787af", "#8787d7", "#8787ff",
208+ \ "#87af00", "#87af5f", "#87af87", "#87afaf", "#87afd7", "#87afff",
209+ \ "#87d700", "#87d75f", "#87d787", "#87d7af", "#87d7d7", "#87d7ff",
210+ \ "#87ff00", "#87ff5f", "#87ff87", "#87ffaf", "#87ffd7", "#87ffff",
211+ \ "#af0000", "#af005f", "#af0087", "#af00af", "#af00d7", "#af00ff",
212+ \ "#af5f00", "#af5f5f", "#af5f87", "#af5faf", "#af5fd7", "#af5fff",
213+ \ "#af8700", "#af875f", "#af8787", "#af87af", "#af87d7", "#af87ff",
214+ \ "#afaf00", "#afaf5f", "#afaf87", "#afafaf", "#afafd7", "#afafff",
215+ \ "#afd700", "#afd75f", "#afd787", "#afd7af", "#afd7d7", "#afd7ff",
216+ \ "#afff00", "#afff5f", "#afff87", "#afffaf", "#afffd7", "#afffff",
217+ \ "#d70000", "#d7005f", "#d70087", "#d700af", "#d700d7", "#d700ff",
218+ \ "#d75f00", "#d75f5f", "#d75f87", "#d75faf", "#d75fd7", "#d75fff",
219+ \ "#d78700", "#d7875f", "#d78787", "#d787af", "#d787d7", "#d787ff",
220+ \ "#d7af00", "#d7af5f", "#d7af87", "#d7afaf", "#d7afd7", "#d7afff",
221+ \ "#d7d700", "#d7d75f", "#d7d787", "#d7d7af", "#d7d7d7", "#d7d7ff",
222+ \ "#d7ff00", "#d7ff5f", "#d7ff87", "#d7ffaf", "#d7ffd7", "#d7ffff",
223+ \ "#ff0000", "#ff005f", "#ff0087", "#ff00af", "#ff00d7", "#ff00ff",
224+ \ "#ff5f00", "#ff5f5f", "#ff5f87", "#ff5faf", "#ff5fd7", "#ff5fff",
225+ \ "#ff8700", "#ff875f", "#ff8787", "#ff87af", "#ff87d7", "#ff87ff",
226+ \ "#ffaf00", "#ffaf5f", "#ffaf87", "#ffafaf", "#ffafd7", "#ffafff",
227+ \ "#ffd700", "#ffd75f", "#ffd787", "#ffd7af", "#ffd7d7", "#ffd7ff",
228+ \ "#ffff00", "#ffff5f", "#ffff87", "#ffffaf", "#ffffd7", "#ffffff",
229+ \
230+ \ "#080808", "#121212", "#1c1c1c", "#262626", "#303030", "#3a3a3a",
231+ \ "#444444", "#4e4e4e", "#585858", "#606060", "#666666", "#767676",
232+ \ "#808080", "#8a8a8a", "#949494", "#9e9e9e", "#a8a8a8", "#b2b2b2",
233+ \ "#bcbcbc", "#c6c6c6", "#d0d0d0", "#dadada", "#e4e4e4", "#eeeeee" ]
234+ " }}}
235+" {{{ color setup for gvim
236+ for s:col in s:colors256
237+ call s:guisetcolor(s:col)
238+ endfor
239+ if v:version >= 700
240+ for s:col in s:colorvim7
241+ call s:guisetcolor(s:col)
242+ endfor
243+ endif
244+endif
245+" }}}
246+let &cpo = s:save_cpo " restoring &cpo value
247+" vim: set fdm=marker fileformat=unix:
colors/charged-256.vim+18−0
@@ -0,0 +1,18 @@
1+hi Normal ctermfg=247 ctermbg=16
2+hi NonText ctermfg=247 ctermbg=232
3+
4+hi LineNr ctermfg=237 ctermbg=232
5+hi VertSplit ctermfg=234 ctermbg=234
6+hi StatusLine ctermfg=240 ctermbg=234
7+hi StatusLineNC ctermfg=234 ctermbg=238
8+
9+hi Folded ctermfg=243 ctermbg=16
10+hi FoldColumn ctermfg=243 ctermbg=16
11+
12+hi PMenum ctermfg=240 ctermbg=234
13+hi PMenuSbar ctermfg=240 ctermbg=234
14+hi PMenuThumb ctermfg=237 ctermbg=232
15+
16+hi TabLine ctermfg=240 ctermbg=234
17+hi TabLineSel ctermfg=16 ctermbg=243
18+hi TabLineFill ctermfg=238 ctermbg=234 cterm=underline
colors/colorful256.vim+88−0
@@ -0,0 +1,88 @@
1+" Vim color file: colorful256.vim
2+" Last Change: 03 Oct, 2007
3+" License: public domain
4+" Maintainer:: Jagpreet<jagpreetc AT gmail DOT com>
5+"
6+" for a 256 color capable terminal
7+" "{{{
8+" You must set t_Co=256 before calling this colorscheme
9+"
10+" Color numbers (0-255) see:
11+" http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
12+"
13+" Added gui colors
14+"
15+
16+if &t_Co != 256 && ! has("gui_running")
17+ echomsg ""
18+ echomsg "colors not loaded first please set t_Co=256 in your .vimrc"
19+ echomsg ""
20+ finish
21+endif
22+
23+set background=dark
24+hi clear
25+if exists("syntax_on")
26+ syntax reset
27+endif
28+
29+let g:colors_name = "colorful256"
30+
31+ highlight Normal cterm=none ctermfg=249 ctermbg=16 gui=none guifg=#b2b2b2 guibg=#000000
32+ highlight Special cterm=none ctermfg=105 ctermbg=16 gui=none guifg=#8787ff guibg=#000000
33+ highlight Comment cterm=none ctermfg=3 ctermbg=16 gui=none guifg=#808000 guibg=#000000
34+ highlight Constant cterm=none ctermfg=9 ctermbg=16 gui=none guifg=#ff0000 guibg=#000000
35+ highlight LineNr cterm=none ctermfg=48 ctermbg=16 gui=none guifg=#00ff87 guibg=#000000
36+ highlight Number cterm=none ctermfg=209 ctermbg=16 gui=none guifg=#ff875f guibg=#000000
37+ highlight PreProc cterm=none ctermfg=10 ctermbg=16 gui=none guifg=#ff00ff guibg=#000000
38+ highlight Statement cterm=none ctermfg=51 ctermbg=16 gui=none guifg=#00ffff guibg=#000000
39+ highlight Type cterm=none ctermfg=39 ctermbg=16 gui=none guifg=#00afff guibg=#000000
40+ highlight Error cterm=none ctermfg=9 ctermbg=16 gui=none guifg=#ff0000 guibg=#000000
41+ highlight Identifier cterm=none ctermfg=207 ctermbg=16 gui=none guifg=#ff5fff guibg=#000000
42+ highlight SpecialKey cterm=none ctermfg=36 ctermbg=16 gui=none guifg=#00af87 guibg=#000000
43+ highlight NonText cterm=none ctermfg=164 ctermbg=16 gui=none guifg=#df00df guibg=#000000
44+ highlight Directory cterm=none ctermfg=34 ctermbg=16 gui=none guifg=#00af00 guibg=#000000
45+ highlight ErrorMsg cterm=none ctermfg=9 ctermbg=16 gui=none guifg=#ff0000 guibg=#000000
46+ highlight MoreMsg cterm=none ctermfg=34 ctermbg=16 gui=none guifg=#00af00 guibg=#000000
47+ highlight Title cterm=none ctermfg=199 ctermbg=16 gui=none guifg=#ff00af guibg=#000000
48+ highlight WarningMsg cterm=none ctermfg=9 ctermbg=16 gui=none guifg=#ff0000 guibg=#000000
49+ highlight DiffDelete cterm=none ctermfg=207 ctermbg=16 gui=none guifg=#ff5fff guibg=#000000
50+ highlight Search cterm=none ctermfg=15 ctermbg=160 gui=none guifg=#ffffff guibg=#df0000
51+ highlight Visual cterm=none ctermfg=16 ctermbg=50 gui=none guifg=#000000 guibg=#00ffdf
52+ highlight Cursor cterm=none ctermfg=16 ctermbg=33 gui=none guifg=#000000 guibg=#0087ff
53+ highlight StatusLine cterm=reverse ctermfg=58 ctermbg=15 gui=reverse guifg=#5f5f00 guibg=#ffffff
54+ highlight Question cterm=none ctermfg=16 ctermbg=226 gui=none guifg=#000000 guibg=#ffff00
55+ highlight Todo cterm=none ctermfg=160 ctermbg=184 gui=none guifg=#df0000 guibg=#dfdf00
56+ highlight Folded cterm=none ctermfg=15 ctermbg=58 gui=none guifg=#ffffff guibg=#5f5f00
57+ highlight ModeMsg cterm=none ctermfg=16 ctermbg=46 gui=none guifg=#000000 guibg=#00ff00
58+ highlight VisualNOS cterm=none ctermfg=16 ctermbg=28 gui=none guifg=#000000 guibg=#008700
59+ highlight WildMenu cterm=none ctermfg=16 ctermbg=226 gui=none guifg=#000000 guibg=#ffff00
60+ highlight FoldColumn cterm=none ctermfg=15 ctermbg=58 gui=none guifg=#ffffff guibg=#5f5f00
61+ highlight SignColumn cterm=none ctermfg=16 ctermbg=28 gui=none guifg=#000000 guibg=#008700
62+ highlight DiffText cterm=none ctermfg=16 ctermbg=34 gui=none guifg=#000000 guibg=#00af00
63+ highlight StatusLineNC cterm=reverse ctermfg=131 ctermbg=15 gui=reverse guifg=#af5f5f guibg=#ffffff
64+ highlight VertSplit cterm=reverse ctermfg=172 ctermbg=15 gui=reverse guifg=#df8700 guibg=#ffffff
65+ highlight User1 cterm=none ctermbg=20 ctermfg=15 gui=none guibg=#0000df guifg=#ffffff
66+ highlight User2 cterm=none ctermbg=20 ctermfg=46 gui=none guibg=#0000df guifg=#00ff00
67+ highlight User3 cterm=none ctermbg=20 ctermfg=46 gui=none guibg=#0000df guifg=#00ff00
68+ highlight User4 cterm=none ctermbg=20 ctermfg=50 gui=none guibg=#0000df guifg=#00ffdf
69+ highlight User5 cterm=none ctermbg=20 ctermfg=46 gui=none guibg=#0000df guifg=#00ff00
70+
71+" for groups introduced in version 7
72+if v:version >= 700
73+ highlight Pmenu cterm=none ctermfg=16 ctermbg=165 gui=none guifg=#000000 guibg=#df00ff
74+ highlight PmenuSel cterm=none ctermfg=16 ctermbg=220 gui=none guifg=#000000 guibg=#ffdf00
75+ highlight tablinesel cterm=none ctermfg=15 ctermbg=58 gui=none guifg=#ffffff guibg=#5f5f00
76+ highlight tabline cterm=none ctermfg=7 ctermbg=58 gui=none guifg=#c0c0c0 guibg=#5f5f00
77+ highlight tablinefill cterm=none ctermfg=58 ctermbg=58 gui=none guifg=#5f5f00 guibg=#5f5f00
78+endif
79+
80+"for taglist plugin
81+"
82+if exists('loaded_taglist')
83+ highlight TagListTagName cterm=none ctermfg=16 ctermbg=28 gui=none guifg=#000000 guibg=#008700
84+ highlight TagListTagScope cterm=none ctermfg=16 ctermbg=28 gui=none guifg=#000000 guibg=#008700
85+ highlight TagListTitle cterm=none ctermfg=199 ctermbg=16 gui=none guifg=#ff00af guibg=#000000
86+ highlight TagListComment cterm=none ctermfg=16 ctermbg=28 gui=none guifg=#000000 guibg=#008700
87+ highlight TagListFileName cterm=none ctermfg=15 ctermbg=90 gui=none guifg=#ffffff guibg=#870087
88+endif
colors/desert256.vim+338−0
@@ -0,0 +1,338 @@
1+" Vim color file
2+" Maintainer: Henry So, Jr. <henryso@panix.com>
3+
4+" These are the colors of the "desert" theme by Hans Fugal with a few small
5+" modifications (namely that I lowered the intensity of the normal white and
6+" made the normal and nontext backgrounds black), modified to work with 88-
7+" and 256-color xterms.
8+"
9+" The original "desert" theme is available as part of the vim distribution or
10+" at http://hans.fugal.net/vim/colors/.
11+"
12+" The real feature of this color scheme, with a wink to the "inkpot" theme, is
13+" the programmatic approximation of the gui colors to the palettes of 88- and
14+" 256- color xterms. The functions that do this (folded away, for
15+" readability) are calibrated to the colors used for Thomas E. Dickey's xterm
16+" (version 200), which is available at http://dickey.his.com/xterm/xterm.html.
17+"
18+" I struggled with trying to parse the rgb.txt file to avoid the necessity of
19+" converting color names to #rrggbb form, but decided it was just not worth
20+" the effort. Maybe someone seeing this may decide otherwise...
21+
22+set background=dark
23+if version > 580
24+ " no guarantees for version 5.8 and below, but this makes it stop
25+ " complaining
26+ hi clear
27+ if exists("syntax_on")
28+ syntax reset
29+ endif
30+endif
31+let g:colors_name="desert256"
32+
33+if has("gui_running") || &t_Co == 88 || &t_Co == 256
34+ " functions {{{
35+ " returns an approximate grey index for the given grey level
36+ fun <SID>grey_number(x)
37+ if &t_Co == 88
38+ if a:x < 23
39+ return 0
40+ elseif a:x < 69
41+ return 1
42+ elseif a:x < 103
43+ return 2
44+ elseif a:x < 127
45+ return 3
46+ elseif a:x < 150
47+ return 4
48+ elseif a:x < 173
49+ return 5
50+ elseif a:x < 196
51+ return 6
52+ elseif a:x < 219
53+ return 7
54+ elseif a:x < 243
55+ return 8
56+ else
57+ return 9
58+ endif
59+ else
60+ if a:x < 14
61+ return 0
62+ else
63+ let l:n = (a:x - 8) / 10
64+ let l:m = (a:x - 8) % 10
65+ if l:m < 5
66+ return l:n
67+ else
68+ return l:n + 1
69+ endif
70+ endif
71+ endif
72+ endfun
73+
74+ " returns the actual grey level represented by the grey index
75+ fun <SID>grey_level(n)
76+ if &t_Co == 88
77+ if a:n == 0
78+ return 0
79+ elseif a:n == 1
80+ return 46
81+ elseif a:n == 2
82+ return 92
83+ elseif a:n == 3
84+ return 115
85+ elseif a:n == 4
86+ return 139
87+ elseif a:n == 5
88+ return 162
89+ elseif a:n == 6
90+ return 185
91+ elseif a:n == 7
92+ return 208
93+ elseif a:n == 8
94+ return 231
95+ else
96+ return 255
97+ endif
98+ else
99+ if a:n == 0
100+ return 0
101+ else
102+ return 8 + (a:n * 10)
103+ endif
104+ endif
105+ endfun
106+
107+ " returns the palette index for the given grey index
108+ fun <SID>grey_color(n)
109+ if &t_Co == 88
110+ if a:n == 0
111+ return 16
112+ elseif a:n == 9
113+ return 79
114+ else
115+ return 79 + a:n
116+ endif
117+ else
118+ if a:n == 0
119+ return 16
120+ elseif a:n == 25
121+ return 231
122+ else
123+ return 231 + a:n
124+ endif
125+ endif
126+ endfun
127+
128+ " returns an approximate color index for the given color level
129+ fun <SID>rgb_number(x)
130+ if &t_Co == 88
131+ if a:x < 69
132+ return 0
133+ elseif a:x < 172
134+ return 1
135+ elseif a:x < 230
136+ return 2
137+ else
138+ return 3
139+ endif
140+ else
141+ if a:x < 75
142+ return 0
143+ else
144+ let l:n = (a:x - 55) / 40
145+ let l:m = (a:x - 55) % 40
146+ if l:m < 20
147+ return l:n
148+ else
149+ return l:n + 1
150+ endif
151+ endif
152+ endif
153+ endfun
154+
155+ " returns the actual color level for the given color index
156+ fun <SID>rgb_level(n)
157+ if &t_Co == 88
158+ if a:n == 0
159+ return 0
160+ elseif a:n == 1
161+ return 139
162+ elseif a:n == 2
163+ return 205
164+ else
165+ return 255
166+ endif
167+ else
168+ if a:n == 0
169+ return 0
170+ else
171+ return 55 + (a:n * 40)
172+ endif
173+ endif
174+ endfun
175+
176+ " returns the palette index for the given R/G/B color indices
177+ fun <SID>rgb_color(x, y, z)
178+ if &t_Co == 88
179+ return 16 + (a:x * 16) + (a:y * 4) + a:z
180+ else
181+ return 16 + (a:x * 36) + (a:y * 6) + a:z
182+ endif
183+ endfun
184+
185+ " returns the palette index to approximate the given R/G/B color levels
186+ fun <SID>color(r, g, b)
187+ " get the closest grey
188+ let l:gx = <SID>grey_number(a:r)
189+ let l:gy = <SID>grey_number(a:g)
190+ let l:gz = <SID>grey_number(a:b)
191+
192+ " get the closest color
193+ let l:x = <SID>rgb_number(a:r)
194+ let l:y = <SID>rgb_number(a:g)
195+ let l:z = <SID>rgb_number(a:b)
196+
197+ if l:gx == l:gy && l:gy == l:gz
198+ " there are two possibilities
199+ let l:dgr = <SID>grey_level(l:gx) - a:r
200+ let l:dgg = <SID>grey_level(l:gy) - a:g
201+ let l:dgb = <SID>grey_level(l:gz) - a:b
202+ let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
203+ let l:dr = <SID>rgb_level(l:gx) - a:r
204+ let l:dg = <SID>rgb_level(l:gy) - a:g
205+ let l:db = <SID>rgb_level(l:gz) - a:b
206+ let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
207+ if l:dgrey < l:drgb
208+ " use the grey
209+ return <SID>grey_color(l:gx)
210+ else
211+ " use the color
212+ return <SID>rgb_color(l:x, l:y, l:z)
213+ endif
214+ else
215+ " only one possibility
216+ return <SID>rgb_color(l:x, l:y, l:z)
217+ endif
218+ endfun
219+
220+ " returns the palette index to approximate the 'rrggbb' hex string
221+ fun <SID>rgb(rgb)
222+ let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
223+ let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
224+ let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
225+
226+ return <SID>color(l:r, l:g, l:b)
227+ endfun
228+
229+ " sets the highlighting for the given group
230+ fun <SID>X(group, fg, bg, attr)
231+ if a:fg != ""
232+ exec "hi " . a:group . " guifg=#" . a:fg . " ctermfg=" . <SID>rgb(a:fg)
233+ endif
Cut short: this commit's diff is over 1000 lines.
colors/desert256v2.vim+362−0
Cut short: this commit's diff is over 1000 lines.
colors/devbox-dark-256.vim+143−0
Cut short: this commit's diff is over 1000 lines.
colors/gotham256.vim+233−0
Cut short: this commit's diff is over 1000 lines.
colors/grb256.vim+32−0
Cut short: this commit's diff is over 1000 lines.
colors/last256.vim+390−0
Cut short: this commit's diff is over 1000 lines.
colors/lizard256.vim+303−0
Cut short: this commit's diff is over 1000 lines.
colors/mrkn256.vim+365−0
Cut short: this commit's diff is over 1000 lines.
colors/oceanblack256.vim+125−0
Cut short: this commit's diff is over 1000 lines.
colors/seoul256-light.vim+78−0
Cut short: this commit's diff is over 1000 lines.
colors/seoul256.vim+376−0
Cut short: this commit's diff is over 1000 lines.
colors/simple256.vim+279−0
Cut short: this commit's diff is over 1000 lines.
colors/summerfruit256.vim+322−0
Cut short: this commit's diff is over 1000 lines.
colors/trivial256.vim+42−0
Cut short: this commit's diff is over 1000 lines.
colors/twilight256.vim+300−0
Cut short: this commit's diff is over 1000 lines.
colors/wombat256.vim+302−0
Cut short: this commit's diff is over 1000 lines.
colors/wombat256i.vim+307−0
Cut short: this commit's diff is over 1000 lines.
colors/wombat256mod.vim+96−0
Cut short: this commit's diff is over 1000 lines.
colors/xoria256.vim+94−0
Cut short: this commit's diff is over 1000 lines.