Created
January 23, 2013 11:37
-
-
Save Asenar/4604630 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
" 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