Skip to content

Instantly share code, notes, and snippets.

@balanceiskey
Last active December 20, 2015 04:28
Show Gist options
  • Save balanceiskey/6070750 to your computer and use it in GitHub Desktop.
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.
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