-
Notifications
You must be signed in to change notification settings - Fork 1
/
abbott.vim
156 lines (128 loc) · 5.61 KB
/
abbott.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
" Vim color file
" Name: abbott.vim
" Description: An oddly-named dark Vim color scheme
" Maintainer: Jonathan Rascher <jon@bcat.name>
" Version: 1.3
" Mark abbott.vim as a dark theme.
set background=dark
" Reset existing syntax highlights to their default settings.
highlight clear
if exists("syntax_on")
syntax reset
endif
" Declare the name of this color scheme.
let g:colors_name="abbott"
" Tell the CSApprox plugin not to override the default terminal background.
let g:CSApprox_hook_abbott_post="hi Normal ctermbg=NONE"
" Define colors (blue).
let s:pastel_blue="#8ccdf0"
let s:blue="#3f91f1"
" Define colors (brown).
let s:tan="#fee3b4"
let s:light_brown="#816749"
let s:brown="#1f1912"
let s:dark_brown="#0a0806"
" Define colors (green).
let s:mint_green="#d5fac8"
let s:pastel_green="#d8ff84"
let s:lime_green="#94d900"
let s:green="#76bc20"
" Define colors (orange).
let s:burnt_orange="#f63f05"
let s:orange="#fbb32f"
" Define colors (purple).
let s:lavender="#e6a2f3"
" Define colors (red).
let s:pink="#ec6c99"
let s:red="#d80450"
" Define colors (yellow).
let s:yellow="#e5e339"
" Lay down some infrastructure to make using the color variables nicer.
function! s:H(group, style)
execute "highlight" a:group
\ "guifg=" . (has_key(a:style, "fg") ? a:style.fg : "NONE")
\ "guibg=" . (has_key(a:style, "bg") ? a:style.bg : "NONE")
\ "guisp=" . (has_key(a:style, "sp") ? a:style.sp : "NONE")
\ "gui=" . (has_key(a:style, "opt") ? a:style.opt : "NONE")
endfunction
" Set default foreground and background colors.
call s:H("Normal", { "fg": s:mint_green, "bg": s:brown })
" Set up highlights for basic syntax groups.
call s:H("Comment", { "fg": s:orange })
call s:H("Constant", { "fg": s:burnt_orange })
call s:H("String", { "fg": s:lavender })
call s:H("Character", { "fg": s:lavender })
call s:H("Identifier", { "fg": s:pastel_blue })
call s:H("Statement", { "fg": s:red, "opt": "bold" })
call s:H("PreProc", { "fg": s:pink })
call s:H("Type", { "fg": s:green })
call s:H("Special", { "fg": s:tan })
call s:H("Tag", { "fg": s:lavender, "opt": "underline" })
call s:H("Underlined", { "fg": s:lavender, "opt": "underline" })
call s:H("Ignore", { "fg": "bg" })
call s:H("Error", { "fg": s:brown, "bg": s:red })
call s:H("Todo", { "fg": s:brown, "bg": s:orange })
" Set up highlights for various UI elements.
call s:H("ErrorMsg", { "fg": s:brown, "bg": s:red })
call s:H("Folded", { "fg": s:brown, "bg": s:pastel_blue })
call s:H("FoldColumn", { "fg": s:brown, "bg": s:pastel_blue })
call s:H("LineNr", { "fg": s:yellow })
call s:H("ModeMsg", { "opt": "bold" })
call s:H("MoreMsg", { "fg": s:blue, "opt": "bold" })
call s:H("Pmenu", { "bg": s:dark_brown })
call s:H("PmenuSel",
\ { "fg": s:dark_brown, "bg": s:light_brown, "opt": "bold" })
call s:H("PmenuSbar", { "bg": s:light_brown })
call s:H("PmenuThumb", { "bg": s:blue })
call s:H("Question", { "fg": s:pink, "opt": "bold" })
call s:H("SignColumn", { "fg": s:brown, "bg": s:mint_green })
call s:H("StatusLine", { "fg": s:brown, "bg": s:pastel_blue, "opt": "bold" })
call s:H("StatusLineNC", { "fg": s:brown, "bg": s:mint_green })
call s:H("TabLine", { "fg": s:brown, "bg": s:mint_green })
call s:H("TabLineFill", { "bg": s:mint_green })
call s:H("TabLineSel", { "fg": s:brown, "bg": s:pastel_blue, "opt": "bold" })
call s:H("Title", { "fg": s:red, "opt": "bold" })
call s:H("WarningMsg", { "fg": s:brown, "bg": s:pink })
call s:H("WildMenu", { "fg": s:brown, "bg": s:mint_green })
call s:H("VertSplit", { "fg": s:brown, "bg": s:mint_green })
" Use plain old reverse video for the blinking cursor.
call s:H("Cursor", { "fg": "fg", "bg": "bg", "opt": "reverse" })
call s:H("CursorIM", { "fg": "fg", "bg": "bg", "opt": "reverse" })
" Darken the background of the current line and column.
call s:H("CursorLine", { "bg": s:dark_brown })
call s:H("CursorColumn", { "bg": s:dark_brown })
" Darken the background of the right margin.
call s:H("ColorColumn", { "bg": s:dark_brown })
" Highlight matched delimiters in a way that's clearly distinguishable from
" unmatched delimiter/statement/preprocessor highlighting.
call s:H("MatchParen",
\ { "fg": s:dark_brown, "bg": s:light_brown, "opt": 'bold' })
" Set up highlights for imaginary `~` and `@` characters as well as special
" keys.
call s:H("NonText", { "fg": s:pastel_blue })
call s:H("SpecialKey", { "fg": s:pastel_blue })
" Set a vibrant background for visual mode.
call s:H("Visual", { "fg": s:brown, "bg": s:lime_green })
call s:H("VisualNOS", { "fg": s:brown, "bg": s:pastel_green })
" Use cold highlights for incremental searching and warm highlights for final
" search results.
call s:H("IncSearch", { "fg": s:brown, "bg": s:pastel_blue })
call s:H("Search", { "fg": s:brown, "bg": s:tan })
" Set up spell-checking in an unobtrusive way.
call s:H("SpellBad", { "sp": s:red, "opt": "undercurl" })
call s:H("SpellCap", { "sp": s:pastel_blue, "opt": "undercurl" })
call s:H("SpellLocal", { "sp": s:yellow, "opt": "undercurl" })
call s:H("SpellRare", { "sp": s:pink, "opt": "undercurl" })
" Don't do anything special for concealed tokens.
call s:H("Conceal", {})
" Set highlights for directory listings.
call s:H("Directory", { "fg": s:pastel_blue })
" Use readable diff highlights. :)
call s:H("DiffAdd", { "fg": s:brown, "bg": s:green, "opt": "bold" })
call s:H("DiffChange", { "fg": s:brown, "bg": s:pink })
call s:H("DiffDelete", { "fg": s:brown, "bg": s:red })
call s:H("DiffText", { "fg": s:brown, "bg": s:pastel_blue, "opt": "bold" })
" Set up custom highlights for bad-whitespace.vim.
call s:H("BadWhitespace", { "fg": s:brown, "bg": s:red })
" Render TeX macros in preprocessor style. They are macros, after all. :P
highlight link texStatement PreProc