sponsor Vim development Vim logo Vim Book Ad

HeaderCVS : Auto generate CVS Header before current cursor

 script karma  Rating 4/5, Downloaded by 757  Comments, bugs, improvements  Vim wiki

created by
AyuanX
 
script type
utility
 
description
"
" This plugin adds CVS Header before current cursor.
"
" The CVS Header will automatically reflect current file name, current date and
" your description beside a standard CVS Header.
"
" (Note: This plugin is only tested on **Linux**.)

For example:
If you type ":HeaderCVS This is my file description." when editing file "Demo.sh",
this plugin will add the following CVS Header before current cursor.

########################################################################
#  Copyright MyCompany Inc.  All Rights reserved
########################################################################
#
#  File                :  Demo.sh
#  Creator           :  AyuanX ( ayuanx#163.com )
#  Creation Date  :  2008-01-11
#  Description      :  This is my file description.
#
########################################################################
#    $Author$
#    $Source$
#    $Revision$
#    $Date$
#    $Id$
########################################################################
#    $Log$
########################################################################

TIP:
Company Name and Creator are customizable, File Name and Date are auto generated.

WARNING:
This script is written with shell comment character '#' by default, you may need some workarounds manually to comment out the added header with other corresponding comment character.
 
install details
"
" 1. Please edit HeaderCVS.vim, customizing the following variables.
"          let s:company = "MyCompany"
"          let s:creator = "AyuanX ( ayuanx#163.com )"
"
" 2. Put HeaderCVS.vim into path "~/.vim/plugin/".
"
" 3. Type ":HeaderCVS YOUR DESCRIPTION HERE" to add CVS Header when editting files.
"    (NOTE: You can insert spaces into your description or omit description.)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
HeaderCVS.vim 1.0 2008-01-20 6.0 AyuanX Initial version
ip used for rating: 54.144.95.36

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github