From e5c28e48d26e8a17f132c819625deabe1ff48eae Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sat, 18 May 2019 10:25:23 +0200 Subject: [PATCH] Use background from environment --- .vimrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index 9c94eb1..887cfd2 100644 --- a/.vimrc +++ b/.vimrc @@ -19,12 +19,20 @@ set sm set sw=4 set tw=72 set viminfo='100,<50,s10,h,% + if has('reltime') set incsearch endif -colorscheme hjp -syntax on +if $BG == "light" + set bg=light + colorscheme hjp + syntax on +elseif $BG == "dark" + set bg=dark + syntax on +endif + map :cp map :cn map!  >I<yypa/O