Skip to content

Instantly share code, notes, and snippets.

@YasuakiHirano
Created January 21, 2016 04:42
Show Gist options
  • Save YasuakiHirano/56ef5aed159a99c2e0eb to your computer and use it in GitHub Desktop.
Save YasuakiHirano/56ef5aed159a99c2e0eb to your computer and use it in GitHub Desktop.
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