sponsor Vim development Vim logo Vim Book Ad

Changing colour script : Changes highlight colours gradually based on minutes of the hour

 script karma  Rating 15/27, Downloaded by 1530

created by
Paul Contreras
 
script type
color scheme
 
description
Tested with PHP, HTML, ActionScript (with actionscript.vim also here), AutoIt 3.0, and Javascript. Indicates time by changing syntax colours. Syntax elements like Constant, Identifier, PreProc change gradually, bright at the end of each hour, dark at the middle. Plus there are six different background tints so it doesn't get boring. Think of it like a "changing colour" colour scheme' that happens to be a pleasant colour scheme as well.

Only affects GVIM. Harmless in VIM,

Benefits of script are:
* reduce eye-strain and headaches caused by staring at code on-screen
* reduce dis-orientation by keeping user informed of passing time
* reduce boredom by stimulating right side of the brain

I've tried to make this so that every syntax element blends perfectly with the 'next' colour change. There may be some oddities, so please bear with me. Tip: to min. any cursor blink 'jerking' do ':set ut=4000' or more.

Also note: rarely i see an 'out of memory' error inside ExtraSetHighlight() function'. Not sure why, but goes away when you press any key. Will keep try to keep on top of it.

This demo  (a bit old now) gives you an idea: http://www.youtube.com/watch?v=I1R_W0qTwBc
 
