# paste yanked text on command buffer

Sometimes you need to paste yanked text while performing command. For example subtituting yanked text with some words.

yanked text are stored in the `0` and `"` register.

in the command mode you can paste this with `ctrl-R [registe]` example in our cases this would be `ctrl-R 0`

so full command would be for example `:%s/[press ctrl-R then 0]/replacement/gc`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://til.yulrizka.com/vim/paste-yanked-text-on-command-buffer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
