-
Notifications
You must be signed in to change notification settings - Fork 1
/
1989.vim
168 lines (146 loc) · 7.81 KB
/
1989.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
" Vim color file
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "1989"
let s:dark_gray = [236, "#303030"]
let s:mid_gray = [102, "#878787"]
let s:default_white = [231, "#FFFFFF"]
let s:lavender = [183, "#dfafff"]
let s:light_purple = [225, "#ffdfff"]
let s:gray_purple = [146, "#afafd7"]
let s:pink = [218, "#ffafdf"]
let s:light_blue = [159, "#afffff"]
let s:mint = [158, "#afffd7"]
let s:light_yellow = [229, "#ffffaf"]
let s:dark_pink = [197, "#ff005f"]
let s:dark_green = [29, "#00875f"]
let s:dark_blue = [31, "#0087af"]
let s:none = ["NONE", ""]
function! <SID>set_hi(name, fg, bg, style)
execute "hi " . a:name . " ctermfg=" . a:fg[0] . " ctermbg=" . a:bg[0] " cterm=" . a:style
if a:fg[1] != ""
execute "hi " . a:name . " guifg=" . a:fg[1]
endif
if a:bg[1] != ""
execute "hi " . a:name . " guibg=" . a:bg[1]
endif
execute "hi " . a:name . " gui=" . a:style
endfun
call <SID>set_hi("Normal", s:default_white, s:dark_gray, "NONE")
call <SID>set_hi("Cursor", s:dark_gray, s:default_white, "NONE")
call <SID>set_hi("Visual", s:none, s:mid_gray, "NONE")
call <SID>set_hi("CursorLine", s:none, s:dark_gray, "NONE")
call <SID>set_hi("CursorColumn", s:none, s:dark_gray, "NONE")
call <SID>set_hi("ColorColumn", s:none, s:dark_gray, "NONE")
call <SID>set_hi("LineNr", s:mid_gray, s:dark_gray, "NONE")
call <SID>set_hi("VertSplit", s:mid_gray, s:mid_gray, "NONE")
call <SID>set_hi("MatchParen", s:pink, s:none, "underline")
call <SID>set_hi("StatusLine", s:default_white, s:mid_gray, "bold")
call <SID>set_hi("StatusLineNC", s:default_white, s:mid_gray, "NONE")
call <SID>set_hi("Pmenu", s:none, s:none, "NONE")
call <SID>set_hi("PmenuSel", s:none, s:dark_gray, "NONE")
call <SID>set_hi("IncSearch", s:default_white, s:light_yellow, "NONE")
call <SID>set_hi("Search", s:none, s:none, "underline")
call <SID>set_hi("Directory", s:lavender, s:none, "NONE")
call <SID>set_hi("Folded", s:light_yellow, s:dark_gray, "NONE")
call <SID>set_hi("Define", s:gray_purple, s:none, "NONE")
call <SID>set_hi("DiffAdd", s:default_white, s:dark_green, "bold")
call <SID>set_hi("DiffDelete", s:dark_pink, s:none, "NONE")
call <SID>set_hi("DiffChange", s:default_white, s:dark_gray, "NONE")
call <SID>set_hi("DiffText", s:default_white, s:dark_blue, "bold")
call <SID>set_hi("ErrorMsg", s:default_white, s:dark_pink, "NONE")
call <SID>set_hi("WarningMsg", s:default_white, s:dark_pink, "NONE")
call <SID>set_hi("Boolean", s:lavender, s:none, "NONE")
call <SID>set_hi("Character", s:lavender, s:none, "NONE")
call <SID>set_hi("Comment", s:gray_purple, s:none, "NONE")
call <SID>set_hi("Conditional", s:pink, s:none, "NONE")
call <SID>set_hi("Constant", s:mint, s:none, "NONE")
call <SID>set_hi("Float", s:lavender, s:none, "NONE")
call <SID>set_hi("Function", s:light_purple, s:none, "NONE")
call <SID>set_hi("Identifier", s:light_purple, s:none, "NONE")
call <SID>set_hi("Keyword", s:pink, s:none, "NONE")
call <SID>set_hi("Label", s:light_yellow, s:none, "NONE")
call <SID>set_hi("NonText", s:default_white, s:dark_gray, "NONE")
call <SID>set_hi("Number", s:mint, s:none, "NONE")
call <SID>set_hi("Operator", s:pink, s:none, "NONE")
call <SID>set_hi("PreProc", s:pink, s:none, "NONE")
call <SID>set_hi("Special", s:light_purple, s:none, "NONE")
call <SID>set_hi("SpecialKey", s:default_white, s:dark_gray, "NONE")
call <SID>set_hi("Statement", s:pink, s:none, "NONE")
call <SID>set_hi("StorageClass", s:mint, s:none, "NONE")
call <SID>set_hi("String", s:light_blue, s:none, "NONE")
call <SID>set_hi("Tag", s:pink, s:none, "NONE")
call <SID>set_hi("Title", s:default_white, s:none, "bold")
call <SID>set_hi("Todo", s:light_yellow, s:none, "inverse,bold")
call <SID>set_hi("Type", s:mint, s:none, "NONE")
call <SID>set_hi("Underlined", s:none, s:none, "underline")
call <SID>set_hi("rubyClass", s:pink, s:none, "NONE")
call <SID>set_hi("rubyFunction", s:light_purple, s:none, "NONE")
call <SID>set_hi("rubyInterpolationDelimiter", s:none, s:none, "NONE")
call <SID>set_hi("rubySymbol", s:light_purple, s:none, "NONE")
call <SID>set_hi("rubyConstant", s:mint, s:none, "NONE")
call <SID>set_hi("rubyStringDelimiter", s:light_blue, s:none, "NONE")
call <SID>set_hi("rubyBlockParameter", s:pink, s:none, "NONE")
call <SID>set_hi("rubyBlock", s:default_white, s:none, "NONE")
call <SID>set_hi("rubyInstanceVariable", s:pink, s:none, "NONE")
call <SID>set_hi("rubyInclude", s:pink, s:none, "NONE")
call <SID>set_hi("rubyGlobalVariable", s:light_yellow, s:none, "NONE")
call <SID>set_hi("rubyRegexp", s:light_yellow, s:none, "NONE")
call <SID>set_hi("rubyRegexpDelimiter", s:light_yellow, s:none, "NONE")
call <SID>set_hi("rubyEscape", s:lavender, s:none, "NONE")
call <SID>set_hi("rubyControl", s:lavender, s:none, "NONE")
call <SID>set_hi("rubyRepeat", s:lavender, s:none, "NONE")
call <SID>set_hi("rubyConditional", s:pink, s:none, "NONE")
call <SID>set_hi("rubyClassVariable", s:light_yellow, s:none, "NONE")
call <SID>set_hi("rubyOperator", s:pink, s:none, "NONE")
call <SID>set_hi("rubyException", s:mint, s:none, "NONE")
call <SID>set_hi("rubyPseudoVariable", s:mint, s:none, "NONE")
call <SID>set_hi("rubyRailsUserClass", s:mint, s:none, "NONE")
call <SID>set_hi("rubyRailsARAssociationMethod", s:mint, s:none, "NONE")
call <SID>set_hi("rubyRailsARMethod", s:mint, s:none, "NONE")
call <SID>set_hi("rubyRailsRenderMethod", s:mint, s:none, "NONE")
call <SID>set_hi("rubyRailsMethod", s:mint, s:none, "NONE")
call <SID>set_hi("rubyArrayDelimiter", s:pink, s:none, "NONE")
call <SID>set_hi("rubyInterpolation", s:light_purple, s:none, "NONE")
call <SID>set_hi("rubyInterpolationDelimiter", s:pink, s:none, "NONE")
call <SID>set_hi("erubyDelimiter", s:none, s:none, "NONE")
call <SID>set_hi("erubyRailsMethod", s:mint, s:none, "NONE")
call <SID>set_hi("htmlTag", s:none, s:none, "NONE")
call <SID>set_hi("htmlEndTag", s:none, s:none, "NONE")
call <SID>set_hi("htmlTagName", s:none, s:none, "NONE")
call <SID>set_hi("htmlArg", s:none, s:none, "NONE")
call <SID>set_hi("htmlSpecialChar", s:lavender, s:none, "NONE")
call <SID>set_hi("javaScriptFunction", s:mint, s:none, "NONE")
call <SID>set_hi("javaScriptRailsFunction", s:mint, s:none, "NONE")
call <SID>set_hi("javaScriptBraces", s:none, s:none, "NONE")
call <SID>set_hi("yamlKey", s:pink, s:none, "NONE")
call <SID>set_hi("yamlAnchor", s:none, s:none, "NONE")
call <SID>set_hi("yamlAlias", s:none, s:none, "NONE")
call <SID>set_hi("yamlDocumentHeader", s:light_yellow, s:none, "NONE")
call <SID>set_hi("yamlPlainScalar", s:light_blue, s:none, "NONE")
call <SID>set_hi("yamlBlockCollectionItemStart", s:pink, s:none, "NONE")
call <SID>set_hi("cssURL", s:dark_pink, s:none, "NONE")
call <SID>set_hi("cssFunctionName", s:mint, s:none, "NONE")
call <SID>set_hi("cssColor", s:lavender, s:none, "NONE")
call <SID>set_hi("cssPseudoClassId", s:light_yellow, s:none, "NONE")
call <SID>set_hi("cssClassName", s:light_yellow, s:none, "NONE")
call <SID>set_hi("cssValueLength", s:lavender, s:none, "NONE")
call <SID>set_hi("cssCommonAttr", s:mint, s:none, "NONE")
call <SID>set_hi("cssBraces", s:none, s:none, "NONE")
call <SID>set_hi("jsThis", s:pink, s:none, "NONE")
call <SID>set_hi("jsBraces", s:light_purple, s:none, "NONE")
call <SID>set_hi("jsGlobalObjects", s:mint, s:none, "NONE")
call <SID>set_hi("coffeeCurly", s:lavender, s:none, "NONE")
call <SID>set_hi("coffeeObjAssign", s:light_purple, s:none, "NONE")
call <SID>set_hi("cjsxAttribProperty", s:lavender, s:none, "NONE")
call <SID>set_hi("markdownH1", s:light_blue, s:none, "NONE")
call <SID>set_hi("markdownH2", s:light_blue, s:none, "NONE")
call <SID>set_hi("markdownH3", s:light_blue, s:none, "NONE")
call <SID>set_hi("markdownH4", s:light_blue, s:none, "NONE")
call <SID>set_hi("markdownH5", s:light_blue, s:none, "NONE")
call <SID>set_hi("markdownH6", s:light_blue, s:none, "NONE")
call <SID>set_hi("markdownHeadingDelimiter", s:light_blue, s:none, "NONE")
call <SID>set_hi("markdownRule", s:light_blue, s:none, "NONE")