vim invoke
Everytime I write a perl script I have to type "/usr/bin/perl -w" and "use strict".
Is there any way to automate this process so that everytime I invoke a perl script, say "vim test.pl" it will see the extension (pl) and will add those lines automatically at the top of the file/ script. |
I'm sure there's a proper vim (or perl) way, but why not just create your template and define a bash function to do something simple like
Code:
vimpl () { |
All times are GMT -5. The time now is 03:07 AM. |