Created
November 27, 2016 08:08
-
-
Save rbtnn/b92ac9ea9f65ed8c8853a9b054070d4e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function! ChangeColorScheme() abort | |
let colorschemes = ['blue', 'darkblue'] | |
let idx = tabpagenr() - 1 | |
if len(colorschemes) <= idx | |
let idx = 0 | |
endif | |
execute printf('colorscheme %s', colorschemes[idx]) | |
endfunction | |
augroup TabpageColorScheme | |
autocmd! | |
autocmd TabEnter * :call ChangeColorScheme() | |
augroup END | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment