in reply to Re: Templates for Perl Programs and Perl Modules
in thread Templates for Perl Programs and Perl Modules

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

  • Comment on The Vim Aproach to Templates for Perl Programs and Perl Modules

Replies are listed 'Best First'.
Re: The Vim Aproach to Templates for Perl Programs and Perl Modules
by harleypig (Monk) on Dec 01, 2005 at 01:13 UTC

    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