On Sep 3, 12:40 pm, KKde <[email protected]> wrote:
>
> Here \1 is used in substitute command. Is there a way I use \1 other
> than in substitute command?
>

You can use it in '/' searches, syntax matches, basically anywhere
regular expressions are used. It would require some tricky vimscript
to use the match from a previous pattern anywhere else, thought it may
be possible using a function, an expression replacement (:help :s\=
and :help sub-replace-expression), and the submatch() function.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to