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

John Collins 2019-03-29

In vi, I had to do: %s/\\n/\r/g

Leave a comment?