Hi Bram!

On So, 10 Apr 2011, Bram Moolenaar wrote:

> Can you explain what the effect is? 

Basically, I wanted to create a plugin that uses concealing for 
something like vertical folding. I tried to dynamically conceal columns 
using :call matchadd(), but this only highlights the region, it does not 
conceal it, no matter what 'cole' is set to. So instead, I started using 
:syn match commands. Problem here is, you can't really remove matches 
and it is not that easy to use.

There is still a problem, that cursor movement won't skip over concealed 
text. I am currently thinking about creating a patch for that as well, 
e.g. when cole is set to 4 (it currently allows only 3). But I don't 
know how easy that is to implement, it would have to be done on a lot of 
places.

> Perhaps we also need an update to
> the documentation. And an example to show the effect.

I Don't think so. I expect, that when cole is set to 3, that a :call 
matchadd('Conceal', 'foobar') conceals the foobar part
and not to have it highlighted. I would even consider this a bug.

> Please use tabs where possible.
> 
> +        match_conc=FALSE;
> 
> Put spaces around the "=".

Sorry. The updated patch, I sent earlier should have covered that.

regards,
Christian

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui