If you wish to replace all occurrences of a character with a newline character, which is used on Linux/Unix systems to indicate the start of a new line, you can represent the new line with a
\r
in a vi command; think of the "r" as representing a carriage return. E.g., if
I had a long line with items on the line separated by commas, I could use the command below to remove each comma and start another line where
the comma occurred, instead.
:s/,/\r/g