:let m = matchadd('ErrorMsg','^\%(\%([^\t]\{7}\)\zs[^0]\)\{1}')
...
:let m = matchadd('ErrorMsg','^\%(\%([^\t]\{7}\)\zs[^0]\)\{32}')
This requires entering a similar pattern 32 times which is error
prone. If I forget to add just a single pattern then I won't see a
highlight for that column. Is there a better way to do this? I tried
specifying \{1,32} but this always matches the last (i.e. 256th)
character on the line.
In addition, I would like to be able to search for the "errors".
There's over four thousand lines in the file so scrolling through the
file looking for one red character is tedious. Is there a good way to
do this?
On Wed, Sep 15, 2010 at 07:54, Stephen Rasku <vim@srasku.net> wrote:
> I installed 7.3 and tried your matchadd but it didn't seem to work. I
> tried both with [^0] and 0. If one doesn't match the other one should
> but I don't see anything highlighted in red.
>
> Running :hi I can see that ErrorMsg is white text on a red background
> so it should show up. What am I missing?
>
> ...Stephen
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment