Light mode support in shell, now.

This commit is contained in:
2025-07-22 14:21:19 -04:00
parent 5f408f688b
commit 8d31077048
3 changed files with 13 additions and 2 deletions

View File

@ -2,10 +2,11 @@
hi clear normal
"set bg&
set background=light
" remove all existing highlighting and set the defaults.
hi clear
" load the syntax highlighting defaults, if it's enabled.
"set background=light
" load the syntax highlighting defaults, if it's enabled.
if exists("syntax_on")
syntax reset
endif

View File

@ -7,12 +7,18 @@ syntax on
"The adam color scheme has both syntax colors and adam colorscheme now.
"This fixes the longstanding xterm-256color issues I've had.
"let light_mode_env=$CSHENV_LIGHT_MODE
colors adam
let light_mode_env=$CSHENV_LIGHT_MODE
if light_mode_env == '1'
colors adam-light
endif
source ~/.vim/vimrc.globalprefs
source ~/.vim/vimrc.defkeymaps