69364Re: [PATCH]Add an option for matchparen to disable it in insert mode
- May 1, 2013On 2013-05-01, Fanhe Fanhed wrote:
> I just reproduce.Highlights the leftmost parenthesis and the cursor smoothly.
> eg: edit tag.c of vim sorce code file, and go to 2000 line number, input the
> func(((((((((())))))))) , snekjglenlnsekgnel|)
> '|' means the cursor. Then go to type.
> And type again after run :NoMatchParen.Cursor again highlighted smoothly, but of course no highlighting of
> In fact, the reason is this sentence in matchparen.vimNow I see the flickering and shaking of the cursor, but only when
> 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.
NoMatchParen has not been executed.
> So, I prefer disable all CursorMoveI autocmd include matchparen plugin, but isSo you're saying that it takes on the order of 100 ms for the
> not a matter in CursorMove autocmd.
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.
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 vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.
- << Previous post in topic Next post in topic >>