title: automatic try/catch statements in vim
body: <p>I find myself typing something like</p>
  
  <pre><code>class Foo{
     myFancyType bar();
  }
  
  myFancyType Foo::bar()
  {
      try{
          //do some stuff
      }
      catch(myFavoriteExceptionType &amp;e){
          std::cerr&lt;&lt;e.what()&lt;&lt;std::endl;
          throw myFavoriteExceptionType("Foo::bar() failed");
      }
  }
  </code></pre>
  
  <p>very, very, VERY, often.</p>
  
  <p>I am currently working with vim and my search was unsuccessfull. Is there some plugin that will automate the nasty repetitive task of manually inserting the try/catch statement when defining a function?</p>