]> git.madduck.net Git - etc/vim.git/blobdiff - 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:

Make 'Normal' foreground plain 'black' or 'white' if dimmed colours are enabled.
[etc/vim.git] / templates / _common.colortemplate
index 0cc207c0dda2d23f11949f5e163e2ef6ece8e8be..10fdf3c059e4e40bff16e0bac090315cfc2b4dae 100644 (file)
@@ -3,6 +3,19 @@
 # Default highlight groups {{{
 #if !has('gui_running') && get(g:, '@optionprefix_dimmed', 0)
   # dimmed colours
 # Default highlight groups {{{
 #if !has('gui_running') && get(g:, '@optionprefix_dimmed', 0)
   # dimmed colours
+  #if &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
   Conceal                          darkblue     none
   Constant                         darkgreen    none
   Directory                        darkblue     none    bold
   WildMenu                         darkblue     bg2     bold
 #else
   # default colours
   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
   Conceal                          blue         none
   Constant                         green        none
   Directory                        blue         none    bold
 #endif
 #if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
   # transparent background
 #endif
 #if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
   # transparent background
-  Normal                           fg1          none
   CursorLineNr                     yellow       none
   FoldColumn                       darkgray     none
   SignColumn                       fg2          none
   VertSplit                        bg3          none
 #else
   # opaque background
   CursorLineNr                     yellow       none
   FoldColumn                       darkgray     none
   SignColumn                       fg2          none
   VertSplit                        bg3          none
 #else
   # opaque background
-  Normal                           fg1          bg0
   CursorLineNr                     yellow       bg1
   FoldColumn                       darkgray     bg1
   SignColumn                       fg2          bg1
   CursorLineNr                     yellow       bg1
   FoldColumn                       darkgray     bg1
   SignColumn                       fg2          bg1