How to replace a character with a newline in Emacs?

前端 未结 6 524
灰色年华
灰色年华 2020-12-12 09:06

I am trying to replace a character - say ; - with a new line using replace-string and/or replace-regexp in Emacs.

I have tried

6条回答
  •  -上瘾入骨i
    2020-12-12 09:46

    M-x replace-string RET ; RET C-q C-j.

    • C-q for quoted-insert,

    • C-j is a newline.

    Cheers!

提交回复
热议问题