From a2b3f8ea6a935b645be7638082ce7aad7feaab45 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 30 May 2023 09:28:44 +0100 Subject: [PATCH] Split theme for Terminal/GUI --- vimrc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/vimrc b/vimrc index 093717b..5e3fa7c 100644 --- a/vimrc +++ b/vimrc @@ -125,18 +125,13 @@ set ttyfast set updatetime=300 set wrap +" Set theme for Terminal. +set background=dark +colorscheme tempus_night + "=============================================================================== " 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 @@ -238,6 +233,12 @@ endif "=============================================================================== " Settings based on feature detection. +" Set theme for GUI. +if has('gui') + set background=light + colorscheme tempus_totus +endif + if has('autocmd') autocmd BufRead,BufNewFile * set omnifunc=syntaxcomplete#Complete autocmd BufRead,BufNewFile *.go set noet sw=8 ts=8