Created
April 4, 2013 21:23
-
-
Save lmullen/5314496 to your computer and use it in GitHub Desktop.
Toggle Vim's background between light and dark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nnoremap <leader>bg :call ToggleBackground()<cr> | |
function! ToggleBackground() | |
if &background == "dark" | |
set background=light | |
else | |
set background=dark | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment