Skip to content

Commit 57e5488

Browse files
committed
Add ansi colorscheme
1 parent 09715bb commit 57e5488

File tree

1 file changed

+212
-0
lines changed

1 file changed

+212
-0
lines changed

colors/ansi.vim

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
set background=dark
2+
3+
hi clear
4+
5+
let g:colors_name = 'ansi'
6+
set notermguicolors
7+
8+
" This color scheme relies on ANSI colors only. It automatically inherits
9+
" the 16 colors of your terminal color scheme. You can change the colors of
10+
" certain highlight groups by picking a different color from the following set
11+
" of colors. If you sticked to the ANSI color palette conventions when setting
12+
" colors in your terminal emulator, this will look pretty neat. If you used
13+
" a terminal color scheme that uses a different convention (e.g. base16)
14+
" colors will likely look very odd if you use this color scheme.
15+
"
16+
" 0: Black │ 8: Bright Black (dark gray)
17+
" 1: Red │ 9: Bright Red
18+
" 2: Green │ 10: Bright Green
19+
" 3: Yellow │ 11: Bright Yellow
20+
" 4: Blue │ 12: Bright Blue
21+
" 5: Magenta │ 13: Bright Magenta
22+
" 6: Cyan │ 14: Bright Cyan
23+
" 7: White (gray) │ 15: Bright White
24+
"
25+
" Use the 'cterm' argument to make certain highlight groups appear in italic
26+
" (if your terminal and font support it), bold, reverse, underlined, etc.
27+
" See ':help attr-list' for possible options.
28+
29+
" Editor Elements
30+
hi NonText ctermfg=0
31+
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
32+
hi Underlined cterm=underline
33+
hi Bold cterm=bold
34+
hi Italic cterm=italic
35+
hi StatusLine ctermfg=15 ctermbg=8 cterm=NONE
36+
hi StatusLineNC ctermfg=15 ctermbg=0 cterm=NONE
37+
hi VertSplit ctermfg=8
38+
hi TabLine ctermfg=7 ctermbg=0
39+
hi TabLineFill ctermfg=0 ctermbg=NONE
40+
hi TabLineSel ctermfg=0 ctermbg=11
41+
hi Title ctermfg=4 cterm=bold
42+
hi CursorLine ctermbg=0 ctermfg=NONE
43+
hi Cursor ctermbg=15 ctermfg=0
44+
hi CursorColumn ctermbg=0
45+
hi LineNr ctermfg=8
46+
hi CursorLineNr ctermfg=6
47+
hi helpLeadBlank ctermbg=NONE ctermfg=NONE
48+
hi helpNormal ctermbg=NONE ctermfg=NONE
49+
hi Visual ctermbg=8 ctermfg=15 cterm=bold
50+
hi VisualNOS ctermbg=8 ctermfg=15 cterm=bold
51+
hi Pmenu ctermbg=0 ctermfg=15
52+
hi PmenuSbar ctermbg=8 ctermfg=7
53+
hi PmenuSel ctermbg=8 ctermfg=15 cterm=bold
54+
hi PmenuThumb ctermbg=7 ctermfg=NONE
55+
hi FoldColumn ctermfg=7
56+
hi Folded ctermfg=12
57+
hi WildMenu ctermbg=0 ctermfg=15 cterm=NONE
58+
hi SpecialKey ctermfg=0
59+
hi IncSearch ctermbg=1 ctermfg=0
60+
hi CurSearch ctermbg=3 ctermfg=0
61+
hi Search ctermbg=11 ctermfg=0
62+
hi Directory ctermfg=4
63+
hi MatchParen ctermbg=0 ctermfg=3 cterm=underline
64+
hi SpellBad cterm=undercurl
65+
hi SpellCap cterm=undercurl
66+
hi SpellLocal cterm=undercurl
67+
hi SpellRare cterm=undercurl
68+
hi ColorColumn ctermbg=8
69+
hi SignColumn ctermfg=7
70+
hi ModeMsg ctermbg=15 ctermfg=0 cterm=bold
71+
hi MoreMsg ctermfg=4
72+
hi Question ctermfg=4
73+
hi QuickFixLine ctermbg=0 ctermfg=14
74+
hi Conceal ctermfg=8
75+
hi ToolbarLine ctermbg=0 ctermfg=15
76+
hi ToolbarButton ctermbg=8 ctermfg=15
77+
hi debugPC ctermfg=7
78+
hi debugBreakpoint ctermfg=8
79+
hi ErrorMsg ctermfg=1 cterm=bold,italic
80+
hi WarningMsg ctermfg=11
81+
hi DiffAdd ctermbg=10 ctermfg=0
82+
hi DiffChange ctermbg=12 ctermfg=0
83+
hi DiffDelete ctermbg=9 ctermfg=0
84+
hi DiffText ctermbg=14 ctermfg=0
85+
hi diffAdded ctermfg=10
86+
hi diffRemoved ctermfg=9
87+
hi diffChanged ctermfg=12
88+
hi diffOldFile ctermfg=11
89+
hi diffNewFile ctermfg=13
90+
hi diffFile ctermfg=12
91+
hi diffLine ctermfg=7
92+
hi diffIndexLine ctermfg=14
93+
hi healthError ctermfg=1
94+
hi healthSuccess ctermfg=2
95+
hi healthWarning ctermfg=3
96+
97+
" Syntax
98+
hi Comment ctermfg=8 cterm=italic
99+
hi Constant ctermfg=3
100+
hi Error ctermfg=1
101+
hi Identifier ctermfg=9
102+
hi Function ctermfg=4
103+
hi Special ctermfg=13
104+
hi Statement ctermfg=5
105+
hi String ctermfg=2
106+
hi Operator ctermfg=6
107+
hi Boolean ctermfg=3
108+
hi Label ctermfg=14
109+
hi Keyword ctermfg=5
110+
hi Exception ctermfg=5
111+
hi Conditional ctermfg=5
112+
hi PreProc ctermfg=13
113+
hi Include ctermfg=5
114+
hi Macro ctermfg=5
115+
hi StorageClass ctermfg=11
116+
hi Structure ctermfg=11
117+
hi Todo ctermfg=0 ctermbg=9 cterm=bold
118+
hi Type ctermfg=6
119+
120+
" neovim-specific (remove if you're using vim)
121+
hi NormalFloat ctermbg=0 ctermfg=15
122+
hi FloatBorder ctermbg=0 ctermfg=7
123+
hi FloatShadow ctermbg=0 ctermfg=15
124+
125+
" Treesitter highlighting
126+
" - allows for more precise syntax highlighting
127+
" - only available for nvim >0.5
128+
" - see also :help treesitter-highlight-groups
129+
130+
hi @variable ctermfg=15
131+
hi @variable.builtin ctermfg=1
132+
hi @variable.parameter ctermfg=7
133+
hi @variable.member ctermfg=7
134+
hi @constant.builtin ctermfg=5
135+
hi @string.regexp ctermfg=1
136+
hi @string.escape ctermfg=6
137+
hi @string.special.url ctermfg=4 cterm=underline
138+
hi @string.special.symbol ctermfg=13
139+
hi @type.builtin ctermfg=3
140+
hi @property ctermfg=1
141+
hi @function.builtin ctermfg=5
142+
hi @constructor ctermfg=11
143+
hi @keyword.coroutine ctermfg=1
144+
hi @keyword.function ctermfg=5
145+
hi @keyword.return ctermfg=5
146+
hi @keyword.export ctermfg=14
147+
hi @punctuation.bracket ctermfg=15
148+
hi @comment.error ctermbg=9 ctermfg=0
149+
hi @comment.warning ctermbg=11 ctermfg=0
150+
hi @comment.todo ctermbg=12 ctermfg=0
151+
hi @comment.note ctermbg=14 ctermfg=0
152+
hi @markup ctermfg=15
153+
hi @markup.strong ctermfg=15 cterm=bold
154+
hi @markup.italic ctermfg=15 cterm=italic
155+
hi @markup.strikethrough ctermfg=15 cterm=strikethrough
156+
hi @markup.heading ctermfg=4 cterm=bold
157+
hi @markup.quote ctermfg=6
158+
hi @markup.math ctermfg=4
159+
hi @markup.link.url ctermfg=5 cterm=underline
160+
hi @markup.raw ctermfg=14
161+
hi @markup.list.checked ctermfg=2
162+
hi @markup.list.unchecked ctermfg=7
163+
hi @tag ctermfg=5
164+
hi @tag.builtin ctermfg=6
165+
hi @tag.attribute ctermfg=4
166+
hi @tag.delimiter ctermfg=15
167+
168+
hi link @variable.parameter.builtin @variable.parameter
169+
hi link @constant Constant
170+
hi link @constant.macro Macro
171+
hi link @module Structure
172+
hi link @module.builtin Special
173+
hi link @label Label
174+
hi link @string String
175+
hi link @string.special Special
176+
hi link @character Character
177+
hi link @character.special SpecialChar
178+
hi link @boolean Boolean
179+
hi link @number Number
180+
hi link @number.float Float
181+
hi link @type Type
182+
hi link @type.definition Type
183+
hi link @attribute Constant
184+
hi link @attribute.builtin Constant
185+
hi link @function Function
186+
hi link @function.call Function
187+
hi link @function.method Function
188+
hi link @function.method.call Function
189+
hi link @operator Operator
190+
hi link @keyword Keyword
191+
hi link @keyword.operator Operator
192+
hi link @keyword.import Include
193+
hi link @keyword.type Keyword
194+
hi link @keyword.modifier Keyword
195+
hi link @keyword.repeat Repeat
196+
hi link @keyword.debug Exception
197+
hi link @keyword.exception Exception
198+
hi link @keyword.conditional Conditional
199+
hi link @keyword.conditional.ternary Operator
200+
hi link @keyword.directive PreProc
201+
hi link @keyword.directive.define Define
202+
hi link @punctuation.delimiter Delimiter
203+
hi link @punctuation.special Special
204+
hi link @comment Comment
205+
hi link @comment.documentation Comment
206+
hi link @markup.underline underline
207+
hi link @markup.link Tag
208+
hi link @markup.link.label Label
209+
hi link @markup.list Special
210+
hi link @diff.plus diffAdded
211+
hi link @diff.minus diffRemoved
212+
hi link @diff.delta diffChanged

0 commit comments

Comments
 (0)