On 2013-05-01, Fanhe Fanhed wrote:
> I just reproduce.
> eg: edit tag.c of vim sorce code file, and go to 2000 line number, input the
> follow
> func(((((((((())))))))) , snekjglenlnsekgnel|)
> 
> '|' means the cursor. Then go to type.

Highlights the leftmost parenthesis and the cursor smoothly.

> And type again after run :NoMatchParen.

Cursor again highlighted smoothly, but of course no highlighting of
the parenthesis.

> In fact, the reason is this sentence in matchparen.vim
> let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline, 300)
> 
> 300msec will delay screen refreshing.
> For example run this
> autocmd CursorMoveI * sleep 100m
> 
> 
> After this, the cursor is flickering and shaking when typing.

Now I see the flickering and shaking of the cursor, but only when
NoMatchParen has not been executed.

> So, I prefer disable all CursorMoveI autocmd include matchparen plugin, but is
> not a matter in CursorMove autocmd.

So you're saying that it takes on the order of 100 ms for the
matchparen.vim plugin's s:Highlight_Matching_Pair() function to
execute on your machine?

I can't reproduce the problem without the "sleep 100m", but I can
see that on slower hardware your patch could be useful.

Regards,
Gary

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui