sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

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

 script karma  Rating 35/41, Downloaded by 4140    Comments, bugs, improvements  Vim wiki

created by
Paul Contreras
script type
color scheme
Why not try my customising Vim help page:

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 = "{YOURFAVCOLORSCHEME}" to _vimrc

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

You can even change it on the fly.  The "in between edits-writes" cycle colorscheme can be set by :let permanentColorScheme = "{YOURTEMPCOLORSCHEME}".

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'd rather use your own choice of in-edit colorscheme, add a line: let permanentColorScheme = "{YOURFAVCOLORSCHEME}",  e.g
    let permanentColorScheme = "desert".  If you don't set this the default is darkblue (i think)

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 21.1 2016-01-25 7.0 Paul Contreras The Normal forground was adjusted.  All I did was moved the adjustment for lighter background down a bit so as to be less agressive because it wasn't making it much clearer!
changingColor.vba 21.0 2016-01-15 7.0 Paul Contreras There's two things here.  First of all I removed a rather ugly feature.  But more importantly is the TAGS i've used to do this.  Basically, in the code where the main change happened I've added a TAG and this steps you through hand-holding style through the changes I've made in the script.  It's how VIM is fundamentally made.  That's it's power. That and combined with it's incredible :help system make it the best editor in the business, and maybe one of the greatest of ALL TIME ever created! I like it because it takes someone rather like me, not that clever, and gives them power tools for logic (TAGS) ability to bundle language help (:help) as well as a nice code editor and sit back and enjoy. I need a few hits on this so you could help and you might learn something.  please check out: http://www.ezrider.co.uk/VimTagsHelp -A.N.Other Spanish guy trying to rule the WORLD argh.. (it even might be good if there weren't 1000's of us all plotting and scheming the same thing arghh.... should have just stuck to writing Quill adventures!)
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