>
> Why do you have the while loop?  searchpair() returns the line on which
> the paired item was found, 0 if it couldn't find a matching pair, or -1
> if the skip expression caused an error while being evaluated.
>
> By using the while loop, you're not only discarding any match that you
> do find, but you're then causing Vim to search the entire buffer
> previous to the cursor position for any other match.  That's likely the
> cause for the delay you're seeing.

I removed the while loop around searchpair(). Now it isn't taking much
time. Thanks!

My other question still remains unanswered.

why screen flickers or cursor line is disturbed in complete
function when I used normal commands?

Regards,
Kkde

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