Use light theme in GUI

This commit is contained in:
Anthony Rose 2023-05-30 08:53:52 +01:00
parent 8aabc6d93e
commit 039044b5e0

13
vimrc
View file

@ -84,7 +84,6 @@ set textwidth=0 " Suggestions: 72, 80, 100
" All other settings.
set autoindent
set autoread
set background=dark
set backspace=indent,eol,start
set cmdheight=1
set directory=$TEMP//,/tmp//,.
@ -129,6 +128,15 @@ set wrap
"===============================================================================
" General settings for non-minimal Vim builds.
" Set theme for Terminal.
if has('gui')
set background=light
colorscheme tempus_totus
else
set background=dark
colorscheme tempus_night
endif
if has('eval')
" Protect commands that are only available when +eval is enabled.
" Technically only 'if 1' would be required, as 'has()' is provided by
@ -153,9 +161,6 @@ if has('eval')
let loaded_netrwPlugin=1 " Disable netrw completely.
" Set theme for Terminal.
colorscheme tempus_night
function! ACPToggleMargins()
execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : (&colorcolumn == "73,81" ? "101" : "0"))
execute "set textwidth=" . (&colorcolumn == "73,81" ? "80" : (&colorcolumn == "101" ? "100" : "0"))