On Wed, 12 Jul 2006, Fabio Rotondo wrote:
I have a text file with many lines made like this:
[EMAIL PROTECTED]@[EMAIL PROTECTED]@
And I'd like to have them splitted on "@" in newlines.
I have tried:
:%s/@/\n/g
but it does not work.
What am I missing?
In my view two things are wrong:
- instead of 'g' use 'cg' to apply the change to all the occurrence of
@ in a line;
- instead of \n use
(that you can abtain as <CTRL-K><CTRL-M><CTRL-M>
I hope this help.
Walter
--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail [EMAIL PROTECTED] Ph.: +39 010 353 6637 Fax: +39 010 353 6699
· · · --------------------------- · · · --------------------------- · · ·
... recursive: adjective, see recursive ...
· · · --------------------------- · · · --------------------------- · · ·