On 04/07/10 17:34, KKde wrote:




         normal %

jumps to its mate, skipping any matched ( ) pairs. So you don't need to
reinvent the wheel.

Thanks tony! I got ur point now.
I used normal % and the execution time is now reduced by almost 6s.
That's great.
But I have one minor problem.
Actually the above script I'm using in a complete function.
the normal % command causes the screen to flicker ( I reported this
problem earier in this thread
http://groups.google.co.in/group/vim_use/browse_thread/thread/839c3f834d14b60a/8dceb806cffce0c2#8dceb806cffce0c2)

to my understanding, the complete function will automatically restore
the window view, Am I wrong?

Regards,
Kkde


You may try playing with 'lazyredraw' (":set lz" to avoid excessive redraws, :set nolz for normal operation) and/or :redraw (to force a redraw at a certain point, if Vim's redraws become _too_ lazy). Other than that, I don't know.


Best regards,
Tony.
--
James Joyce -- an essentially private man who wished his total
indifference to public notice to be universally recognized.
                -- Tom Stoppard

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

Reply via email to