sponsor Vim development Vim logo Vim Book Ad

lastchange.vim : automatically set time-stamp on modification

 script karma  Rating 2/2, Downloaded by 603  Comments, bugs, improvements  Vim wiki

created by
Jesse Adams
 
script type
utility
 
description
Modified http://www.vim.org/scripts/script.php?script_id=259 and incorporated the following.

* Fixed for VIM 7.X
* Adjusted formatting of date
* No longer truncate minutes to 00
 
install details
Drop file in ~/.vim/plugins/ and at the following within the top 20 lines of your code. The comment character depends on what you are working in. I used a VIM script comment in the example.

" Last Change: ?

Save the file and re-open it. It should populate with a timestamp.
 

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
lastchange.vim 1.0.2 2010-12-06 7.2 Jesse Adams Mixed minutes (was using month on accident)
lastchange.vim 1.0.1 2010-12-06 7.2 Jesse Adams Initial upload
ip used for rating: 18.191.216.163

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