Skip to Content

Vim - Replace new line

Posted on

In Vim, we can replace word/character to a new line by using command:

:%s/,/\r/g

Note: we use \r for new line, not \n.

comments powered by Disqus