title: Vim generate function definition from the declaration
body: <p>I'm learning to use vim, but I think it's inconvenient to generate function definition in <code>.cpp</code> file from its declaration in <code>.h</code> file.</p>
  <p>For example, if I declare a function <code>void print(const vector&lt;int&gt;&amp; arr);</code> in <code>A.h</code>, I have to open <code>A.cpp</code> and type the following:</p>
  <pre class="lang-cpp prettyprint-override"><code>void print(const vector&lt;int&gt;&amp; arr) {
  
  }
  </code></pre>
  <p>(or use <code>yy</code> copy the declaration line, then delete <code>;</code> and add <code>{}</code>...)
  When some derived classes need to override function in base class, it can be a heavy job...</p>
  <p>Is there any convenient plugin or command to help me deal with it?</p>