Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.