Tomas Lovetinsky wrote:
Hi,
I would like to ask you for help with my problem. I think it is simple
but in fact I'm not able to find the solution as quickly as I need.
I need to do sometink like
:s/a/b/g :wq
It means to substitute, write and close file.
Is there any solution?
Thank you all in advance
Tomas Lovetinsky
:s/a/b/g |wq
see ":help :bar" and keep reading until you've scrolled down a hundred lines
or so.
Note: Without a |range| between : and s the substitute will act only on the
current line.
Best regards,
Tony.