Richard Emberson asked:
   
  > Is there a way in a vim script to set the color (fg/bg) to a
  > block of text? say from line 12 to line 15 and from column 4 to
  > column 9.  The text in this block can be anything, not syntax.

  The answer is:

  Yes:         if the line and column numbers are fixed forever

  Almost yes:  if a function can be called that returns the 
               line and column information.  The answer is "almost"
               since as you edit (enter and delete text), the
               coloring refresh will not happen by itself (as it
               does for normal types of syntax coloring).
                
  I have an application involving highlighting entire lines that
  comes under the category of "almost yes";  and I posted an
  indication of the solution -- see the latest post (around May 6,
  2006) with subject "Feature request -- expression based syntax"
  (in the indicated solution, g/./ should be changed to g/^/).

  Providing more information of your application might help Bram 
  in deciding whether or not to support having such coloring
  automatically keep up with editing. 

  --Suresh

Reply via email to