autocmd bufnewfile *.py :0r ~/.vim/templates/python_skeleton.txt The "0" inserts the text at the beginning of the file
cat python_skeleton.txt
#!/usr/bin/env python
# -*- coding: utf-8 -*-
if __name__ == "__main__": main()
# vim: set ts=4 sw=4 tw=79 et :
http://stackoverflow.com/questions/2706973/vi-script-problem-on-autocmd