Thursday, November 26, 2009

Concatenate Commands

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

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

No comments: