In vim search and replace, newline is rendering as "^@"

Viewed 4045

I copy pasted cells of a long google spreadsheet into a txt file that is a list of email addresses separated by commas. There are many "blank" cells as well, i.e. a blank space surrounded by commas. So I could have the following list:

bob@aol.com, ,john@aol.com, , , , email@email.com

In vim, when I try to add separate each address by a new line with this command:

:%s/, /,\n/g

instead of adding a new line after the comman, I get "^@" instead.

I know this has something to do with character sets, but I don't know how to fix it.

1 Answers
Related