Vi tips

Replace char with newline :

:s/X/^M/

^M = ctrl-V + m