Split theme for Terminal/GUI

This commit is contained in:
Anthony Rose 2023-05-30 09:28:44 +01:00
parent fcbc54e46f
commit a2b3f8ea6a

17
vimrc
View file

@ -125,17 +125,12 @@ set ttyfast
set updatetime=300 set updatetime=300
set wrap set wrap
"===============================================================================
" General settings for non-minimal Vim builds.
" Set theme for Terminal. " Set theme for Terminal.
if has('gui')
set background=light
colorscheme tempus_totus
else
set background=dark set background=dark
colorscheme tempus_night colorscheme tempus_night
endif
"===============================================================================
" General settings for non-minimal Vim builds.
if has('eval') if has('eval')
" Protect commands that are only available when +eval is enabled. " Protect commands that are only available when +eval is enabled.
@ -238,6 +233,12 @@ endif
"=============================================================================== "===============================================================================
" Settings based on feature detection. " Settings based on feature detection.
" Set theme for GUI.
if has('gui')
set background=light
colorscheme tempus_totus
endif
if has('autocmd') if has('autocmd')
autocmd BufRead,BufNewFile * set omnifunc=syntaxcomplete#Complete autocmd BufRead,BufNewFile * set omnifunc=syntaxcomplete#Complete
autocmd BufRead,BufNewFile *.go set noet sw=8 ts=8 autocmd BufRead,BufNewFile *.go set noet sw=8 ts=8