adapt colors to the terminal background instead of forcing 'ron' on light terminals

Generated by Mistral Vibe.
This commit is contained in:
hugogogo
2026-10-30 18:33:41 +01:00
parent bfb9806460
commit efab1898d4
+9 -5
View File
@@ -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
if &background == "light"
colorscheme default
else
colo ron
endif
highlight Normal ctermbg=NONE
highlight nonText ctermbg=NONE