title: Vim: Writing function skeleton
body: <p>When writing new functions with Vim I always seem to have to do a bit of "manual" work.</p>
  
  <p>x = Cursor position</p>
  
  <p>If I start typing a function and insert a couple of curly braces and the end</p>
  
  <pre><code>function Apples() {x}
  </code></pre>
  
  <p>Then hit <strong>Enter</strong>, it obviously looks like this</p>
  
  <pre><code>function Apples() {
  x}
  </code></pre>
  
  <p>Which results in me having to <strong>ESC,O</strong> in order to shift the closing curlybrace down.
  While this may seem like a trivial matter, doing this over the last 5 months is getting bothersome, and I know there are plenty like me out there who knows there should be an elegant solution to this. I am open to plugin-suggestions.</p>