Skip to content

Instantly share code, notes, and snippets.

@LuRsT
Created March 13, 2013 10:34
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 LuRsT/5150934 to your computer and use it in GitHub Desktop.
Save LuRsT/5150934 to your computer and use it in GitHub Desktop.
Toggle between colorschemes on vim
let g:focuscolour = 0
function! ToggleFocusColor()
if (g:focuscolour)
colorscheme desert
let g:focuscolour = 0
else
colorscheme focus-dark
let g:focuscolour = 1
endif
endfunc
"Set F6 to toggle
nmap <silent> <F6> :call ToggleFocusColor()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment