3

This is best explained with an example:

Start by block selecting some text:

selected

Yank and paste it somewhere else:

after paste

Note that the existing x characters were pushed over to the side, rather than being replaced.

Desired "Replace" Behavior

desired

Is there a command that achieves the above desired result?

4

There's :h put-Visual-mode. Just select the visual block of the same dimension to make it work as one-to-one replace: 1vp

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.