vim: Replace literal \n with new line

Open the file that contains the \n‘s.

Run the following command:

:%s/\n/r/g

All done

Michael is a polyglot software engineer, committed to reducing complexity in systems and making them more predictable. Working with a variety of languages and tools, he shares his technical expertise to audiences all around the world at user groups and conferences. You can follow @mheap on Twitter

Thoughts on this post

Leave a comment?

Leave a Reply