47
Vim, 11 bytes
q"iq"qP<Esc>hqP
iq"qP<Esc>: Manually insert a duplicate of the text that has to be outside the recording.
q" and hqP: Record the inside directly into the unnamed "" register, so it can be pasted in the middle. The h is the only repositioning required; if you put it inside the ma...