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

8
.vimrc
View File

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