-# Default highlight groups {{{
-verbatim
-if !has('gui_running') && get(g:, '@optionprefix_transp_bg', 0)
-endverbatim
- # Transparent background
- Normal fg1 none
- CursorLineNr yellow none
- FoldColumn brightblack none
- SignColumn fg2 none
- VertSplit bg3 none
-verbatim
-else
-endverbatim
- # Opaque background
- Normal fg1 bg0
- CursorLineNr yellow bg1
- FoldColumn brightblack bg1
- SignColumn fg2 bg1
- VertSplit bg3 bg0
-verbatim
-endif
-endverbatim
+; Default highlight groups {{{
+#if !has('gui_running') && get(g:, '@optionprefix_dimmed', 0)
+ ; dimmed colours
+ #if !has('gui_running') && &background ==# 'light'
+ #if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
+ Normal realblack none
+ #else
+ Normal realblack bg0
+ #endif
+ #elseif !has('gui_running') && &background ==# 'dark'
+ #if get(g:, '@optionprefix_transparent', 0)
+ Normal brightwhite none
+ #else
+ Normal brightwhite bg0
+ #endif
+ #endif
+ Conceal darkblue none
+ Constant darkgreen none
+ Directory darkblue none bold
+ Error darkred none t=reverse,bold g=standout,bold
+ Function darkcyan none
+ Identifier darkblue none
+ ModeMsg darkblue none
+ MoreMsg darkgreen none
+ PreProc darkcyan none
+ Statement darkred none
+ Special darkyellow none
+ Todo darkcyan none reverse
+ WarningMsg darkred none
+ WildMenu darkblue bg2 bold
+#else
+ ; default colours
+ #if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
+ Normal fg1 none
+ #else
+ Normal fg1 bg0
+ #endif
+ Conceal blue none
+ Constant green none
+ Directory blue none bold
+ Error red none t=reverse,bold g=standout,bold
+ Function cyan none
+ Identifier blue none
+ ModeMsg blue none
+ MoreMsg green none
+ PreProc cyan none
+ Statement red none
+ Special yellow none
+ Todo cyan none reverse
+ WarningMsg red none
+ WildMenu blue bg2 bold
+#endif
+#if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
+ ; transparent background
+ CursorLineNr yellow none
+ FoldColumn darkgray none
+ SignColumn fg2 none
+ VertSplit bg3 none
+#else
+ ; opaque background
+ CursorLineNr yellow bg1
+ FoldColumn darkgray bg1
+ SignColumn fg2 bg1
+ VertSplit bg3 bg0
+#endif