How do you replace text with a newline in Vim?
:%s/; /;\r/g
In the replacement part, use \r to insert a newline.
:%s/; /;\r/g
In the replacement part, use \r to insert a newline.
:%s/,/\r/g
In Vim's substitute command, \r in the replacement string inserts a newline.