On 03/07/10 19:41, KKde wrote:



Did you try the normal % command? -ak

Yes, and if it mixed parentheses inside comments and out of them, did
you try installing matchit?

see :help matchit-install

Yeah, I installed matchit. But I didn't understand ur point! Can you
please elaborate?

Regards,
Kkde


Well, if you have

/*      comment1 ( */
        open1(
/*      comment2 ) */
        close1)

without matchit, % jumps from open1 to comment2 and vice-versa.

With matchit, % jumps between open1 and close1, or between comment1 and comment2.

In vimscript, when the cursor is on a parentesis,

        normal %

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


Best regards,
Tony.
--
Dope will get you through times of no money better than money will get
you through times of no dope.
                -- Gilbert Shelton

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