Skip to content

Instantly share code, notes, and snippets.

@lmullen
Created April 4, 2013 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmullen/5314496 to your computer and use it in GitHub Desktop.
Save lmullen/5314496 to your computer and use it in GitHub Desktop.
Toggle Vim's background between light and dark
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