title: How to use a template in vim
body: <p>This is really a newbie question - but basically, how do I enable a template for certain filetypes.</p>
  <p>Basically, I just want the template to insert a header of sorts, that is with some functions that I find useful, and libraries loaded etc.</p>
  <p>I interpret</p>
  <pre><code>:help template
  </code></pre>
  <p>the way that I should place this in my vimrc</p>
  <pre><code>au BufNewFile,BufRead ~/.vim/skeleton.R
  </code></pre>
  <p>Running a R script then shows that something could happen, but apparently does not:</p>
  <pre><code>--- Auto-Commands ---
  </code></pre>
  <p>This may be because a template consists of commands (and there are no such in skeleton.R) - and in this case I just want it to insert a text header (which skelton.R consist of).</p>
  <p>Sorry if this question is mind boggeling stupid ;-/</p>