Colorscheme based on time

9 Points

Martin Toma Martin Toma

4 years ago

Make your vim set a light, medium or dark colorscheme based on time. No more solarized light at 11 p.m.!

" Color scheme changing based on time
if strftime("%H") < 13
  colorscheme molokai
elseif strftime("%H") < 18
  colorscheme Tomorrow-Night-Eighties
else
  colorscheme hybrid
endif