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 32/37, Downloaded by 3558    Comments, bugs, improvements  Vim wiki

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

Colors chemes 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}"
  e.g
    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 19.2 2014-11-18 7.0 Paul Contreras Tweaked visibility of Normal, edge case.  Better now
changingColor.vba 19.1 2014-11-14 7.0 Paul Contreras Massive adjustment to fix visibility of Normal added context help for Rgb2a(). Now you can just press Ctrl-] over anywhere you see. Rgb2a() to jump straight to its definition.  From there you can get help on all its arguments.  This is finally starting to look damn good
changingColor.vba 19.0 2014-10-30 7.0 Paul Contreras Fix visibility of normal.  New! Some help available on SOME of the paremeters.  Try Rgb2a(..) all the paremters have help, hover over and press Ctrl-].  Not all parameters are covered and other functions are missing but please be patient  I will eventually get around to better explanations.
changingColor.vba 18.1 2014-10-25 7.0 Paul Contreras Bug fix.  Accidentally overwrote user's choice of color scheme did not check if it was already set. Fixed
changingColor.vmb 18.0 2014-04-24 7.0 Paul Contreras Made time passing effect co-operate with when you finish writing your changes vs. just browsing around text without editing it.  This latter now uses the more intuitively named 'permanent' color scheme.  If you want to change it the variable is called g:permanentColorScheme.  Simply set that to the string equalling the name of your favorite color scheme in your _vimrc, e.g. "koehler", or "morning". e.g. let g:permanentColorScheme = "keohler" Note: this used to be referred to unintuitively as | 'g:changingColorStop' in previous versions of this script.
changingColor.vba 17.4 2014-04-15 7.0 Paul Contreras Reduces flicker
changingColor.vba 17.3 2013-07-02 7.0 Paul Contreras Made sure this is the same version that includes the user-settable g:changingColorStop variable checks had it inconsistently done this before.  Now it's consistent
changingColor.vba 17.2 2013-06-21 7.0 Paul Contreras Modified to make user setable default color scheme
changingColor.vba 17.2 2013-05-10 7.0 Paul Contreras corrected a slight glitch that made the scren flicker every time you moved the cursor uneccessarily.  this sets a simple flag to stop it doing hence correcting the problem
ip used for rating: 54.242.253.192

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