annotate rc/vim-jellybeans @ 551:138ee2cd2179

Use jellybeans theme for vim. Better compat with plain terminal.
author nanaya <me@myconan.net>
date Tue, 14 Apr 2015 04:47:54 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
551
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
1 " Vim color file
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
2 "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
3 " " __ _ _ _ "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
4 " " \ \ ___| | |_ _| |__ ___ __ _ _ __ ___ "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
5 " " \ \/ _ \ | | | | | _ \ / _ \/ _ | _ \/ __| "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
6 " " /\_/ / __/ | | |_| | |_| | __/ |_| | | | \__ \ "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
7 " " \___/ \___|_|_|\__ |____/ \___|\____|_| |_|___/ "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
8 " " \___/ "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
9 "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
10 " "A colorful, dark color scheme for Vim."
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
11 "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
12 " File: jellybeans.vim
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
13 " URL: github.com/nanotech/jellybeans.vim
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
14 " Scripts URL: vim.org/scripts/script.php?script_id=2555
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
15 " Maintainer: NanoTech (nanotech.nanotechcorp.net)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
16 " Version: 1.6~git
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
17 " Last Change: January 15th, 2012
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
18 " License: MIT
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
19 " Contributors: Daniel Herbert (pocketninja)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
20 " Henry So, Jr. <henryso@panix.com>
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
21 " David Liang <bmdavll at gmail dot com>
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
22 " Rich Healey (richo)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
23 " Andrew Wong (w0ng)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
24 "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
25 " Copyright (c) 2009-2012 NanoTech
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
26 "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
27 " Permission is hereby granted, free of charge, to any per‐
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
28 " son obtaining a copy of this software and associated doc‐
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
29 " umentation files (the “Software”), to deal in the Soft‐
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
30 " ware without restriction, including without limitation
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
31 " the rights to use, copy, modify, merge, publish, distrib‐
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
32 " ute, sublicense, and/or sell copies of the Software, and
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
33 " to permit persons to whom the Software is furnished to do
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
34 " so, subject to the following conditions:
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
35 "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
36 " The above copyright notice and this permission notice
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
37 " shall be included in all copies or substantial portions
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
38 " of the Software.
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
39 "
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
40 " THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
41 " KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
42 " THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICU‐
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
43 " LAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
44 " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
45 " DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CON‐
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
46 " TRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON‐
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
47 " NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
48 " THE SOFTWARE.
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
49
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
50 set background=dark
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
51
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
52 hi clear
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
53
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
54 if exists("syntax_on")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
55 syntax reset
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
56 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
57
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
58 let colors_name = "jellybeans"
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
59
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
60 if has("gui_running") || &t_Co == 88 || &t_Co == 256
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
61 let s:low_color = 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
62 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
63 let s:low_color = 1
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
64 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
65
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
66 " Color approximation functions by Henry So, Jr. and David Liang {{{
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
67 " Added to jellybeans.vim by Daniel Herbert
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
68
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
69 " returns an approximate grey index for the given grey level
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
70 fun! s:grey_number(x)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
71 if &t_Co == 88
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
72 if a:x < 23
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
73 return 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
74 elseif a:x < 69
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
75 return 1
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
76 elseif a:x < 103
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
77 return 2
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
78 elseif a:x < 127
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
79 return 3
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
80 elseif a:x < 150
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
81 return 4
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
82 elseif a:x < 173
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
83 return 5
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
84 elseif a:x < 196
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
85 return 6
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
86 elseif a:x < 219
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
87 return 7
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
88 elseif a:x < 243
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
89 return 8
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
90 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
91 return 9
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
92 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
93 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
94 if a:x < 14
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
95 return 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
96 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
97 let l:n = (a:x - 8) / 10
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
98 let l:m = (a:x - 8) % 10
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
99 if l:m < 5
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
100 return l:n
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
101 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
102 return l:n + 1
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
103 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
104 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
105 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
106 endfun
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
107
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
108 " returns the actual grey level represented by the grey index
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
109 fun! s:grey_level(n)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
110 if &t_Co == 88
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
111 if a:n == 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
112 return 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
113 elseif a:n == 1
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
114 return 46
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
115 elseif a:n == 2
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
116 return 92
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
117 elseif a:n == 3
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
118 return 115
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
119 elseif a:n == 4
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
120 return 139
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
121 elseif a:n == 5
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
122 return 162
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
123 elseif a:n == 6
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
124 return 185
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
125 elseif a:n == 7
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
126 return 208
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
127 elseif a:n == 8
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
128 return 231
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
129 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
130 return 255
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
131 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
132 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
133 if a:n == 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
134 return 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
135 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
136 return 8 + (a:n * 10)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
137 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
138 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
139 endfun
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
140
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
141 " returns the palette index for the given grey index
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
142 fun! s:grey_color(n)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
143 if &t_Co == 88
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
144 if a:n == 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
145 return 16
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
146 elseif a:n == 9
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
147 return 79
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
148 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
149 return 79 + a:n
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
150 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
151 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
152 if a:n == 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
153 return 16
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
154 elseif a:n == 25
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
155 return 231
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
156 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
157 return 231 + a:n
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
158 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
159 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
160 endfun
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
161
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
162 " returns an approximate color index for the given color level
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
163 fun! s:rgb_number(x)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
164 if &t_Co == 88
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
165 if a:x < 69
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
166 return 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
167 elseif a:x < 172
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
168 return 1
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
169 elseif a:x < 230
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
170 return 2
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
171 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
172 return 3
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
173 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
174 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
175 if a:x < 75
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
176 return 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
177 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
178 let l:n = (a:x - 55) / 40
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
179 let l:m = (a:x - 55) % 40
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
180 if l:m < 20
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
181 return l:n
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
182 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
183 return l:n + 1
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
184 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
185 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
186 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
187 endfun
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
188
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
189 " returns the actual color level for the given color index
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
190 fun! s:rgb_level(n)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
191 if &t_Co == 88
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
192 if a:n == 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
193 return 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
194 elseif a:n == 1
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
195 return 139
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
196 elseif a:n == 2
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
197 return 205
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
198 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
199 return 255
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
200 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
201 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
202 if a:n == 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
203 return 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
204 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
205 return 55 + (a:n * 40)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
206 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
207 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
208 endfun
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
209
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
210 " returns the palette index for the given R/G/B color indices
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
211 fun! s:rgb_color(x, y, z)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
212 if &t_Co == 88
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
213 return 16 + (a:x * 16) + (a:y * 4) + a:z
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
214 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
215 return 16 + (a:x * 36) + (a:y * 6) + a:z
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
216 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
217 endfun
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
218
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
219 " returns the palette index to approximate the given R/G/B color levels
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
220 fun! s:color(r, g, b)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
221 " get the closest grey
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
222 let l:gx = s:grey_number(a:r)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
223 let l:gy = s:grey_number(a:g)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
224 let l:gz = s:grey_number(a:b)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
225
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
226 " get the closest color
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
227 let l:x = s:rgb_number(a:r)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
228 let l:y = s:rgb_number(a:g)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
229 let l:z = s:rgb_number(a:b)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
230
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
231 if l:gx == l:gy && l:gy == l:gz
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
232 " there are two possibilities
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
233 let l:dgr = s:grey_level(l:gx) - a:r
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
234 let l:dgg = s:grey_level(l:gy) - a:g
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
235 let l:dgb = s:grey_level(l:gz) - a:b
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
236 let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
237 let l:dr = s:rgb_level(l:gx) - a:r
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
238 let l:dg = s:rgb_level(l:gy) - a:g
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
239 let l:db = s:rgb_level(l:gz) - a:b
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
240 let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
241 if l:dgrey < l:drgb
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
242 " use the grey
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
243 return s:grey_color(l:gx)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
244 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
245 " use the color
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
246 return s:rgb_color(l:x, l:y, l:z)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
247 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
248 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
249 " only one possibility
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
250 return s:rgb_color(l:x, l:y, l:z)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
251 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
252 endfun
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
253
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
254 " returns the palette index to approximate the 'rrggbb' hex string
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
255 fun! s:rgb(rgb)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
256 let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
257 let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
258 let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
259 return s:color(l:r, l:g, l:b)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
260 endfun
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
261
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
262 " sets the highlighting for the given group
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
263 fun! s:X(group, fg, bg, attr, lcfg, lcbg)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
264 if s:low_color
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
265 let l:fge = empty(a:lcfg)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
266 let l:bge = empty(a:lcbg)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
267
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
268 if !l:fge && !l:bge
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
269 exec "hi ".a:group." ctermfg=".a:lcfg." ctermbg=".a:lcbg
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
270 elseif !l:fge && l:bge
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
271 exec "hi ".a:group." ctermfg=".a:lcfg." ctermbg=NONE"
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
272 elseif l:fge && !l:bge
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
273 exec "hi ".a:group." ctermfg=NONE ctermbg=".a:lcbg
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
274 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
275 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
276 let l:fge = empty(a:fg)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
277 let l:bge = empty(a:bg)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
278
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
279 if !l:fge && !l:bge
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
280 exec "hi ".a:group." guifg=#".a:fg." guibg=#".a:bg." ctermfg=".s:rgb(a:fg)." ctermbg=".s:rgb(a:bg)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
281 elseif !l:fge && l:bge
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
282 exec "hi ".a:group." guifg=#".a:fg." guibg=NONE ctermfg=".s:rgb(a:fg)." ctermbg=NONE"
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
283 elseif l:fge && !l:bge
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
284 exec "hi ".a:group." guifg=NONE guibg=#".a:bg." ctermfg=NONE ctermbg=".s:rgb(a:bg)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
285 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
286 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
287
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
288 if a:attr == ""
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
289 exec "hi ".a:group." gui=none cterm=none"
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
290 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
291 let l:noitalic = join(filter(split(a:attr, ","), "v:val !=? 'italic'"), ",")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
292 if empty(l:noitalic)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
293 let l:noitalic = "none"
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
294 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
295 exec "hi ".a:group." gui=".a:attr." cterm=".l:noitalic
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
296 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
297 endfun
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
298 " }}}
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
299
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
300 if !exists("g:jellybeans_background_color")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
301 let g:jellybeans_background_color = "151515"
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
302 end
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
303
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
304 call s:X("Normal","e8e8d3",g:jellybeans_background_color,"","White","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
305 set background=dark
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
306
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
307 if !exists("g:jellybeans_use_lowcolor_black") || g:jellybeans_use_lowcolor_black
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
308 let s:termBlack = "Black"
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
309 else
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
310 let s:termBlack = "Grey"
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
311 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
312
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
313 if version >= 700
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
314 call s:X("CursorLine","","1c1c1c","","",s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
315 call s:X("CursorColumn","","1c1c1c","","",s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
316 call s:X("MatchParen","ffffff","556779","bold","","DarkCyan")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
317
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
318 call s:X("TabLine","000000","b0b8c0","italic","",s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
319 call s:X("TabLineFill","9098a0","","","",s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
320 call s:X("TabLineSel","000000","f0f0f0","italic,bold",s:termBlack,"White")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
321
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
322 " Auto-completion
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
323 call s:X("Pmenu","ffffff","606060","","White",s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
324 call s:X("PmenuSel","101010","eeeeee","",s:termBlack,"White")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
325 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
326
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
327 call s:X("Visual","","404040","","",s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
328 call s:X("Cursor",g:jellybeans_background_color,"b0d0f0","","","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
329
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
330 call s:X("LineNr","605958",g:jellybeans_background_color,"none",s:termBlack,"")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
331 call s:X("CursorLineNr","ccc5c4","","none","White","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
332 call s:X("Comment","888888","","italic","Grey","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
333 call s:X("Todo","c7c7c7","","bold","White",s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
334
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
335 call s:X("StatusLine","000000","dddddd","italic","","White")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
336 call s:X("StatusLineNC","ffffff","403c41","italic","White","Black")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
337 call s:X("VertSplit","777777","403c41","",s:termBlack,s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
338 call s:X("WildMenu","f0a0c0","302028","","Magenta","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
339
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
340 call s:X("Folded","a0a8b0","384048","italic",s:termBlack,"")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
341 call s:X("FoldColumn","535D66","1f1f1f","","",s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
342 call s:X("SignColumn","777777","333333","","",s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
343 call s:X("ColorColumn","","000000","","",s:termBlack)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
344
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
345 call s:X("Title","70b950","","bold","Green","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
346
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
347 call s:X("Constant","cf6a4c","","","Red","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
348 call s:X("Special","799d6a","","","Green","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
349 call s:X("Delimiter","668799","","","Grey","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
350
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
351 call s:X("String","99ad6a","","","Green","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
352 call s:X("StringDelimiter","556633","","","DarkGreen","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
353
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
354 call s:X("Identifier","c6b6ee","","","LightCyan","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
355 call s:X("Structure","8fbfdc","","","LightCyan","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
356 call s:X("Function","fad07a","","","Yellow","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
357 call s:X("Statement","8197bf","","","DarkBlue","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
358 call s:X("PreProc","8fbfdc","","","LightBlue","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
359
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
360 hi! link Operator Structure
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
361
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
362 call s:X("Type","ffb964","","","Yellow","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
363 call s:X("NonText","606060",g:jellybeans_background_color,"",s:termBlack,"")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
364
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
365 call s:X("SpecialKey","444444","1c1c1c","",s:termBlack,"")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
366
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
367 call s:X("Search","f0a0c0","302028","underline","Magenta","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
368
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
369 call s:X("Directory","dad085","","","Yellow","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
370 call s:X("ErrorMsg","","902020","","","DarkRed")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
371 hi! link Error ErrorMsg
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
372 hi! link MoreMsg Special
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
373 call s:X("Question","65C254","","","Green","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
374
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
375
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
376 " Spell Checking
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
377
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
378 call s:X("SpellBad","","902020","underline","","DarkRed")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
379 call s:X("SpellCap","","0000df","underline","","Blue")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
380 call s:X("SpellRare","","540063","underline","","DarkMagenta")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
381 call s:X("SpellLocal","","2D7067","underline","","Green")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
382
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
383 " Diff
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
384
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
385 hi! link diffRemoved Constant
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
386 hi! link diffAdded String
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
387
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
388 " VimDiff
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
389
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
390 call s:X("DiffAdd","D2EBBE","437019","","White","DarkGreen")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
391 call s:X("DiffDelete","40000A","700009","","DarkRed","DarkRed")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
392 call s:X("DiffChange","","2B5B77","","White","DarkBlue")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
393 call s:X("DiffText","8fbfdc","000000","reverse","Yellow","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
394
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
395 " PHP
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
396
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
397 hi! link phpFunctions Function
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
398 call s:X("StorageClass","c59f6f","","","Red","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
399 hi! link phpSuperglobal Identifier
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
400 hi! link phpQuoteSingle StringDelimiter
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
401 hi! link phpQuoteDouble StringDelimiter
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
402 hi! link phpBoolean Constant
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
403 hi! link phpNull Constant
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
404 hi! link phpArrayPair Operator
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
405 hi! link phpOperator Normal
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
406 hi! link phpRelation Normal
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
407 hi! link phpVarSelector Identifier
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
408
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
409 " Python
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
410
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
411 hi! link pythonOperator Statement
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
412
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
413 " Ruby
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
414
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
415 hi! link rubySharpBang Comment
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
416 call s:X("rubyClass","447799","","","DarkBlue","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
417 call s:X("rubyIdentifier","c6b6fe","","","Cyan","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
418 hi! link rubyConstant Type
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
419 hi! link rubyFunction Function
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
420
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
421 call s:X("rubyInstanceVariable","c6b6fe","","","Cyan","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
422 call s:X("rubySymbol","7697d6","","","Blue","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
423 hi! link rubyGlobalVariable rubyInstanceVariable
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
424 hi! link rubyModule rubyClass
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
425 call s:X("rubyControl","7597c6","","","Blue","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
426
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
427 hi! link rubyString String
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
428 hi! link rubyStringDelimiter StringDelimiter
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
429 hi! link rubyInterpolationDelimiter Identifier
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
430
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
431 call s:X("rubyRegexpDelimiter","540063","","","Magenta","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
432 call s:X("rubyRegexp","dd0093","","","DarkMagenta","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
433 call s:X("rubyRegexpSpecial","a40073","","","Magenta","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
434
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
435 call s:X("rubyPredefinedIdentifier","de5577","","","Red","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
436
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
437 " Erlang
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
438
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
439 hi! link erlangAtom rubySymbol
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
440 hi! link erlangBIF rubyPredefinedIdentifier
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
441 hi! link erlangFunction rubyPredefinedIdentifier
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
442 hi! link erlangDirective Statement
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
443 hi! link erlangNode Identifier
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
444
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
445 " JavaScript
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
446
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
447 hi! link javaScriptValue Constant
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
448 hi! link javaScriptRegexpString rubyRegexp
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
449
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
450 " CoffeeScript
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
451
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
452 hi! link coffeeRegExp javaScriptRegexpString
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
453
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
454 " Lua
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
455
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
456 hi! link luaOperator Conditional
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
457
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
458 " C
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
459
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
460 hi! link cFormat Identifier
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
461 hi! link cOperator Constant
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
462
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
463 " Objective-C/Cocoa
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
464
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
465 hi! link objcClass Type
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
466 hi! link cocoaClass objcClass
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
467 hi! link objcSubclass objcClass
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
468 hi! link objcSuperclass objcClass
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
469 hi! link objcDirective rubyClass
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
470 hi! link objcStatement Constant
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
471 hi! link cocoaFunction Function
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
472 hi! link objcMethodName Identifier
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
473 hi! link objcMethodArg Normal
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
474 hi! link objcMessageName Identifier
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
475
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
476 " Vimscript
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
477
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
478 hi! link vimOper Normal
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
479
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
480 " HTML
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
481
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
482 hi! link htmlTag Statement
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
483 hi! link htmlEndTag htmlTag
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
484 hi! link htmlTagName htmlTag
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
485
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
486 " XML
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
487
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
488 hi! link xmlTag Statement
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
489 hi! link xmlEndTag xmlTag
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
490 hi! link xmlTagName xmlTag
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
491 hi! link xmlEqual xmlTag
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
492 hi! link xmlEntity Special
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
493 hi! link xmlEntityPunct xmlEntity
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
494 hi! link xmlDocTypeDecl PreProc
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
495 hi! link xmlDocTypeKeyword PreProc
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
496 hi! link xmlProcessingDelim xmlAttrib
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
497
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
498 " Debugger.vim
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
499
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
500 call s:X("DbgCurrent","DEEBFE","345FA8","","White","DarkBlue")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
501 call s:X("DbgBreakPt","","4F0037","","","DarkMagenta")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
502
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
503 " vim-indent-guides
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
504
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
505 if !exists("g:indent_guides_auto_colors")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
506 let g:indent_guides_auto_colors = 0
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
507 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
508 call s:X("IndentGuidesOdd","","232323","","","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
509 call s:X("IndentGuidesEven","","1b1b1b","","","")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
510
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
511 " Plugins, etc.
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
512
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
513 hi! link TagListFileName Directory
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
514 call s:X("PreciseJumpTarget","B9ED67","405026","","White","Green")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
515
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
516 if !exists("g:jellybeans_background_color_256")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
517 let g:jellybeans_background_color_256=233
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
518 end
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
519 " Manual overrides for 256-color terminals. Dark colors auto-map badly.
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
520 if !s:low_color
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
521 hi StatusLineNC ctermbg=235
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
522 hi Folded ctermbg=236
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
523 hi FoldColumn ctermbg=234
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
524 hi SignColumn ctermbg=236
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
525 hi CursorColumn ctermbg=234
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
526 hi CursorLine ctermbg=234
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
527 hi SpecialKey ctermbg=234
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
528 exec "hi NonText ctermbg=".g:jellybeans_background_color_256
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
529 exec "hi LineNr ctermbg=".g:jellybeans_background_color_256
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
530 hi DiffText ctermfg=81
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
531 exec "hi Normal ctermbg=".g:jellybeans_background_color_256
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
532 hi DbgBreakPt ctermbg=53
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
533 hi IndentGuidesOdd ctermbg=235
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
534 hi IndentGuidesEven ctermbg=234
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
535 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
536
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
537 if exists("g:jellybeans_overrides")
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
538 fun! s:load_colors(defs)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
539 for [l:group, l:v] in items(a:defs)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
540 call s:X(l:group, get(l:v, 'guifg', ''), get(l:v, 'guibg', ''),
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
541 \ get(l:v, 'attr', ''),
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
542 \ get(l:v, 'ctermfg', ''), get(l:v, 'ctermbg', ''))
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
543 if !s:low_color
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
544 for l:prop in ['ctermfg', 'ctermbg']
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
545 let l:override_key = '256'.l:prop
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
546 if has_key(l:v, l:override_key)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
547 exec "hi ".l:group." ".l:prop."=".l:v[l:override_key]
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
548 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
549 endfor
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
550 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
551 unlet l:group
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
552 unlet l:v
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
553 endfor
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
554 endfun
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
555 call s:load_colors(g:jellybeans_overrides)
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
556 delf s:load_colors
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
557 endif
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
558
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
559 " delete functions {{{
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
560 delf s:X
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
561 delf s:rgb
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
562 delf s:color
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
563 delf s:rgb_color
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
564 delf s:rgb_level
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
565 delf s:rgb_number
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
566 delf s:grey_color
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
567 delf s:grey_level
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
568 delf s:grey_number
138ee2cd2179 Use jellybeans theme for vim.
nanaya <me@myconan.net>
parents:
diff changeset
569 " }}}