On 2020-10-08, '[email protected]' via vim_use wrote:
> Please help me find a way to move to the matching char pair from within a
> :source'd script...
> Something like the Command mode move to matching paren/brace/bracket/angles...
> using the '%' key... but from the :source'd script...
> 
> Tim Chase mentions in another article (reference below) using % to move to the
> matching in normal mode.  The CTRL-O in insert mode was interesting as 
> well... 
> 
> I'm trying to use a "move to matching" inside a :source'd script.  Is there a
> way to still move to matching brace after finding the start brace inside the
> :source'd script?

I think you're looking for the :normal command.  See

    :help :normal

Then you can put this in your script to move the cursor to the
matching item:

    normal %

Regards,
Gary

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20201008174548.GC17599%40phoenix.

Reply via email to