@hyperpape @b0rk Yeah, you can enter a newline into the replace-string/replace-regexp minibuffer with C-q C-j. Leaving off the C-q seems to act like the enter key was pressed.