Wednesday, September 14, 2011

Re: Repeat last search and replace

On 09/14/2011 09:45 AM, Russell Bateman wrote:
> Once I've typed in a command to search and replace for something, for
> example:
>
> %s/search/replace/g
>
> how can I re-execute that command without retyping it? (I have a string
> of source files between which I'm moving via :n each time and I don't
> want to have to retype the command; dot won't work obviously.)
>
> Thanks,
>
> Russ
>


Oh, and after doing @: once, you can repeat it easier with @@ -ak

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: