title: Vim c++ generate source file based on header file
body: <p>I do a lot of c++ programming in vim and I was wondering if there are any plugins or snippets out there that can generate a source file depending on the contents of the header file. </p>
  
  <p>I.E: test.h</p>
  
  <pre><code>class test {
  public:
    test();
  };
  </code></pre>
  
  <p>and then going into the test.cpp file and typing "src" and expanding it (using some sort of snippet plugin like UltiSnips) it would look in the test.h file for the funcions and (in this case) make:</p>
  
  <pre><code>test::test() {
    //code
  }
  </code></pre>
  
  <p>I got this idea from Derek Wyatt's blog and he does this using XPTemplate so I thought it would be great to do the same in UltiSnips.</p>