Use background from environment

This commit is contained in:
Peter J. Holzer 2019-05-18 10:25:23 +02:00
parent 6015c87af5
commit e5c28e48d2
1 changed files with 10 additions and 2 deletions

12
.vimrc
View File

@ -19,12 +19,20 @@ set sm
set sw=4 set sw=4
set tw=72 set tw=72
set viminfo='100,<50,s10,h,% set viminfo='100,<50,s10,h,%
if has('reltime') if has('reltime')
set incsearch set incsearch
endif endif
colorscheme hjp if $BG == "light"
syntax on set bg=light
colorscheme hjp
syntax on
elseif $BG == "dark"
set bg=dark
syntax on
endif
map <F7> :cp map <F7> :cp
map <F8> :cn map <F8> :cn
map!  >I<yypa/O map!  >I<yypa/O