<div dir="ltr">Thanx Wade</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 14, 2017 at 10:43 AM, G. Wade Johnson via Houston <span dir="ltr"><<a href="mailto:houston@pm.org" target="_blank">houston@pm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In part of my talk on Thursday, I showed how I do filetype templates in<br>
vim. Several people asked for a copy.<br>
<br>
Add the following line in your .vimrc<br>
<br>
  autocmd BufNewFile * silent!    0r ~/.vim/templates/%:e.template<br>
<br>
and create the directory ~/.vim/templates.<br>
<br>
When creating a new file, this will cause vim to look in the template<br>
directory for a file named {file_extension}.template and load it first.<br>
<br>
Here's my template pl.template<br>
-------------------<br>
#!/usr/bin/env perl<br>
<br>
use strict;<br>
use warnings;<br>
use 5.010;<br>
<br>
-------------------<br>
<br>
Have more vim fun.<br>
<span class="HOEnZb"><font color="#888888">G. Wade<br>
--<br>
A product's only late once, but it can suck forever.<br>
                                     -- Ben Spees, Ambrosia Software<br>
______________________________<wbr>_________________<br>
Houston mailing list<br>
<a href="mailto:Houston@pm.org">Houston@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/houston" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/<wbr>listinfo/houston</a><br>
Website: <a href="http://houston.pm.org/" rel="noreferrer" target="_blank">http://houston.pm.org/</a><br>
</font></span></blockquote></div><br></div>