vim: Replace literal \n with new line

This article was published 4 years ago. Due to the rapidly evolving world of technology, some concepts may no longer be applicable.

Open the file that contains the \n‘s.

Run the following command:

:%s/\n/r/g

All done

Thoughts on this post

Leave a comment?

Leave a Reply