sponsor Vim development Vim logo Vim Book Ad

Auto Changing color script : Syntax highlight colors change gradually based on minutes of hour

 script karma  Rating 31/38, Downloaded by 3747    Comments, bugs, improvements  Vim wiki

created by
Paul Contreras
script type
color scheme
Inspired by an ex (no pun intended) of mine who was good at producing music .

Colors schemes are all one color.  why? let's make it more creative.

And!! you don't have to get rid of your beloved color scheme, just add:
  let permanentColorScheme = "{YOURFAVSCHEME}" * see below

And it becomes active in between edits and :write cycles!

NEW!!  Help file added.  Please be patient, only function Rgb2a() explained.  I will get around to doing more.

To try it just open the changingColor.vim e.g.
  :e .vim/plugin/changingColor.vim

then try Ctrl-] over wherever you see Rgb2a().  You can help on the parameters.  It's even in the familiar vim help colours.  
install details
Open changingColor.vmb / vba in VIM, do a :so % on the command line.  Restart VIM completely.  Chaging color starts working ~ ten seconds.  Installs 4 files, changingColor.vim, changingColorHelp.txt, changingColorTags, and timer.vim.

TO REMOVE: easy, just do a :RmVimball changingColor and restart.  No need to put .vmb / vba at the end.  Once you restart it's gone completely.

* if you prefer to use your own fixed colorscheme, add this line to your _vimrc (in WINDOWS _vimrc is in \Program Files (86)\vim\_vimfiles,(*) on MAC it`s /Applications/MacVim.app/Contents/Resources/vim/gvimrc: * note to edit it in Win 7 etc.. you'll need to run your editor as Administrator)

  let permanentColorScheme = "{YOURFAVSCHEME}"
    let permanentColorScheme = "desert"
    ^^ COPY/PASTE this into your _vimrc otherwise you'll have to accept my default (darkblue i think)

This will become your "default" colorscheme when the changing one is not active.  The changing one switches on just after you :w a file.  It's switches back to not changing again as soon as you make changes to the buffer.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
changingColor.vba 20.7 2015-02-25 7.0 Paul Contreras Slight improvements to Constant esp. at high light settings.
changingColor.vba 20.6 2015-02-24 7.0 Paul Contreras Further gave tweaks to Comment because there were effects that were making it worse.  Cleaned it up.
changingColor.vba 20.5 2015-02-24 7.0 Paul Contreras Gave Comment a tweak at high brightness backgrounds because it looked to much like Normal in this.
changingColor.vba 20.4 2015-02-24 7.0 Paul Contreras Gave Constant and Identifier a bit of a tweak at high brightness background.  The green of Identifier also looks nice and flouro at low light backgrounds.  You  can actually see the green still at light backgrounds.
changingColor.vba 20.3 2015-02-11 7.0 Paul Contreras I forgot the vital tags files, only really useful if you wanna see help on it.  This does not affect the scripts at all.  If you've previously installed it just make sure you run :RmVimball changingColor and just re-install it by loading changingColor.vba and doing :so %.  That will get rid of any rubbish.
changingColor.vba 20.2 2015-02-10 7.0 Paul Contreras Had a third look and decided about 33% should do it.  That is about 33% of the shades are no good.  That's roughly 1/3 so sounds about right.  They are just too "in the grey area" to be clear highlight.  They needed to be removed.
changingColor.vba 20.1 2015-02-03 7.0 Paul Contreras Had a look at it and decided ~25% was still too low and there were still some murky shades too difficult to see.  I didn't want to cut too much of the continuity but I think 30% is a necessary step towards improvement
changingColor.vba 20.0 2015-02-03 7.0 Paul Contreras After careful consideration have decided that some of the shades in my script are too difficult to see.  I was trying to have one smooth continuum between light and dark but the exact middle point is always making me strain to read no matter what I do, and this looks poor compared to other color schemes so I decided to create a ramped "jump over" the exact mid-point. You will still see constant changes but when it gets to a certain mid point it will jump about 20% of the murky shades to the next point after that.
changingColor.vba 19.3 2014-12-03 7.0 Paul Contreras Tweaked visibility of Normal, edge case.  It appears that due to a calibration issue I was having with my monitor I'd got this wrong previously.  I had thought that it was massively out but it was a "Power Saving feature of my EeePC that made it look hard to read. Not generally applicable in most cases.  Fixed to be similar to what it was in 19.0.
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo