vi: replace newline

systems Add comments

In order to replace a newline character in vi, say by the string “, ” the following command should do while being in vi:
:%s/\n/\,\ /g

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in