Replacing with a string with newline in Emacs?

How to replacing a string with another string with newline in Emacs?

For example, to replace:

good editor


good editor:

What you need is actually to input a newline in Emacs:

C-q C-j

C-q is for quoted-insert, and C-j is a newline (0xa).

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *