.
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 |
4 |
Galaxian is a dark, colorful, easy-on-the-eyes colorscheme for Vim
5 |
6 |
7 |
8 | 
9 |
10 | ### Announcement
11 | Galaxian is now available for Visual Studio Code, you can install it by searching "Galaxian" in the Extensions tab, or at this page: https://marketplace.visualstudio.com/items?itemName=evprkr.galaxian-vs
12 |
13 | ### About
14 | I'm pretty severely colorblind, and I was having trouble finding a colorscheme with bright colors that actually stood out and didn't look too similar to one another. After tweaking colors for several days, I came up with what is now Galaxian. The colors are actually based on the models of the Game Boy Color!
15 |
16 | Galaxian is currently available only for Vim and iTerm2. If you are interested in porting it over to other editors/terminals, please feel free to submit a pull request!
17 |
18 | ### Installation
19 | Galaxian can be installed manually, or by using one of many avaialble Vim package managers.
20 |
21 | #### Manually
22 |
23 | Clone and move the colors/galaxian.vim file to the colors folder which should be inside your vim PATH.
24 | ```sh
25 | git clone https://github.com/evprkr/galaxian-vim.git
26 |
27 | cd galaxian-vim
28 |
29 | mv colors/galaxian.vim ~/.vim/colors/
30 | ```
31 |
32 | #### Package manager
33 |
34 | **vim-plug**
35 |
36 | Add to your ``.vimrc``:
37 | ```
38 | Plug 'evprkr/galaxian-vim'
39 | ```
40 | Run ``:PlugInstall``
41 |
42 | **Pathogen**
43 |
44 | ```sh
45 | git clone https://github.com/evprkr/galaxian-vim.git ~/.vim/bundle/galaxian
46 | ```
47 |
48 | **Vundle**
49 |
50 | Add to your ``.vimrc``:
51 | ```
52 | Plugin 'evprkr/galaxian-vim'
53 | ```
54 | Run ``:PluginInstall``
55 |
56 | Finally, add ```colorscheme galaxian``` to your ``.vimrc`` file.
57 |
58 | If your colors don't look right, and you're using the terminal version of Vim, try adding ``set termguicolors`` to your ``.vimrc`` file **before** you set the colorscheme. If that doesn't work, check to make sure your terminal supports true color. If your terminal *does* have true color support and it still doesn't look right, open an issue and I'll see if I can help out. I'm new at this still and I might have done something wrong.
59 |
60 | **I also recommend using [vim-polyglot plugin](https://github.com/sheerun/vim-polyglot) for better syntax highlighting.**
61 |
62 | ### Customization
63 | I've commented the code well enough that you should be able to customize the colors and highlight groups to your liking fairly easily. I recommend reading the ``highlight-groups`` section of the [Vim docs](http://vimdoc.sourceforge.net/htmldoc/syntax.html#:highlight) to find what you're looking to highlight, and you can probably figure out how to apply highlights by looking at what's already in the ``galaxian.vim`` file.
64 |
65 | ### Can you add support for X language?
66 | I've so far only added basic syntax highlighting, plus some extras for Python. Galaxian will *work* with all languages, but may not look exactly like the screenshots, especially if you're using a different syntax highlighting method than the default. Some languages may not show certain colors at all by default.
67 |
68 | I plan to add more languages eventually, but I'm only going to add the ones I'm familiar with so they'll actually look good. If you want to see your favorite language in (better) Galaxian colors, please make a pull request for it and we'll get it done!
69 |
70 | If you found that I've missed anything obvious, please open an issue and I'll fix it. I can't seem to find a reliable way to test all of the various parts of Vim that have color, so I'm just sort of testing as I go.
71 |
72 |
--------------------------------------------------------------------------------
/colors/galaxian.vim:
--------------------------------------------------------------------------------
1 | " Galaxian, a space-themed colorscheme inspired by the Game Boy Color line-up
2 | " Created by Evan Parker (https://github.com/evprkr/galaxian-vim)
3 |
4 | hi clear
5 | let python_highlight_all=1
6 |
7 | if exists("syntax on")
8 | syntax reset
9 | endif
10 |
11 | set t_Co=256
12 | let g:colors_name = "galaxian"
13 |
14 | " Variable HEX code Description
15 | let s:none= "NONE" " transparent
16 | let s:bg= "#1a1a22" " blackish blue (background)
17 | let s:fg= "#f1f1f1" " off white (foreground)
18 | let s:fg2= "#dedede" " fg+
19 | let s:fg3= "#cacaca" " fg++
20 | let s:fg4= "#b7b7b7" " fg+++
21 | let s:bg2= "#292932" " bg+
22 | let s:bg3= "#373743" " bg++
23 | let s:bg4= "#454554" " bg+++
24 | let s:keyword= "#0197F4" " blue
25 | let s:builtin= "#04AEAD" " teal
26 | let s:const= "#9F59C5" " 'not magenta' purple
27 | let s:comment= "#405f5a" " greenish gray
28 | let s:func= "#ff7538" " everything rhymes with orange
29 | let s:str= "#07c566" " pokemon emerald
30 | let s:type= "#EF476F" " technically pink
31 | let s:var= "#ffce5c" " off-yellow
32 | let s:warning= "#EF476F" " just red (but actually pink)
33 | let s:warning2= "#EF476F" " just red 2: electric boogaloo
34 | let s:linenr= "#474C53" " 'nothing special' dark gray
35 |
36 | " General Hightlighting
37 | exe 'hi Normal guifg='s:fg' guibg='s:none
38 | exe 'hi Cursor guifg='s:bg' guibg='s:fg
39 | exe 'hi CursorLine guibg='s:bg2
40 | exe 'hi CursorLineNr guifg='s:str' guibg='s:bg
41 | exe 'hi CursorColumn guibg='s:bg2
42 | exe 'hi ColorColumn guibg='s:bg2
43 | exe 'hi LineNr guifg='s:linenr
44 | exe 'hi VertSplit guifg='s:fg3' guibg='s:bg3
45 | exe 'hi MatchParen guifg='s:warning2' gui=underline'
46 | exe 'hi StatusLine guifg='s:fg2' guibg='s:bg3' gui=bold'
47 | exe 'hi Pmenu guifg='s:fg' guibg='s:bg2
48 | exe 'hi PmenuSel guibg='s:bg3
49 | exe 'hi IncSearch guifg='s:bg' guibg='s:keyword' gui=bold'
50 | exe 'hi Search gui=underline'
51 | exe 'hi Directory guifg='s:const
52 | exe 'hi Folded guifg='s:builtin' guibg='s:bg
53 | exe 'hi WildMenu guifg='s:str' guibg='s:bg
54 | exe 'hi TabLine guifg='s:builtin' guibg='s:bg3
55 | exe 'hi TabLineFill guifg='s:bg2
56 | exe 'hi TabLineSel guifg='s:builtin' guibg='s:bg4
57 | exe 'hi ErrorMsg guifg='s:fg' guibg='s:warning
58 | exe 'hi MatchParen guibg='s:bg4' guifg='s:none
59 | exe 'hi Boolean guifg='s:const
60 | exe 'hi Character guifg='s:const
61 | exe 'hi Comment guifg='s:comment
62 | exe 'hi Conditional guifg='s:keyword
63 | exe 'hi Constant guifg='s:const
64 | exe 'hi Todo guibg='s:bg
65 | exe 'hi Define guifg='s:keyword
66 | exe 'hi DiffAdd guifg=#fafafa guibg=#123d0f gui=bold'
67 | exe 'hi DiffDelete guibg='s:bg2
68 | exe 'hi DiffChange guibg=#151b3c guifg=#fafafa'
69 | exe 'hi DiffText guifg=#ffffff guibg=#ff0000 gui=bold'
70 | exe 'hi ErrorMsg guifg='s:warning' guibg='s:bg2' gui=bold'
71 | exe 'hi WarningMsg guifg='s:fg' guibg='s:warning2
72 | exe 'hi Float guifg='s:const
73 | exe 'hi Function guifg='s:func
74 | exe 'hi Identifier guifg='s:type
75 | exe 'hi Keyword guifg='s:keyword' cterm=bold'
76 | exe 'hi Label guifg='s:var
77 | exe 'hi NonText guifg='s:bg4' guibg='s:bg2
78 | exe 'hi Number guifg='s:const
79 | exe 'hi Operator guifg='s:keyword
80 | exe 'hi PreProc guifg='s:keyword
81 | exe 'hi Special guifg='s:fg
82 | exe 'hi SpecialKey guifg='s:comment
83 | exe 'hi Statement cterm=bold guifg='s:keyword
84 | exe 'hi StorageClass guifg='s:type' gui=italic'
85 | exe 'hi String guifg='s:str
86 | exe 'hi Tag guifg='s:keyword
87 | exe 'hi Title guifg='s:fg' gui=bold'
88 | exe 'hi Todo guifg='s:fg2' gui=inverse,bold'
89 | exe 'hi Type guifg='s:type
90 | exe 'hi ExtraWhitespace guibg='s:none
91 | exe 'hi Underlined gui=underline'
92 |
93 | " Custom Highlighting
94 | exe 'hi EndOfBuffer guifg='s:linenr
95 | exe 'hi Visual guibg='s:bg3' guifg='s:builtin
96 |
97 | " Python Highlighting
98 | exe 'hi pythonSpaceError guibg='s:none
99 | exe 'hi pythonBoolean guifg='s:builtin
100 | exe 'hi pythonBuiltinType guifg='s:builtin
101 | exe 'hi pythonImport guifg='s:builtin
102 | exe 'hi pythonInclude guifg='s:builtin
103 | exe 'hi pythonClassVar cterm=bold guifg='s:builtin
104 | exe 'hi pythonStrInterpRegion guifg='s:type
105 | exe 'hi pythonStrFormat guifg='s:type
106 | exe 'hi pythonBuiltinFunc guifg='s:fg
107 | exe 'hi pythonFunctionCall guifg='s:var
108 |
--------------------------------------------------------------------------------
/images/promo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leftbones/galaxian-vim/f9e71f0d589b839366ad5c9ca8681b2fa53dfae7/images/promo.png
--------------------------------------------------------------------------------
/images/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leftbones/galaxian-vim/f9e71f0d589b839366ad5c9ca8681b2fa53dfae7/images/screenshot.png
--------------------------------------------------------------------------------
/term/iTerm2/galaxian.itermcolors:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Ansi 0 Color
6 |
7 | Alpha Component
8 | 1
9 | Blue Component
10 | 0.16862745583057404
11 | Color Space
12 | sRGB
13 | Green Component
14 | 0.11372549086809158
15 | Red Component
16 | 0.11372549086809158
17 |
18 | Ansi 1 Color
19 |
20 | Alpha Component
21 | 1
22 | Blue Component
23 | 0.43529412150382996
24 | Color Space
25 | sRGB
26 | Green Component
27 | 0.27843138575553894
28 | Red Component
29 | 0.93725490570068359
30 |
31 | Ansi 10 Color
32 |
33 | Alpha Component
34 | 1
35 | Blue Component
36 | 0.40000000596046448
37 | Color Space
38 | sRGB
39 | Green Component
40 | 0.77254903316497803
41 | Red Component
42 | 0.027450980618596077
43 |
44 | Ansi 11 Color
45 |
46 | Alpha Component
47 | 1
48 | Blue Component
49 | 0.36078432202339172
50 | Color Space
51 | sRGB
52 | Green Component
53 | 0.80784314870834351
54 | Red Component
55 | 1
56 |
57 | Ansi 12 Color
58 |
59 | Alpha Component
60 | 1
61 | Blue Component
62 | 0.95686274766921997
63 | Color Space
64 | sRGB
65 | Green Component
66 | 0.59215688705444336
67 | Red Component
68 | 0.0039215688593685627
69 |
70 | Ansi 13 Color
71 |
72 | Alpha Component
73 | 1
74 | Blue Component
75 | 0.74901962280273438
76 | Color Space
77 | sRGB
78 | Green Component
79 | 0.29019609093666077
80 | Red Component
81 | 0.58823531866073608
82 |
83 | Ansi 14 Color
84 |
85 | Alpha Component
86 | 1
87 | Blue Component
88 | 0.67843139171600342
89 | Color Space
90 | sRGB
91 | Green Component
92 | 0.68235296010971069
93 | Red Component
94 | 0.015686275437474251
95 |
96 | Ansi 15 Color
97 |
98 | Alpha Component
99 | 1
100 | Blue Component
101 | 0.94509804248809814
102 | Color Space
103 | sRGB
104 | Green Component
105 | 0.94509804248809814
106 | Red Component
107 | 0.94509804248809814
108 |
109 | Ansi 2 Color
110 |
111 | Alpha Component
112 | 1
113 | Blue Component
114 | 0.40000000596046448
115 | Color Space
116 | sRGB
117 | Green Component
118 | 0.77254903316497803
119 | Red Component
120 | 0.027450980618596077
121 |
122 | Ansi 3 Color
123 |
124 | Alpha Component
125 | 1
126 | Blue Component
127 | 0.36078432202339172
128 | Color Space
129 | sRGB
130 | Green Component
131 | 0.80784314870834351
132 | Red Component
133 | 1
134 |
135 | Ansi 4 Color
136 |
137 | Alpha Component
138 | 1
139 | Blue Component
140 | 0.95686274766921997
141 | Color Space
142 | sRGB
143 | Green Component
144 | 0.59215688705444336
145 | Red Component
146 | 0.0039215688593685627
147 |
148 | Ansi 5 Color
149 |
150 | Alpha Component
151 | 1
152 | Blue Component
153 | 0.74901962280273438
154 | Color Space
155 | sRGB
156 | Green Component
157 | 0.29019609093666077
158 | Red Component
159 | 0.58823531866073608
160 |
161 | Ansi 6 Color
162 |
163 | Alpha Component
164 | 1
165 | Blue Component
166 | 0.67843139171600342
167 | Color Space
168 | sRGB
169 | Green Component
170 | 0.68235296010971069
171 | Red Component
172 | 0.015686275437474251
173 |
174 | Ansi 7 Color
175 |
176 | Alpha Component
177 | 1
178 | Blue Component
179 | 0.94509804248809814
180 | Color Space
181 | sRGB
182 | Green Component
183 | 0.94509804248809814
184 | Red Component
185 | 0.94509804248809814
186 |
187 | Ansi 8 Color
188 |
189 | Alpha Component
190 | 1
191 | Blue Component
192 | 0.16862745583057404
193 | Color Space
194 | sRGB
195 | Green Component
196 | 0.11372549086809158
197 | Red Component
198 | 0.11372549086809158
199 |
200 | Ansi 9 Color
201 |
202 | Alpha Component
203 | 1
204 | Blue Component
205 | 0.43529412150382996
206 | Color Space
207 | sRGB
208 | Green Component
209 | 0.32941177487373352
210 | Red Component
211 | 0.9686274528503418
212 |
213 | Background Color
214 |
215 | Alpha Component
216 | 1
217 | Blue Component
218 | 0.13333334028720856
219 | Color Space
220 | sRGB
221 | Green Component
222 | 0.10196078568696976
223 | Red Component
224 | 0.10196078568696976
225 |
226 | Badge Color
227 |
228 | Alpha Component
229 | 0.5
230 | Blue Component
231 | 0.0
232 | Color Space
233 | sRGB
234 | Green Component
235 | 0.1491314172744751
236 | Red Component
237 | 1
238 |
239 | Bold Color
240 |
241 | Alpha Component
242 | 1
243 | Blue Component
244 | 0.94901961088180542
245 | Color Space
246 | sRGB
247 | Green Component
248 | 0.97254902124404907
249 | Red Component
250 | 0.97254902124404907
251 |
252 | Cursor Color
253 |
254 | Alpha Component
255 | 1
256 | Blue Component
257 | 0.94901961088180542
258 | Color Space
259 | sRGB
260 | Green Component
261 | 0.97254902124404907
262 | Red Component
263 | 0.97254902124404907
264 |
265 | Cursor Guide Color
266 |
267 | Alpha Component
268 | 0.25
269 | Blue Component
270 | 1
271 | Color Space
272 | sRGB
273 | Green Component
274 | 0.9268307089805603
275 | Red Component
276 | 0.70213186740875244
277 |
278 | Cursor Text Color
279 |
280 | Alpha Component
281 | 1
282 | Blue Component
283 | 0.10588235408067703
284 | Color Space
285 | sRGB
286 | Green Component
287 | 0.094117648899555206
288 | Red Component
289 | 0.090196080505847931
290 |
291 | Foreground Color
292 |
293 | Alpha Component
294 | 1
295 | Blue Component
296 | 0.94509804248809814
297 | Color Space
298 | sRGB
299 | Green Component
300 | 0.94509804248809814
301 | Red Component
302 | 0.94509804248809814
303 |
304 | Link Color
305 |
306 | Alpha Component
307 | 1
308 | Blue Component
309 | 0.73423302173614502
310 | Color Space
311 | sRGB
312 | Green Component
313 | 0.35916060209274292
314 | Red Component
315 | 0.0
316 |
317 | Selected Text Color
318 |
319 | Alpha Component
320 | 1
321 | Blue Component
322 | 0.94901961088180542
323 | Color Space
324 | sRGB
325 | Green Component
326 | 0.97254902124404907
327 | Red Component
328 | 0.97254902124404907
329 |
330 | Selection Color
331 |
332 | Alpha Component
333 | 1
334 | Blue Component
335 | 0.10588235408067703
336 | Color Space
337 | sRGB
338 | Green Component
339 | 0.094117648899555206
340 | Red Component
341 | 0.090196080505847931
342 |
343 | Tab Color
344 |
345 | Alpha Component
346 | 1
347 | Blue Component
348 | 0.098039217293262482
349 | Color Space
350 | sRGB
351 | Green Component
352 | 0.098039217293262482
353 | Red Component
354 | 0.098039217293262482
355 |
356 | Underline Color
357 |
358 | Alpha Component
359 | 1
360 | Blue Component
361 | 0.986785888671875
362 | Color Space
363 | sRGB
364 | Green Component
365 | 0.986785888671875
366 | Red Component
367 | 0.986785888671875
368 |
369 |
370 |
371 |
--------------------------------------------------------------------------------