From 039044b5e0ff782860355c83352f35e44ea3a36e Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 30 May 2023 08:53:52 +0100 Subject: [PATCH] Use light theme in GUI --- vimrc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index 2daaa83..093717b 100644 --- a/vimrc +++ b/vimrc @@ -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"))