Hi, Fabio Rotondo schrieb: > > 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?
\n in the second part of a substitution denotes the NUL character which is used internally to represent end-of-line. To insert newlines you have to use \r: :%s/@/\r/g Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH & Co. KG mailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim-Weilheim Fax: +49 / 74 61 / 93 53 - 99
