I have used VIM for two years. This is my first time writing a plugin for it. The concept behind is simple. There are three kinds of template insertion when you create a file: shebang, license, and code block. You can also define some values in you vimrc file so that the corresponding tags in the templates will be replaced. Here is the source code.