Created
March 13, 2013 10:34
-
-
Save LuRsT/5150934 to your computer and use it in GitHub Desktop.
Toggle between colorschemes on vim
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
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