HeaderCVS : Auto generate CVS Header before current cursor
script karma |
Rating 4/5,
Downloaded by 861 |
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.)
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.222.110.185
|