Last active
December 20, 2015 04:28
-
-
Save balanceiskey/6070750 to your computer and use it in GitHub Desktop.
A simple vim function to flip between your preferred dark and light color schemes.
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
noremap <silent> <leader>l :call FlipScheme()<cr> | |
function! FlipScheme() | |
if g:colors_name == 'hemisu' | |
set background=dark | |
color jellybeans | |
else | |
set background=light | |
color hemisu | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment