Friday, November 27, 2009

Re: Concatenate Commands

On 27/11/09 08:07, Johannes Bauer wrote:
> Hi vimers,
>
> I've got a simple question: How can I concatenate two commands in
> command mode so that they're on one line? I want something like this
>
> :%s/foo/bar/g
> :wn
>
> I'd like to concatenate them like (pseudosyntax, this will yield a E488)
>
> :%s/foo/bar/g :wn
>
> So that it would search/replace/write/next and I can inspect the next
> file immediately and repeat the command, if applicable.
>
> Thanks in advance,
> Johannes
>

see ":help :bar"
HTH
Tony.
--
Universe, n.:
The problem.

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

No comments: