]> git.madduck.net Git - etc/vim.git/blob - templates/_common.colortemplate

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Enhance transparency to SignColumn and FoldColumn
[etc/vim.git] / templates / _common.colortemplate
1 ; vim: ft=colortemplate fdm=marker
2
3 ; Default highlight groups {{{
4 #if !has('gui_running') && get(g:, '@optionprefix_dimmed', 0)
5   ; dimmed colours
6   #if !has('gui_running') && &background ==# 'light'
7     #if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
8       Normal                       realblack    none
9     #else
10       Normal                       realblack    bg0
11     #endif
12   #elseif !has('gui_running') && &background ==# 'dark'
13     #if get(g:, '@optionprefix_transparent', 0)
14       Normal                       brightwhite  none
15     #else
16       Normal                       brightwhite  bg0
17     #endif
18   #endif
19   Conceal                          darkblue     none
20   Constant                         darkgreen    none
21   Directory                        darkblue     none     bold
22   Error                            darkred      none     t=reverse,bold g=standout,bold
23   Function                         darkcyan     none
24   Identifier                       darkblue     none
25   ModeMsg                          darkblue     none
26   MoreMsg                          darkgreen    none
27   PreProc                          darkcyan     none
28   Statement                        darkred      none
29   Special                          darkyellow   none
30   Todo                             darkcyan     none     reverse
31   WarningMsg                       darkred      none
32   WildMenu                         darkblue     bg2      bold
33 #else
34   ; default colours
35   #if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
36     Normal                         fg1          none
37   #else
38     Normal                         fg1          bg0
39   #endif
40   Conceal                          blue         none
41   Constant                         green        none
42   Directory                        blue         none     bold
43   Error                            red          none     t=reverse,bold g=standout,bold
44   Function                         cyan         none
45   Identifier                       blue         none
46   ModeMsg                          blue         none
47   MoreMsg                          green        none
48   PreProc                          cyan         none
49   Statement                        red          none
50   Special                          yellow       none
51   Todo                             cyan         none     reverse
52   WarningMsg                       red          none
53   WildMenu                         blue         bg2      bold
54 #endif
55 #if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
56   ; transparent background
57   LineNr                           bg2          none
58   CursorLineNr                     yellow       none
59   FoldColumn                       darkgray     none
60   SignColumn                       none         none
61   VertSplit                        bg3          none
62   Pmenu                            fg1          none
63   PmenuSbar                        fg2          none
64   PmenuSel                         fg2          none        reverse
65   PmenuThumb                       none         fg2
66 #else
67   ; opaque background
68   LineNr                           bg2          bg1
69   CursorLineNr                     yellow       bg1
70   FoldColumn                       darkgray     bg1
71   SignColumn                       none          bg1
72   VertSplit                        bg3          bg0
73   Pmenu                            fg1          bg2
74   PmenuSbar                        none         bg2
75   PmenuSel                         bg1          fg2        bold
76   PmenuThumb                       none         bg4
77 #endif
78
79 ; Group                          Fg           Bg         Attributes
80 ColorColumn                      none         bg1        bold
81 Cursor                           none         none       reverse,bold
82 CursorColumn                     none         bg1
83 CursorLine                       none         bg1       bold
84 DiffAdd                          none         diffgreen
85 DiffAdded                        none         diffgreen
86 DiffChange                       none         diffblue
87 DiffDelete                       none         diffred
88 DiffRemoved                      none         diffred
89 DiffText                         none         diffgreen
90 EndOfBuffer                      bg0          none
91 ErrorMsg                      -> Error
92 Folded                           bg3          bg1        g=italic
93 IncSearch                        yellow       black      reverse
94 MatchParen                       none         bg2        bold
95 NonText                          bg4          none
96 Question                         darkyellow   none
97 QuickFixLine                  -> Search
98 Search                           brightyellow black      reverse
99 SpecialKey                       bg4          none
100 SpellBad                         red          none       t=underline g=italic,undercurl
101 SpellCap                         blue         none       t=underline g=italic,undercurl
102 SpellLocal                       cyan         none       t=underline g=italic,undercurl
103 SpellRare                        magenta      none       t=underline g=italic,undercurl
104 StatusLine                       fg1          bg2
105 StatusLineNC                     fg2          bg1
106 StatusLineTerm                -> StatusLine
107 StatusLineTermNC              -> StatusLineNC
108 TabLine                       -> TabLineFill
109 TabLineFill                      fg2          bg3
110 TabLineSel                       fg1          bg1
111 Title                            red          none       bold
112 Visual                           none         bg1
113 VisualNOS                     -> Visual
114 ; Other conventional group names (see `:help group-name`)
115 Boolean                       -> Constant
116 Character                     -> Constant
117 Comment                          fg3          none
118 Conditional                   -> Statement
119 Define                        -> PreProc
120 Debug                         -> Special
121 Delimiter                     -> Special
122 Exception                     -> Statement
123 Float                         -> Constant
124 Ignore                           fg           none
125 Include                       -> PreProc
126 Keyword                       -> Statement
127 Label                         -> Statement
128 Macro                         -> PreProc
129 Number                        -> Constant
130 Operator                      -> Statement
131 PreCondit                     -> PreProc
132 Repeat                        -> Statement
133 SpecialChar                   -> Special
134 SpecialComment                -> Special
135 StorageClass                  -> Type
136 String                        -> Constant
137 Structure                     -> Type
138 Tag                           -> Special
139 Type                             darkcyan     none
140 Typedef                       -> Type
141 Underlined                       none         none       underline
142 ; Language mapping cursor
143 lCursor                       -> Cursor
144 ; See `:help CursorIM`
145 CursorIM                         none         none       reverse
146 ; See `:help window-toolbar`
147 ToolbarLine                      none         bg3
148 ToolbarButton                    fg0          bg3        bold
149 ; }}}
150
151 ; Additional highlight groups {{{
152 ; Input mode cursor
153 iCursor                       -> Cursor
154 ; Visual mode cursor, selection
155 vCursor                       -> Cursor
156
157 ; Useful for custom status lines
158 NormalMode                       fg2          bg0        reverse
159 InsertMode                       blue         bg0        reverse
160 ReplaceMode                      cyan         bg0        reverse
161 VisualMode                       yellow       bg0        reverse
162 CommandMode                      magenta      bg0        reverse
163 Warnings                         red          bg0        reverse
164 ; }}}
165
166 ; Plugin support {{{
167 ; GitSigns
168 #if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
169   ; transparent background
170   GitSignsAdd                      green    none
171   GitSignsChange                   blue     none
172   GitSignsDelete                   red      none
173 #else
174   ; opaque background
175   GitSignsAdd                      green    bg1
176   GitSignsChange                   blue     bg1
177   GitSignsDelete                   red      bg1
178 #endif
179 GitSignsAddNr                 -> GitSignsAdd
180 GitSignsChangeNr              -> GitSignsChange
181 GitSignsDeleteNr              -> GitSignsDelete
182 ; }}}
183
184 ; Terminal colors {{{
185 TermCursor                    -> Cursor
186 TermCursorNC                     bg1          fg1
187 ; }}}
188