I use Vim and I want to substitute some placeholder text with a long line that spans several lines that are already written somewhere else in the file.
Is it possible to replace the template with the contents of the register? Something like
:%s/foo/<contents of register A>
Otherwise, you can replace with a series of lines? something like
:%s/foo/<content of lines from 10 to 15>
vim replace substitution
Paolo Tedesco Mar 19 '09 at 15:46 2009-03-19 15:46
source share