Use light theme in GUI
This commit is contained in:
parent
8aabc6d93e
commit
039044b5e0
1 changed files with 9 additions and 4 deletions
13
vimrc
13
vimrc
|
@ -84,7 +84,6 @@ set textwidth=0 " Suggestions: 72, 80, 100
|
||||||
" All other settings.
|
" All other settings.
|
||||||
set autoindent
|
set autoindent
|
||||||
set autoread
|
set autoread
|
||||||
set background=dark
|
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
set cmdheight=1
|
set cmdheight=1
|
||||||
set directory=$TEMP//,/tmp//,.
|
set directory=$TEMP//,/tmp//,.
|
||||||
|
@ -129,6 +128,15 @@ set wrap
|
||||||
"===============================================================================
|
"===============================================================================
|
||||||
" General settings for non-minimal Vim builds.
|
" 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')
|
if has('eval')
|
||||||
" Protect commands that are only available when +eval is enabled.
|
" Protect commands that are only available when +eval is enabled.
|
||||||
" Technically only 'if 1' would be required, as 'has()' is provided by
|
" 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.
|
let loaded_netrwPlugin=1 " Disable netrw completely.
|
||||||
|
|
||||||
" Set theme for Terminal.
|
|
||||||
colorscheme tempus_night
|
|
||||||
|
|
||||||
function! ACPToggleMargins()
|
function! ACPToggleMargins()
|
||||||
execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : (&colorcolumn == "73,81" ? "101" : "0"))
|
execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : (&colorcolumn == "73,81" ? "101" : "0"))
|
||||||
execute "set textwidth=" . (&colorcolumn == "73,81" ? "80" : (&colorcolumn == "101" ? "100" : "0"))
|
execute "set textwidth=" . (&colorcolumn == "73,81" ? "80" : (&colorcolumn == "101" ? "100" : "0"))
|
||||||
|
|
Loading…
Reference in a new issue