For the placing the last search in your substitution pattern, it's
easy. Hit Ctrl+R / while in command mode to insert the text of you're
last searched command. Works with the * command.

I don't know any shortcut for the searching the last substitution.
Try :help <C-r> to see if anything comes to your mind.

Hope that helps,

- Eric

On Dec 10, 12:54 pm, Ben Kim <[email protected]> wrote:
> Greetings,
>
> If I search for "\<someword\>' using * on a word, and want to use it as
> the search pattern for replace, like :%s/\<someword\>/otherword/
>
> Is there a shortcut for that last searched pattern?
>
> Likewise, if I undo the replace, and would like then to search for
> "otherword", is there a shortcut too?
>
> Thanks.
>
> Ben Kim

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

Reply via email to