Vim allows to do step-by-step replace with the syntax s/<regexp>/<substitute>/gc.How can I such a thing with Emacs?
Step-by-step replace like in Vim
emacs
Open the Emacs manual (inside Emacs: C-h i then m emacs RET), go to the section Replace (m replace RET), and there see Query Replace. Query replace the Emacs name for what Vim calls a substitution with confirmation.The command query-replace-regexp is bound to C-M-%. (On a text terminal, you may be unable to type this keychord; you can use M-x query-replace-regexp instead.) To replace a plain string (i.e. without wildcarsd), there's also query-replace, bound to M-%.