Created
January 21, 2016 04:42
-
-
Save YasuakiHirano/56ef5aed159a99c2e0eb to your computer and use it in GitHub Desktop.
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
if has('reltime') | |
let match_end = matchend(reltimestr(reltime()), '\d\+\.') + 1 | |
let rand = reltimestr(reltime())[match_end : ] % (4 + 1) | |
echo rand | |
if rand == 1 | |
colorscheme molokai | |
endif | |
if rand == 2 | |
colorscheme solarized | |
endif | |
if rand == 3 | |
colorscheme darkblue | |
endif | |
if rand == 4 | |
colorscheme default | |
endif | |
else | |
echo "reltime not used" | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment