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
|
||||
" ---------------------------------------------------------------------
|
||||
|
||||
set background=light
|
||||
colorscheme default
|
||||
|
||||
" use coloration 'torte' or other
|
||||
" and specify no coloration in the background
|
||||
" vim detects the terminal background at startup : it queries the
|
||||
" terminal when it supports it, and falls back to 'dark'. do NOT set
|
||||
" 'background' manually here, it would override the detection and
|
||||
" break one of the two computers. the scheme then adapts :
|
||||
" 'default' on a light terminal, 'ron' on a dark one
|
||||
"colo elflord
|
||||
"colo murphy
|
||||
colo ron
|
||||
if &background == "light"
|
||||
colorscheme default
|
||||
else
|
||||
colo ron
|
||||
endif
|
||||
highlight Normal ctermbg=NONE
|
||||
highlight nonText ctermbg=NONE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user