Merge pull request #778 from leowzukw/patch-3

Add way to toggle background light or dark
This commit is contained in:
Steve Francia 2015-05-21 16:23:03 -04:00
commit 03b9801e06

13
.vimrc
View File

@ -82,6 +82,19 @@
" General {
set background=dark " Assume a dark background
" Allow to trigger background
function! ToggleBG()
let s:tbg = &background
" Inversion
if s:tbg == "dark"
set background=light
else
set background=dark
endif
endfunction
noremap <leader>bg :call ToggleBG()<CR>
" if !has('gui')
"set term=$TERM " Make arrow and other keys work
" endif