install details
Paste changing-colour.vim somewhere in vimrc. Replace if previously there. It's obviously marked.
 

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
changing-colour.vim 15.0 2010-02-04 6.0 Paul Contreras Still had to make the Constants ("Hello"<--) more dark.
changing-colour.vim 14.9 2010-02-03 6.0 Paul Contreras Made an adjustment so that background goes brightest at the hour since this seems a bit more consistent with the way that you think about time (e.g.9AM, 4PM, 8PM..)
changing-colour.vim 14.8 2010-02-02 6.0 Paul Contreras Made the dark blue in Constant ($a = "Hello\n";<--this and b = 9;<--this) more of a 'Navy' blue not just Blue.
changing-colour.vim 14.7 2010-02-01 6.0 Paul Contreras Upped the contrast of CursorLine & CursorColumns just a tiny bit so it stands out in very light backgrounds.
changing-colour.vim 14.6 2010-02-01 6.0 Paul Contreras Made the update frequency a bit less annoying by default ~ every 1.5 minutes.
changing-colour.vim 14.5 2010-01-31 6.0 Paul Contreras Some more adjustments to the strength of Constant ($a = "Hello world\n" <--) so it stands out better.
changing-colour.vim 14.4 2010-01-30 6.0 Paul Contreras Made some updates to Constant to it blends-in better with the new CursorColumn and CursorLine, also looks a bit better generally. Contant is the colour your "Hello Mum", or $a = 5 <-- the '5' here would look like.
changing-colour.vim 14.3 2010-01-29 6.0 Paul Contreras Made some minor corrections to CursorColumn and CursorLine so that it doesn't turn 'green' temporarily.
changing-colour.vim 14.2 2010-01-28 6.0 Paul Contreras Still more visibility glitches with CursorLine and CursorColumn. This was around the dark-light boundary. Fixed now. Looks great all-round now.
changing-colour.vim 14.1 2010-01-28 6.0 Paul Contreras Still some visibility glitches with CursorLine & CursorColumn. Fixed and looks awesome now, esp. in black backgrounds.
changing-colour.vim 14.0 2010-01-28 6.0 Paul Contreras Spotted a bug with the cursorline/cursorcolumn colouring. Fixed now.
changing-colour.vim 13.9 2010-01-28 6.0 Paul Contreras Made CursorColumn be the same as CursorLine, so if you happen to make use of CursorColumn at least it blends in nicely with the colour scheme.
changing-colour.vim 13.8 2010-01-24 6.0 Paul Contreras Strengthened Constant, and Normal so things like like function names (e.g. CalculateScore()) look bright and sharp everywhere now, and Constants like $sParent = 'my mum'; <-- now look nice and bright everywhere too.
changing-colour.vim 13.7 2010-01-24 6.0 Paul Contreras Strengthened PreProc, which gives colour to keywords like 'function' and 'include_once' in php, and 'function' in other languages like ActionScript 2.0.
changing-colour.vim 13.6 2010-01-21 6.0 Paul Contreras Made Constant backgrounds a bit more helpful, so looking at your 'Hello mum' and 58, 99, and #ee will now be a lot more fun in all languages supported by vim.
changing-colour.vim 13.5 2010-01-21 6.0 Paul Contreras Made Statement a bit more focussed-looking at darker backgrounds. This is typically a keyword such a return, for, if.. so it's pretty important that it be sharp.
changing-colour.vim 13.4 2010-01-20 6.0 Paul Contreras Did a spot of fine-tuning with Special, this is typically the curly braces '{' and '}' and parenthesis '(' and ')' in most langs, like PHP, C.     |
changing-colour.vim 13.3 2010-01-19 6.0 Paul Contreras Made Constant a bit brighter so it stands out better.
changing-colour.vim 13.2 2010-01-17 6.0 Paul Contreras Sharpened-up PreProc. This is the 'function' keyword in e.g. PHP & ActionScript. Was a bit fuzzy in areas.
changing-colour.vim 13.1 2010-01-14 6.0 Paul Contreras Had one final fight with Type to make it visible and ironed-out some bugs in Identifier.
changing-colour.vim 13.0 2010-01-14 6.0 Paul Contreras Cosmetic improvements to Identifier.
changing-colour.vim 12.9 2010-01-14 6.0 Paul Contreras Think finally ironed-out visibility issues with Type.
changing-colour.vim 12.8 2010-01-14 6.0 Paul Contreras Still a few teething visibility issues with Type. Did a few more tweaks. Had got a bit carried away.
changing-colour.vim 12.7 2010-01-14 6.0 Paul Contreras Type still hard too see. Corrected this a bit more.
changing-colour.vim 12.6 2010-01-14 6.0 Paul Contreras Slight correction of Type. (Too pale in places.)
changing-colour.vim 12.5 2010-01-14 6.0 Paul Contreras Put the Constant on steroids and tuned up quite a few others.
changing-colour.vim 12.4 2010-01-13 6.0 Paul Contreras Generalised some of the maths by adding ScaleRange() function, improved the feel of Constant.
changing-colour.vim 12.3 2010-01-13 6.0 Paul Contreras Cosmetic improvements.
changing-colour.vim 12.2 2010-01-13 6.0 Paul Contreras Cosmetic improvements.
changing-colour.vim 12.1 2010-01-11 6.0 Paul Contreras Changed possible annoying effect to 'off' by default.
changing-colour.vim 12.0 2010-01-11 6.0 Paul Contreras Cosmetic improvements.
changing-colour.vim 11.9 2010-01-11 6.0 Paul Contreras Cosmetic improvements.
changing-colour.vim 11.8 2010-01-10 6.0 Paul Contreras Cosmetic improvements.
changing-colour.vim 11.7 2010-01-10 6.0 Paul Contreras Improved poor visibility of Identifier.
changing-colour.vim 11.6 2010-01-10 6.0 Paul Contreras Further tweaks around Constant and Identifier.
changing-colour.vim 11.5 2010-01-10 6.0 Paul Contreras Blended in elements better, improved constrasts more.
changing-colour.vim 11.4 2010-01-10 6.0 Paul Contreras Lots of improvements to the contrasts, made cursorline blend nicely with line number's colour.
changing-colour.vim 11.2 2010-01-08 6.0 Paul Contreras Tweaked all the elements, removed some glitches.
changing-colour.vim 11.1 2009-12-21 6.0 Paul Contreras Tweaked visibility of Identifier and Statement.
changing-colour.vim 11.0 2009-12-16 6.0 Paul Contreras Prettied-up Identifier and Statement. Still some non-vital glitches like sometimes the search/replace prompt is invisible, (fg==bg), folded lines text invisible (fg=bg) (which may not be so bad) and cursorline's colour is not always very distinct from general background (which may not be a problem if you don't use it.) But generally getting there.
changing-colour.vim 10.9 2009-12-05 6.0 Paul Contreras Now the Identifier's green is starting to work out nice and particularly with the new green in 'Normal' which complements with that of Identifier's.
changing-colour.vim 10.8 2009-12-05 6.0 Paul Contreras Not claiming this is perfect but seems to be working for me, Identifier's green now feels a bit smoother.
changing-colour.vim 10.7 2009-12-05 6.0 Paul Contreras Made the Identier's green a bit nicer, at dark and light backgrounds.
changing-colour.vim 10.6 2009-12-05 6.0 Paul Contreras Got rid at last of the awful pink colour for the Normal, at dark ranges. Now it's green, and hence a bit more usable.
changing-colour.vim 10.5 2009-12-04 6.0 Paul Contreras Identifier vis 'fix' still too agressive, tweaked.
changing-colour.vim 10.4 2009-12-04 6.0 Paul Contreras Made the Identifier 'fix' visibility less agressive.
changing-colour.vim 10.3 2009-11-18 6.0 Paul Contreras Trouble-shoot some visibilty problems associated with syntax elements Pmenu and CursorLine.
changing-colour.vim 10.2 2009-11-18 6.0 Paul Contreras Futher tuning-up.
changing-colour.vim 10.1 2009-11-17 6.0 Paul Contreras Just a quick update. Had to tune-up the white-peak as it was staying on a bit too long.
changing-colour.vim 10.0 2009-11-17 6.0 Paul Contreras On the 10.0 version, perhaps now the best version. Normal now blends more smoothly than ever at darker background ranges, and the background colour at the lighter ranges now peaks up to a pure white before coming down again to a tint which can be a shade of either light-green, cyan, rose. The contrast is great, the visibility is great, and the smoothness is great. If you haven't tried this before you'll really be amazed.
changing-colour.vim 9.9 2009-11-15 6.0 Paul Contreras Whilst perhaps not George-Lucas effects, this Normal elements approaches smoothness as it flips back-and-forth between dark-based and light-based background scheme, and remains pretty visible through this change. This version just sharpens up the contrast at the dark end of the Normal effect a tad, so it keeps looking lively.
changing-colour.vim 9.8 2009-11-15 6.0 Paul Contreras Made funky adjustments to ease the visual flow of Normal from dark-light background and vice versa by individually switching the RGB components up/down one at a time, e.g. first Red, and so on, as otherwise it's abrupt and causes dis-orientation. Also played with Statement and improved the visibility as at some of the dark-background settings it was looking a bit like a carrot-ey orange on top of mud - not very clear.
changing-colour.vim 9.7 2009-11-09 6.0 Paul Contreras Made Comments a bit more usable, although there is a glitch in the math i can't figure out. This makes the comments hard to see for a couple of minutes but they are just about usable. Will keep trying to get to the bottom of it.
changing-colour.vim 9.6 2009-11-09 6.0 Paul Contreras Made slight tune-up of Comment to make it less strong. Possibily a bit too weak in certain areas but it's better comment is a little harder to see temporarily than being too strong. Might work on this later to get to the bottom of it.
changing-colour.vim 9.5 2009-11-08 6.0 Paul Contreras Made some fine adjustments around the boundary cases of Normal and Statement. Now sharper than before.
changing-colour.vim 9.4 2009-11-07 6.0 Paul Contreras Made the Normal simple. It's light when it's dark, and darkens as it lightens. Simple. Plus it now blends blends nicely with the other elements particularly Constant which is very important in the vim system.
changing-colour.vim 9.3 2009-11-07 6.0 Paul Contreras Realised that i had left a slightly exposed area around the light area of the background. This is where background is light-ish but the Normal text is not near the dark-light exchange yet. fixed this by stretching the 'ease' area, or the 'ramping' zone of the normal text. This ramping zone now covers this previously exposed zone around the lighter background.
changing-colour.vim 9.2 2009-11-07 6.0 Paul Contreras Fine-tuned the dark-boosting around the light-end of the dark-light background boundary of the Normal element. When text goes light it's nice and strong, and similarly now when it goes to dark it's nice and strong too.
changing-colour.vim 9.1 2009-11-07 6.0 Paul Contreras Added a new 'dark dip' adjustable ramp to the 'Normal' syntax element, this allows a subtle incremental 'darkening' of the text as it nears the point where it will go into 'light' mode. This darkening helps keep the visibility up right up until the last minute. Maybe some fine-tuning needed but it's much better as it is than before. Before visibility just worsened around the point where Normal would switch from light text to dark text and vice-versa as the background darkened or lightened. This no longer is true.
changing-colour.vim 9.0 2009-11-07 6.0 Paul Contreras Took out all unecessary debug stuff out of RGB functions. Now it runs much quicker.
changing-colour.vim 8.9 2009-11-02 6.0 Paul Contreras Removed set whichwrap=h,l command as this was there only so that the old (cursor movement based) timer could work. According to the help you shouldn't even set these keys in whichwrap. It's out now anyway.
changing-colour.vim 8.8 2009-11-02 6.0 Paul Contreras Got rid of the time display in the Yukihiro Nakadaira timer function, and moved a variable definition outside the routine to make it more efficient.
changing-colour.vim 8.7 2009-11-02 6.0 Paul Contreras Fixed problem of 'stolen keypresses' that happened when  the user happened to move the cursor at the same time as the timer routine was happening. Also there were ocassional glitches with the cursor moving where it shouldn't. Now this doesn't happen. The new routine uses a much simpler method. Courtesey of Yukihiro Nakadaira (source: http://old.nabble.com/timer-revisited-td8816391.html).
changing-colour.vim 8.6 2009-11-01 6.0 Paul Contreras Simplified the logic to just 'did i move to cause a timer previously, and if so where, hence move the opposite way'. Now it's pretty flawless apart from when you're on the final line and this line has no characters and the size of the file is only 3 lines long. This not only causes a flash/beep and the timer not to work (hence no automatic colour changes) but also when you try moving off this line it could go funny (the cursor mysteriously jumps up a line) but it's nothing serious.
changing-colour.vim 8.5 2009-11-01 6.0 Paul Contreras Fixed an 'undeclared variable' error that can occur when the number of lines in a small (about 5 lines) file goes down to fewer.
changing-colour.vim 8.4 2009-11-01 6.0 Paul Contreras Finally made the 'timer' well-behaved by detecting if the cursor was on the first column of a line in the case where there were too few lines to move up/down. The cursor now moves *right* if you're at column 1 (first column), *not* left as before. The cursor now moves left only if your cursor is *not* on column 1, rather than indiscriminately move left Anyway, beeping/ flashing should now almost go away. There is a case that I can't handle and that's when there is only one character in the file, in which case the editor beep/ flash once as it tries to do a 'timer' but there isn't any space to move 'right' to, but hopefully that shouldn't be too bad.
changing-colour.vim 8.3 2009-10-31 6.0 Paul Contreras There was a bug with the 'timer' routine which made vim flash/beep if there was not enough lines above to temporarily move the cursor to (this causing the 'timer'.) This has now been fixed. If there are too few lines the timer will try to move left and right instead of up and down. There is a slight possibility that the editor will beep at you if you are on the first character or if there are no characters in the file, but hopefully that should not be the case long enough to bother. Also added a line set whichwrap=h,l to minimise this flashing. If you like using this script it is better to leave this on as it will minimise this flashing/beeping.
changing-colour.vim 8.2 2009-10-29 6.0 Paul Contreras Removed an unecessary variable 'k' that was in the 'timer' routine.
changing-colour.vim 8.1 2009-10-29 6.0 Paul Contreras Corrected a slight glitch with the improved 'timer' routine that happened if the cursor was bang in the middle of the screen or the line above it. It got confused because what had been true previously had just changed. Now fixed. Did this by adding special cases of where to move 'safely' if the cursor is a) bang in the middle and b) directly *above* the middle. Did this using a 'middle' flag and an 'abovemiddle' flag. Ugly but it does the job. (Sorry, but I'm not Donald Knutz.)
changing-colour.vim 8.0 2009-10-29 6.0 Paul Contreras Fixed a slight glitch with the 'timer' that made Vim indiscriminately move the cursor right and then left which occasionally (depending on where your cursor was) made the screen either scroll or flash nastily, depending on what you had set 'whichwrap' to. This has now been fixed. The 'timer' hack is a bit more intelligent. It now moves only where nothing would change too drastically or cause a beep/flashed window.
changing-colour.vim 7.9 2009-10-26 6.0 Paul Contreras Still having difficulty with the Normal. It's a fine compromise between Glare and visibility.  Just brightened Normal up an infinetessimal amount just to improve that legibility whilst hopefully keeping the illusion of smoothness smooth. Sorry to keep changing things but it's a trial an error process. I will get it right one day, if necessary I may have to re-write the custom function to handle the specific visibility issues of the Normal element.
changing-colour.vim 7.8 2009-10-25 6.0 Paul Contreras Made the Normal look still a bit less glary. Still struggling with this because there is no comfort zone, it's all or nothing, due to it being a main element. (The background uses this element to get it's colour from.)
changing-colour.vim 7.7 2009-10-25 6.0 Paul Contreras Made one final tweak to the light background boundary of Statement which still makes me squint to focus a tad, so added just a feathering of light background brightness to bring out the element. I feel this won't be a problem any more. Sorry for all the changes.
changing-colour.vim 7.6 2009-10-25 6.0 Paul Contreras Spotted the visibility of Visual (the colour Vim uses to select text) at darkest background light nearly invisible - fixed that. Further refined the boundary of Statement at light end of background spectrum. Not only is it pretty now but works well.
changing-colour.vim 7.5 2009-10-25 6.0 Paul Contreras Improved the visibility of Statement a bit more. It was still looking a bit blurry at the lighter background. Anyway, it looks very pretty now.
changing-colour.vim 7.4 2009-10-24 6.0 Paul Contreras Went carefuly over Statement as this was changing too agressively over the difficult visibility patch. Originally the visibility-tweaking functions were not as detailed so this reflected the limited options there were then. Now Statement fully uses 'ramped-brighten-ups' that as this term suggests brighten-up backgrounds to correct visibility problems in a smooth (not abrupt) manner.
changing-colour.vim 7.3 2009-10-24 6.0 Paul Contreras Tried my best to tune-up the Normal syntax element which is unique because it's background is the global background. Other elements can have their backgrounds "fixed-up" using various tricks to correct their visibility but Normal can't. Typically Normal is the keywords and most of the variable names in Javascript. Other languages rely on it to a lesser degree, but still can be quite heavily dependent on it. The better supported languages (like PHP) rely on it a lot less. Anyway, if you use Changing Colour script now Normal doesn't stand-out glaring too much but while still remaining visible at both bright and dark backgrounds. It's quite a subtle compromise between glare and visibility this one and i hope i got it right.
changing-colour.vim 7.2 2009-10-22 6.0 Paul Contreras Removed a number that was being output to the status line by the new code to cause the script to change colour wihtout waiting for user intervention.
changing-colour.vim 7.1 2009-10-22 6.0 Paul Contreras This latest version makes the Changing Colour script now works exactly as it was originally supposed to, periodically changing the colour of the syntax elements. Previously the script would wait until the user moves the cursor or enters text, this has now been fixed. The benefits of the script now really come out: reducing eye-strain caused by squinting at code, informing you of time progression and keeping you stimulated through subtle change in colour.
changing-colour.vim 7.0 2009-08-29 6.0 Paul Contreras Made the script so that when you go into Insert mode the background inverts using the 'next' colour in the 6-colour half-hour colour rotation. That way whenever you go into Insert mode the background will turn into the background in 30 minutes' time in Normal mode giving you a quick 'peek' into the next half-hour.  Previously the background would change just into whatever the colour was on the other half hour of the current hour.
changing-colour.vim 6.9 2009-08-29 6.0 Paul Contreras Corrected a slight visibility glitch in Special.
changing-colour.vim 6.8 2009-08-28 6.0 Paul Contreras Used a similar technique to correct a not-quite-contiuous StatusLine and StatusLineNC and for the Normal. Before StatusLine and StatusLineNC would suddenly flip into black or white when visibility got poor to avoid the visibility problem but this now works the same way as Normal was made to in revision 6.3.
changing-colour.vim 6.7 2009-08-28 6.0 Paul Contreras Made a fix so that the background now lightens and darkens, lightens and darkens, etc.. using a six-color rotation  different pastel shades: light-yellow, light-green, light-red, light-blue, light cyan, and light magenta. This means that the background now lightens-up using a certain shade, darkens down in another shade, then lightens-up in yet another, and so on. for a total of six different colours over 3 hours. I've tried to make it so that the background simulates the way the real sky colours at morning time and then colours at evening time and then again at morning time, and so on.
changing-colour.vim 6.6 2009-08-27 6.0 Paul Contreras A bit of icing on the cake really, made the cursor turn a nice primary red at the highest background lightness. It's better than before as before it just turned a darker yellow and this was dull and unimaginative and didn't out. Now with the red the cursor looks nice and strong at a lighter background brightness.
changing-colour.vim 6.5 2009-08-27 6.0 Paul Contreras Fined-tuned the visibility of Normal at lighter backgrouds.
changing-colour.vim 6.4 2009-08-26 6.0 Paul Contreras The same as before but made the brightening work a bit more 'blended-in' with the background, so as the background lightens the Normal element kicks-in a bit stronger with its own lightening so that it doesn't get 'out-lightened' by the lighter background, while at the same time Normal doesn't lighten too strongly at darker background ranges to compensate for the fact that contrast is better anyway. Now Normal blends in very nicely throughout all background lightnesses.
changing-colour.vim 6.3 2009-08-26 6.0 Paul Contreras Removed the jarring black vs. white effect that the Normal identifier had, now this simply brightens a bit when the background and it start to clash. It now looks reasonably pleasing to the eye as time passes, rather than abruptly change from black->white and vice versa as it did previously.
changing-colour.vim 6.2 2009-08-26 6.0 Paul Contreras For some reason the Identifiers got some bad values, not very optimal. Must have had a bad day. This is quite nice now , tuned in at light and dark background ranges. Looks as it should. Sorry about this.
changing-colour.vim 6.1 2009-08-26 6.0 Paul Contreras I forgot to take off the "debug" switch off the last one. Apologies. :)
changing-colour.vim 6.1 2009-08-25 6.0 Paul Contreras Realised that the LineNr highlight item was the same as Normal and that this looks boring. Have changed this now to look more of a pale or dark blue depending on which looks best relative the background.
changing-colour.vim 6.0 2009-08-25 6.0 Paul Contreras Had to darken the Identifier around the area where it looks bad with the background. I had made this weaker but it's too weak. This is fixed and now it's quite nice, not too dark - you can see the green- but darker.
changing-colour.vim 5.9 2009-08-25 6.0 Paul Contreras My mistake got some bad values into Identifier somehow this has been fixed sorry. Was getting super-dark instead of just turning a slightly darker shade of green where the visibility gets bad with the background.
changing-colour.vim 5.8 2009-08-25 6.0 Paul Contreras Added some colours to the Javascript colour coding as it looks very poor otherwise. Constant 'numbers' in JavaScript now behave the same as PHP Constants. Javascript brackets now behave the same as PHP punctuation symbols.
changing-colour.vim 5.7 2009-08-06 6.0 Paul Contreras Found that making Visual a bit milder made it a bit difficult to read sometimes so made it a little bit stronger so hopefully it still doesn't obstruct text but is clear enough to see.
changing-colour.vim 5.6 2009-08-06 6.0 Paul Contreras Still experienced problems with visibility of 'Directory', not noticed before because Directory does not often appear - occurs inside the :Ex command (File Browse). Now this looks both beautiful and easy to see at any lightness. Made Visual a bit less strong as this was previously was blocking out the text. Now it's only a shade different to make sure the selected text text stays visible.
changing-colour.vim 5.5 2009-08-06 6.0 Paul Contreras Cured disastrous visibility failure of Directories in the file browser command :Ex. Directory was almost totally invisible at a particular background lightness as it happened exactly when I needed to see what directory I was in. Update to this script now and this wont happen to you.
changing-colour.vim 5.4 2009-07-31 6.0 Paul Contreras Stretched the 'lighting-up time' of Identifier a bit later into the darkness. The 'lighting-up' was coming-up slightly before it 'got really dark', so this looked a bit silly. Now Identifier feels more like it lights up at exactly the correct time.
changing-colour.vim 5.3 2009-07-30 6.0 Paul Contreras Fine-tuned the visibility protection of Comment so that it now looks great around the dark background area. Previously was looking a bit muggy. Stretched this protection exactly around the perceptional boundary area and fined-tuned the 'back-darkening' effect at this lower range as well so that it now just does that job it should do.
changing-colour.vim 5.2 2009-07-30 6.0 Paul Contreras Made the backgrounds fade very smoothly, as i found that there were still inconsistencies. They have now have been fixed. The colours of the background now blend smoothly from dark to light. Fixed sudden brightening that occurred of the of background. Now the transition is sweet. Also the background stays consistently coloured. Previously it would go dark green and suddently change to a very light-red colour. A slight glitch that is now corrected by manipulating R,G,B values better. Hour 1: dark-brown to light yellow. Hour 2: dark-green to light-green. Hour 3: dark grey-purple to light-pink.
changing-colour.vim 5.1 2009-07-30 6.0 Paul Contreras Made Identifier have the 'lights on' look a bit later so that when this happens seems about the right time with relation to how dark the background is. Previously Idenfier became 'lights on' well before the background was really that dark and this looked a bit stupid.
changing-colour.vim 5.0 2009-07-30 6.0 Paul Contreras Realised that the background was not continuous on the second hour. Made the background fading continuous, so it looks like there's continuity. Hour 1 background fades smoothly between dark-blue to light-yellow. Hours 2 it goes smoothly from dark-green to a lighter green. Finally hour 3 the background goes smoothly from a dark-red to a light pinky colour. I feel that whilst these are not the prettiest shades ever, that they are at least doing the job. I need to try these out fully to get a feel for how they're working and hence get better shades, but for now they're working. (Look  smooth). Watch this space for better ideas.
changing-colour.vim 4.9 2009-07-30 6.0 Paul Contreras Made the visibility-protection of Identifier a bit less glary. Previously i was trying to use brightening of the background to improve visibility but it was too strong. This was my fault. I was trying to improve it. Apologies. I've now corrected this so that Identifier remains remain nice and easy on the eyes as the back- ground fades from dark-light and vice versa.
changing-colour.vim 4.8 2009-07-29 6.0 Paul Contreras Removed display of time. This is redundant now that the changing colours help you keep track of time better.
changing-colour.vim 4.7 2009-07-29 6.0 Paul Contreras Made a slight boo-boo in that the speed being quicker of the background changes also meant that the frequency of the updates speeds up. Did not realise this. My mistake, poor programmer here. Fixed it now so that by default the background updates only every minute.
changing-colour.vim 4.6 2009-07-29 6.0 Paul Contreras Changed the speed at which background shifts from light to dark and vice-versa so that instead of going gradually from dark to light over the hour then back in the next hour, the background now does so in a half hour slots so the same as happened over two hours before now happens over one hour. The 'shaded backgrounds' added in 4.2 keep it interesting as on hour 1 the colour shades differently to what it does on hour 2, and again to what it does on hour 3. If you feel this is too sudden stick to script version 4.5 as this version does this more gradually over 2 hour slots.
changing-colour.vim 4.5 2009-07-29 6.0 Paul Contreras Whilst trying to de-saturate the lighter background shades i seemed to get the math wrong and therefore at certain ranges the background looks super-saturated.  This is fixed now. The background is truly pastel at all lighter background ranges, i fixed the math.
changing-colour.vim 4.4 2009-07-29 6.0 Paul Contreras Made the higher backgrounds of the new differing shades a bit less glary. Previously they were quite saturated colours and didn't look nice. Now they're tasteful shades of pastel. The hour 1-2 colours are pastel yellow, hour 3-4 colours are cyan, and finally the hours 5-6 colours are pastel pink.
changing-colour.vim 4.3 2009-07-29 6.0 Paul Contreras Made the Statement's danger-visibility zone wider at darker backgrounds. This was not wide enough to remain clear at the boundary of visibility-ok to visibility not-ok area, but now Statement's visbility protection area is extended a bit at the darker range making it more visible there.
changing-colour.vim 4.2 2009-07-28 6.0 Paul Contreras Added a pleasant (i hope not too bad at least) selection of background (shades) along with the one that was there before. Now, on hour 1 the back- ground sticks to a normal (looking from dark-light) blue to light-yellow scheme, and on hour 2 as usual in reverse (same but going from light to dark), then on hour 3 going to light again the background shades green to light-blue, then in reverse on hour 4, then finally on 5 going to light the background shades green to light-pink, then in reverse in reverse on hour 6.
changing-colour.vim 4.1 2009-07-28 6.0 Paul Contreras For some reason i missed that at the very darkest background Search was indistinguishable from the background - messed this up, my own fault i apologise. I focussed to narrowly on 'dark' and didn't go right down all the way down to black where Search got invisble (or indistinguishable from the background at any rate.) This is now fixed.
changing-colour.vim 4.0 2009-07-27 6.0 Paul Contreras Realised that syntax element 'Search' was almost impossible to distinguish from general background at darker backgrounds. Fixed this so that Search now contrasts significantly from the general background at dark backgrounds without being too strong.
changing-colour.vim 3.9 2009-07-22 6.0 Paul Contreras Went over visibility of Identifier at lighter backgrounds. It was ok at the darker backgrounds, but lighter backgrounds were adjusted wrongly, making too much use of 'background-lightening' to bring out the colour of Identifier. Darkened this down and now it looks a lot more pleasant.
changing-colour.vim 3.8 2009-07-21 6.0 Paul Contreras Mildened-down the agressive dark-background 'enhancement' at the dark-background range of Identifier. It feels a lot smoother now because previously the darkening of the background effect kicked-in too heavily resulting in it being disorientating to look at. Now it just feels much smoother.
changing-colour.vim 3.7 2009-07-11 6.0 Paul Contreras Went over the contrast of Identifier at dark, medium, and light levels of background. Previously looked fuzzy in all areas. Contrast is quite strong now enhanced with plentiful helpings of 'back-lighting' and 'back-darkening' to bring out the green of the Identifier.
changing-colour.vim 3.6 2009-07-10 6.0 Paul Contreras Made a tiny correction to the length of time before the Constant went into the clash-background 'danger' area from dark to light, went ahead and delayed it  by one minute. The change although small compared to  other changes i've made recently changes the change  (no pun intended) from a somewhat 'deadening' looking effect into as a lucid inversion of colour which is  more pleasing to look at.
changing-colour.vim 3.5 2009-07-10 6.0 Paul Contreras Made the transition into 'danger' area from dark->light| of the Constant a bit more gradual so as to maintain an overall illusion of progress. Previously the change had been abrupt (Constants went quite dark suddenly) so this illusion was lost. To do this modified the start and end times of the 'danger' area. Went ahead and added new easeArea global variable to allow the easing length to be controlled. This allowed me to go ahead and create longer easing for the Constant from dark->light as well, again smoothing the change from non-'danger' to 'danger'.
changing-colour.vim 3.4 2009-07-09 6.0 Paul Contreras Added fading effect to the way backlighting engages so as background progresses darker->lighter or vice-versa for some elements the  acklighting doesn't instantly 'kick-in' but becomes stronger gradually. This affects Constant at darker background, Statement and Identifier. Also strengthened the contrast of StatusBar and StatusBarNC, as they were a bit blurry at darker background tones.
changing-colour.vim 3.3 2009-07-08 6.0 Paul Contreras Oops! Sorry, made a mistake with the version numbering. This Constant pretty-ing and lower-light visibility improvement at around and the lower part of the clash background area was release 3.3. Sorry about that folks. :)
changing-colour.vim 2.3 2009-07-08 6.0 Paul Contreras Made the Constant look pretty at the lighter background area. Optimised as much as I could the visibility of Constant at lower background tones and the darker part of the clash-background area. Clash background is where background is very similar to text's colour and therefore is hardest for the eye to see.
changing-colour.vim 3.2 2009-07-07 6.0 Paul Contreras Made it much simpler the way text is adjusted. Now it goes ahead and adjusts by a linear amount, not like a zig-zag.  This improves the quality of text 'darkening' at fuzzy visibility backgrounds. Removed uncessarily bright backgrounds,  now that text darkens more predictably.
changing-colour.vim 3.0 2009-07-05 6.0 Paul Contreras I have to admit the visibility at low-light backgrounds of the Constant was still rubbish. I believe I fixed this now. It's sharp at the darker end and at the mid-end. Also fixed the visibility of Comment that was poor around the clash-background area and just below it.
changing-colour.vim 2.9 2009-07-05 6.0 Paul Contreras Reduced the amount of backlight added to Statement when over the clash-background area. Previously was very agressive and was an complete overkill.
ChangingColourScript.tar.gz 2.8 2009-07-04 6.0 Paul Contreras Darkened the back-darkening of Constant at the low end of the background spectrum, as it looks a bit fuzzy otherwise.
ChangingColourScript.tar.gz 2.7 2009-07-04 6.0 Paul Contreras Made a slight correction to the backlighting of the Constant that was looking way to bright at the high end of the background spectrum.
ChangingColourScript.tar.gz 2.6 2009-07-04 6.0 Paul Contreras Extensively tuned-up the interplay of Statement, Identifier, and specially Constant re. the changing background colour. C64 fans will love some of the funky colours at the darker end of the background spectrum.
ChangingColourScript.tar.gz 2.5 2009-07-03 6.0 Paul Contreras Darkened background back-lighting at the dark end of Constant because it was too hard to read. Darkened background back-lighting at the dark end of Identifier as it was a little fuzzy.
ChangingColourScript.tar.gz 2.4 2009-07-03 6.0 Paul Contreras Made statement backlighting effect less agressive, made the Constant text colour blue, not brown, as there were too many other browns and it got repetitive added a dab more backlighting to Identifier and darkened the text colour a shade reversed the order of the revision history comments.
ChangingColourScript.tar.gz 2.3 2009-07-02 6.0 Paul Contreras Made the Constant text colour change more gradually as it goes over the 'danger' area. Previously the text colour went to jet-black suddenly as the background hit the dark boundary coming from from dark background. It looked silly, suddenly going black. Now the colour is a more nice dark-brown colour, not jet-black as it does this. Tuned-in the background 'down'-lighting of Constant at the dark boundary of the danger zone so it is exactly as dark as it needs to be, no more, and correspondingly tuned-in the in-the-danger-zone' background adjustment so that it brings out nicely the new non-jet-black text colour.
ChangingColourScript.tar.gz 2.2 2009-07-02 6.0 Paul Contreras Once again forgot to take the debug switch off before I uploaded the script. Without switching it off the time is set to a global variable that should be commented out. I forgot to comment this out. Sorry.
ChangingColourScript.tar.gz 2.2 2009-07-02 6.0 Paul Contreras Made the Constant background up-lighting a bit stronger as it was previously overcorrected and made *too* weak (oops!), and adjusted the 'dangerzone' background lighting of the same element to be not quite as bright, so that it looks more tastefully done  
ChangingColourScript.tar.gz 2.1 2009-07-02 6.0 Paul Contreras Oops! corrected a slight but highly annoying glich in the way I formated the comment for the revision history.
ChangingColourScript.tar.gz 2.1 2009-07-02 6.0 Paul Contreras Corrected slightly over-zealous background brightening in the lighter background of Constant highlight elem. Improved the clarity of the explantion of what the RGBEl4 function does removed variable s:oldhA that had originally been part of calculation for the timing of the change of colours, that gradually got replaced by the more accurate s:oldactontime. Added a proper description of what s:oldactontime does Improved clarity of description of what g:changefreq does.
ChangingColourScript.tar.gz 2.0 2009-06-13 6.0 Paul Contreras Made standard change freq. 1 min, not too often to annoy but often enough to remind you of time is passing
ChangingColourScript.tar.gz 1.9 2009-06-13 6.0 Paul Contreras Made it very easy for you to set your own preferred frequency for the script to change the colour
ChangingColourScript.tar.gz 1.8 2009-06-12 6.0 Paul Contreras Updated the readme.txt file to include some new information that might be useful.
ChangingColourScript.tar.gz 1.8 2009-06-12 6.0 Paul Contreras Removed accidental leaving-in of '+stopinsert' in an au CursorHold, sorry for this
Added comment to clearly show how to remove invert effect if desired
ChangingColourScript.tar.gz 1.7 2009-06-11 6.0 Paul Contreras Corrected slightly glary Identifier at low light.
ChangingColourScript.tar.gz 1.6 2009-06-09 6.0 Paul Contreras Improved the readme.txt file.
ChangingColourScript.tar.gz 1.6 2009-06-04 6.0 Paul Contreras Brightened Constant and Identifier background a tiny amount
ChangingColourScript.tar.gz 1.5 2009-06-03 6.0 Paul Contreras Removed duplicate htmlComment and htmlCommentPart pair
Changed comment to a nice balanced-out grey
ChangingColourScript.tar.gz 1.4 2009-06-03 6.0 Paul Contreras Forgot to switch debug off. Colours don't change automatically, with debug on - it appears fixed to one time/colour scheme, but can be moved manually. Good for spotting those hard-visibility cases.
ChangingColourScript.tar.gz 1.4 2009-06-03 6.0 Paul Contreras Improved the way backgrounds are enhanced
Corrected some mistakes, backgrounds were being brightened-up unecessarily.
ChangingColourScript.tar.gz 1.3 2009-06-02 6.0 Paul Contreras Added pretty frames around function descriptions
Created new entry for Directory element in grassy green
Corrected bug: lo-lights not perfectly synchronising with text
ChangingColourScript.tar.gz 1.2 2009-06-02 6.0 Paul Contreras Tidied-up, shortened names
added version history
Added another entry for Search, previously was perm. yellow
ChangingColourScript.tar.gz 1.1 2009-06-02 6.0 Paul Contreras This now works. Sorry all who downloaded 1.0 and found it didn't work. I forgot to include some variables which enabled the script to determine whether to change the colours periodically. Sorry folks!! Also corrected a minor problem that the Question element would have been black-on-black at certain background colours.
ColourChangingScript.tar.gz 1.00 2009-05-27 6.0 Paul Contreras Initial upload

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