adapt colors to the terminal background instead of forcing 'ron' on light terminals
Generated by Mistral Vibe.
This commit is contained in:
+10
-6
@@ -40,14 +40,18 @@ syntax on
|
|||||||
" colors
|
" colors
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
|
|
||||||
set background=light
|
" vim detects the terminal background at startup : it queries the
|
||||||
colorscheme default
|
" terminal when it supports it, and falls back to 'dark'. do NOT set
|
||||||
|
" 'background' manually here, it would override the detection and
|
||||||
" use coloration 'torte' or other
|
" break one of the two computers. the scheme then adapts :
|
||||||
" and specify no coloration in the background
|
" 'default' on a light terminal, 'ron' on a dark one
|
||||||
"colo elflord
|
"colo elflord
|
||||||
"colo murphy
|
"colo murphy
|
||||||
colo ron
|
if &background == "light"
|
||||||
|
colorscheme default
|
||||||
|
else
|
||||||
|
colo ron
|
||||||
|
endif
|
||||||
highlight Normal ctermbg=NONE
|
highlight Normal ctermbg=NONE
|
||||||
highlight nonText ctermbg=NONE
|
highlight nonText ctermbg=NONE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user