You don't needed "copy".

If you wrote

/something

to find what will be changed, just type

:s//change_something

or

:%s//change_something

or else

:%s//change_something/g

Vim will reuse your last search pattern
It's magic!

Alessandro Antonello



2009/5/26  <[email protected]>:
>
> Hi there,
> When I substitute using ":s/{pattern}/{string}/{option}", I prefer to use
> "/{pattern}" to check out
> whether the pattern is satisfactory. After checking, I will run the
> substitute command. However, if
> the pattern string is too complicated, typing it twice is boring. I would
> like to know whether there is
> any better way to copy the pattern from "/{pattern}" to
> ":s/{pattern}/{string}/{option}".
>
> Thanks.
>
> Yours,
> Wilson >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to