What is the function at work when hitting `:s`?

Hello,

I could’nt find what is the function when doing find/replace ?

The dynamic interaction is very helpful and I was wondering how to call this function from non-evil doom emacs.

Thanks

That would be evil-ex-substitute.

For future reference, Doom has a :h[elp] ex command for looking up docs on ex commands. E.g. :help :s would reveal what :s invokes.

That said, you won’t be able to trivially bring that over to non-evil Emacs. Check out C-h f query-replace-regexp, which comes with Emacs.

Thank you.

I was not aware of :h despite of using doom for several years now.

I also found out here that anzu-query-replace-regexp does a similar job.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.