Skip to content

Instantly share code, notes, and snippets.

@Asenar
Created January 23, 2013 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Asenar/4604630 to your computer and use it in GitHub Desktop.
Save Asenar/4604630 to your computer and use it in GitHub Desktop.
" progressively check higher values... falls out on first "true"
" (note addition of zero ... this guarantees return from function is numeric
if strftime("%H") < 6 + 0
colorscheme darkblue
echo "setting colorscheme to darkblue"
elseif strftime("%H") < 12 + 0
colorscheme morning
echo "setting colorscheme to morning"
elseif strftime("%H") < 18 + 0
colorscheme shine
echo "setting colorscheme to shine"
else
colorscheme evening
echo "setting colorscheme to evening"
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment