in command line mode i can run a search and replace
which extracts part of a pattern and uses it in the
output.

is there any way to do this in normal mode?

here is an example:

command line search and replace:
:s/\[\([0-9]*\)\]/<a href="#n\1"><\/a>[\1]/

of course, in normal mode i can search for
/\[[0-9]*\]

repeatedly with "N", and examine each stop to see if
the change should be done, but how do i suck out the
guts of the target so as to stick them into the
replacement?  



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Reply via email to