Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Templates for Perl Programs and Perl Modules

by toadi (Chaplain)
on Jan 21, 2003 at 13:34 UTC ( #228672=note: print w/ replies, xml ) Need Help??


in reply to Templates for Perl Programs and Perl Modules

Well I have almost the same. In my vim config files. It even automatically gives CVS $Id$, last modified, author, ...
It even recognize which type of file: .sh, .pl, .c, ... And wil do the correct templating for that kind of file.
Works very good. Think most people automate this kind of stuff.

--
My opinions may have changed,
but not the fact that I am right


Comment on Re: Templates for Perl Programs and Perl Modules
The Vim Aproach to Templates for Perl Programs and Perl Modules
by toma (Vicar) on Jan 21, 2003 at 17:11 UTC
    I wonder if there is a way to automatically detect if a user is using CVS, RCS, ClearCase, etc. If so, I could add the appropriate line in the file. Another approach might be to try to read vim's configuration file, or I could use a configuration file custom for this application.

    For this type of easy program it doesn't matter much if you code it in vim or Perl. If I had found a template in vim I might not have written this at all. I would like to see what you use, or get a pointer to a repository of good vim templates. There is a lot of content at http://www.vim.org, and I don't know where the good templates are.

    It should work perfectly the first time! - toma

      I don't know if you've already realized this, but, if the file is in a directory that has a CVS directory you could assume CVS.

      Harley J Pig

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://228672]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2014-09-22 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (177 votes), past polls