For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Last updated