Re: Highlighting block of text

2012-05-09 Thread lessthanideal
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.

Re: Highlighting block of text

2012-05-08 Thread richard emberson
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

Re: Highlighting block of text

2012-05-08 Thread Andrew Long
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

Re: Highlighting block of text

2012-05-08 Thread richard emberson
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

Re: Highlighting block of text

2012-05-08 Thread Gary Johnson
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

Re: Highlighting block of text

2012-05-08 Thread Tim Chase
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

Re: Highlighting block of text

2012-05-08 Thread richard emberson
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

Highlighting block of text

2012-05-06 Thread Richard
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