hi, please take a look at vim tip #434 the example there is for *.h and *.cpp files but you might find some idea from it.
hth, ymc ----- Original Message ----- From: "Gundala Viswanath" <[EMAIL PROTECTED]> To: <vim@vim.org> Sent: Wednesday, October 18, 2006 4:19 PM Subject: Automatically adding header into file with specific extension > Hi, > > I want to be able to have VIM automatically > insert this line: > > #!/usr/bin/python > > Whenever I open a NEW file with *.py or *.egg extension > for example > > under bash > $ vi mycode.py > > or > > $ vi mycode.egg > > or under VI > > : e mycode.py > > Is it possible? > > -- > Gundala Viswanath >