<p>Using Vim I often want to replace a block of code with a block that I just yanked.</p>

<p>But when I delete the block of code that is to be replaced, that block itself goes into the register which erases the block I just yanked. So I've got in the habit of yanking, then inserting, then deleting what I didn't want, but with large blocks of code this gets messy trying to keep the inserted block and the block to delete separate.</p>

<p>So what is the slickest and quickest way to replace text in Vim?</p>

<ul>
<li>is there a way to delete text without putting it into the register?</li>
<li>is there a way to say e.g. "replace next word" or "replace up to next paragraph"</li>
<li>or is the best way to somehow use the multi-register feature?</li>
</ul>

Well, first do this command:
```
```
:h d
```
```
Then you will realize that you can delete into a specific register. That way you won't alter what is in your default register.