> For the complete documentation index, see [llms.txt](https://til.yulrizka.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.yulrizka.com/vim/paste-yanked-text-on-command-buffer.md).

# 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`
