sponsor Vim development Vim logo Vim Book Ad

autodate.vim : A customizable plugin to update time stamps automatically.

 script karma  Rating 96/39, Downloaded by 3659  Comments, bugs, improvements  Vim wiki

created by
Taro MURAOKA
 
script type
utility
 
description
This plugin inserts and updates a time stamp automatically.

Users can specify a format and position of the time stamp by options.
By default, autodate.vim searches a keyword "Last Change:."
in the first 50 lines of the buffer, and inserts a time stamp.  Example:
    Last Change: 24-Jun-2003.

Setting Example:
    :let b:autodate_keyword_pre = '<!--DATE-->'
    :let b:autodate_keyword_post = '<!--DATE-->'
    :let b:autodate_format = '%Y/%m/%d'
The Result:
    <!--DATE-->2003/06/24<!--DATE-->

See comments in autodate.vim for more details.
 
install details
Put the file in ~/.vim/plugin/ directory.
 

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
autodate.vim 1.0.2 2003-06-23 6.0 Taro MURAOKA Add "%[0-9]a" format, which is replaced with locale independed English day name string.
ip used for rating: 142.132.191.50

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