title: Converting and reverting in VIM the endnote {author , #XXX} references?
body: <p>I am facing a problem to convert a document that has the following:</p>
  
  <blockquote>
    <p>This author {john, #99} said that ...
    ... bla bla this other author mentioned {barlic, #1508} ...</p>
  </blockquote>
  
  <p>I would like that vim convert it to : </p>
  
  <blockquote>
    <p>This author \cite{latexref99} said that ...
    ... bla bla this other author mentioned \cite{latexref1508} ...</p>
  </blockquote>
  
  <p>Any idea how to do that ? but also how to revert to : </p>
  
  <blockquote>
    <blockquote>
      <p>This author {,#99} said that ... ... bla bla this other author mentioned {, #1508} ..</p>
    </blockquote>
  </blockquote>