Re: save & restore :[N]match
- Yakov Lerner wrote:
> Is it possible to add the function which returns the currentMakes sense. I think a function is best. The @/ things refer to
> regexp of :match/2match/3match ? It would enable
> to save & restore the :match, especially when :match
> is used for something temporary.
> I am thinking by analogy to @/ which allows to save
> & restore search pattern.
registers, and I don't think these patterns deserve a register (we're
running out of usable register names). And you also need to obtain the
HL group name used.
SIGIRO -- irony detected (iron core dumped)
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://www.ICCF.nl ///