]> 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:

Add support for GitSigns
[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   CursorLineNr                     yellow       none
58   FoldColumn                       darkgray     none
59   SignColumn                       fg2          none
60   VertSplit                        bg3          none
61 #else
62   ; opaque background
63   CursorLineNr                     yellow       bg1
64   FoldColumn                       darkgray     bg1
65   SignColumn                       fg2          bg1
66   VertSplit                        bg3          bg0
67 #endif
68
69 ; Group                          Fg           Bg         Attributes
70 ColorColumn                      none         bg1        bold
71 Cursor                           none         none       reverse,bold
72 CursorColumn                     none         bg1
73 CursorLine                       none         bg1       bold
74 DiffAdd                          none         diffgreen
75 DiffAdded                        none         diffgreen
76 DiffChange                       none         diffblue
77 DiffDelete                       none         diffred
78 DiffRemoved                      none         diffred
79 DiffText                         none         diffgreen
80 EndOfBuffer                      bg0          none
81 ErrorMsg                      -> Error
82 Folded                           bg3          bg1        g=italic
83 IncSearch                        yellow       black      reverse
84 LineNr                           bg3          bg1
85 SignColumn                       none         bg1
86 MatchParen                       none         bg2        bold
87 NonText                          bg4          none
88 Pmenu                            fg1          bg2
89 PmenuSbar                        none         bg2
90 PmenuSel                         bg1          fg2        bold
91 PmenuThumb                       none         bg4
92 Question                         darkyellow   none
93 QuickFixLine                  -> Search
94 Search                           brightyellow black      reverse
95 SpecialKey                       bg4          none
96 SpellBad                         red          none       t=underline g=italic,undercurl
97 SpellCap                         blue         none       t=underline g=italic,undercurl
98 SpellLocal                       cyan         none       t=underline g=italic,undercurl
99 SpellRare                        magenta      none       t=underline g=italic,undercurl
100 StatusLine                       fg1          bg2
101 StatusLineNC                     fg2          bg1
102 StatusLineTerm                -> StatusLine
103 StatusLineTermNC              -> StatusLineNC
104 TabLine                       -> TabLineFill
105 TabLineFill                      fg2          bg3
106 TabLineSel                       fg1          bg1
107 Title                            red          none       bold
108 Visual                           none         bg1
109 VisualNOS                     -> Visual
110 ; Other conventional group names (see `:help group-name`)
111 Boolean                       -> Constant
112 Character                     -> Constant
113 Comment                          fg3          none
114 Conditional                   -> Statement
115 Define                        -> PreProc
116 Debug                         -> Special
117 Delimiter                     -> Special
118 Exception                     -> Statement
119 Float                         -> Constant
120 Ignore                           fg           none
121 Include                       -> PreProc
122 Keyword                       -> Statement
123 Label                         -> Statement
124 Macro                         -> PreProc
125 Number                        -> Constant
126 Operator                      -> Statement
127 PreCondit                     -> PreProc
128 Repeat                        -> Statement
129 SpecialChar                   -> Special
130 SpecialComment                -> Special
131 StorageClass                  -> Type
132 String                        -> Constant
133 Structure                     -> Type
134 Tag                           -> Special
135 Type                             darkcyan     none
136 Typedef                       -> Type
137 Underlined                       none         none       underline
138 ; Language mapping cursor
139 lCursor                       -> Cursor
140 ; See `:help CursorIM`
141 CursorIM                         none         none       reverse
142 ; See `:help window-toolbar`
143 ToolbarLine                      none         bg3
144 ToolbarButton                    fg0          bg3        bold
145 ; }}}
146
147 ; Additional highlight groups {{{
148 ; Input mode cursor
149 iCursor                       -> Cursor
150 ; Visual mode cursor, selection
151 vCursor                       -> Cursor
152
153 ; Useful for custom status lines
154 NormalMode                       fg2          bg0        reverse
155 InsertMode                       blue         bg0        reverse
156 ReplaceMode                      cyan         bg0        reverse
157 VisualMode                       yellow       bg0        reverse
158 CommandMode                      magenta      bg0        reverse
159 Warnings                         yellow       bg0        reverse
160 ; }}}
161
162 ; Plugin support {{{
163 ; GitSigns
164 GitSignsAdd                      green    bg1
165 GitSignsAddNr                 -> GitSignsAdd
166 GitSignsChange                   blue     bg1
167 GitSignsChangeNr              -> GitSignsChange
168 GitSignsDelete                   red      bg1
169 GitSignsDeleteNr              -> GitSignsDelete
170 ; }}}
171
172 ; Terminal colors {{{
173 TermCursor                    -> Cursor
174 TermCursorNC                     bg1          fg1
175 ; }}}
176