[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "man" command made easy?



On Mon, Jul 16, 2001 at 11:02:31PM -0400, D-Man wrote:
[snip]
> Thanks.  Actually, I'm not 100% sure that vim supports backreferences
> like that (the \1 in the replacement text).  I know that Python's and
> Perl's regex engines do.  I think I've heard/read that vim does do
> backreferences.

Yes.  %s@^\./\(.*\)$@<a href="\1">\1</a>@ 

Given lines like "./foo/bar/index.html"...

Or some such... Remeber "u" to undo...

-- 
Eric G. Miller <egm2@jps.net>



Reply to: