On May 6, 10:14 pm, Richard richard.ember...@gmail.com wrote:
I'd like to highlight an arbitrary block of text even when
normal syntax-base highlighting is in effect.
You've solved your problem, but there's also this
tip/plugin which seems to do something similar.
Tim,
I finally got to the point in my project where I could tryout
your code. In one sense your code was similar to some of
my attempts at using the match/highlight capability but
I 1) did not order the column/line correctly and, more
importantly, 2) I did not have a trailing '.' in the
match
On 8 May 2012, at 23:08, Richard wrote:
Well, I spoke too soon. What I wanted was to highlight
multiple block with different colors *at the same time*
Seems that match only works on a single pattern at a time.
Richard
You could try generating a random name for each block? or base it off
Andy,
Have you tried your suggestion? If it works, could you
share your code?
Richard
On 05/08/2012 03:10 PM, Andrew Long wrote:
On 8 May 2012, at 23:08, Richard wrote:
Well, I spoke too soon. What I wanted was to highlight
multiple block with different colors *at the same time*
Seems that
On 2012-05-08, Richard wrote:
Well, I spoke too soon. What I wanted was to highlight
multiple block with different colors *at the same time*
Seems that match only works on a single pattern at a time.
Use matchadd() instead.
Regards,
Gary
--
You received this message from the vim_use
On 05/08/12 17:45, Gary Johnson wrote:
On 2012-05-08, Richard wrote:
Well, I spoke too soon. What I wanted was to highlight
multiple block with different colors *at the same time*
Seems that match only works on a single pattern at a time.
Use matchadd() instead.
Hopefully made easier by
Success
:exec highlight! Foo33 ctermbg=green guibg=green
:call matchadd(Foo33, '\%8c\%21c\%5l\%14l.')
:call matchadd(Foo33, '\%2c\%11c\%3l\%6l.')
:exec highlight! Foo34 ctermbg=white guibg=white
:call matchadd(Foo34, '\%18c\%31c\%5l\%14l.')
:call matchadd(Foo34, '\%12c\%21c\%3l\%6l.')
:call
I'd like to highlight an arbitrary block of text even when
normal syntax-base highlighting is in effect.
Now, one can highlight a block of height 1 using matching:
:hi Green ctermbg=Green
:match Green /\%10l\%30c.*\%40c\%10l/
:match none
But what I'd like to do is for a block with height
greater