How to replace a region in emacs with yank buffer contents?

Posted by Mad Wombat on Stack Overflow See other posts from Stack Overflow or by Mad Wombat
Published on 2010-04-13T05:59:37Z Indexed on 2010/04/13 6:02 UTC
Read the original article Hit count: 226

Filed under:

When I use VIM or most modeless editors (Eclipse, NetBeans etc.) I frequently do the following. If I have similar text blocks and I need to change them all, I will change one, copy it (or use non-deleting yank), select next block I need and paste the changed version over it. If I do the same thing in emacs (select region and paste with C-y), it doesn't replace the region, it just pastes at the cursor position. What is the way to do this in emacs?

© Stack Overflow or respective owner

Related posts about emacs