Skip to content

Instantly share code, notes, and snippets.

@crispincornett
Forked from ryanflorence/.vimrc
Last active August 29, 2015 14:18
Show Gist options
  • Save crispincornett/15b85cc9930eb54ea8a8 to your computer and use it in GitHub Desktop.
Save crispincornett/15b85cc9930eb54ea8a8 to your computer and use it in GitHub Desktop.
function RandomColorScheme()
let mycolors = split(globpath(&rtp,"**/colors/*.vim"),"\n")
exe 'so ' . mycolors[localtime() % len(mycolors)]
unlet mycolors
endfunction
call RandomColorScheme()
:command NewColor call RandomColorScheme()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment