title: Replace text from line above in Vim
body: <p>How can I replace the first ten characters of a line where those ten characters match a particular pattern with the first ten characters from the line above?</p>
  
  <p>Edit: It wasn't clear if I was asking to replace the first ten characters where the match could appear anywhere within the line, so maybe make a note in your answer if it deals with this case (call this case B and the intended one case A?)</p>