sponsor Vim development Vim logo Vim Book Ad

lastchange : Auto write last change time

 script karma  Rating 4/1, Downloaded by 647  Comments, bugs, improvements  Vim wiki

created by
kangzhi shi
 
script type
utility
 
description
example:
    before script run:
        /*
         *       Filename: example.h
         *           Create: 2008-8-8, 00:00:00
         * Last Change:
         */
     after script run:
        /*
         *       Filename: example.h
         *           Create: 2008-8-8, 00:00:00
         * Last Change: 2008-8-8, 11:11:11
         */

g:lastChangeName: default is 'Last Change:'
    script will search this and put now time behind this.

g:lastChangeSearchStart: default is 1
    search range.
g:lastChangeSearchEnd: default is 5
    search range.

g:lastChangeAutoWrite: default is 0 (false)
    if this is true(1),script will run when you are saving and file is matching of g:lastChangeAutoWriteFile.

g:lastChangeAutoWriteFile: default is '*.c,*.C,*.cpp,*.cxx,*.h,*.hpp,*.hxx,*.java,*.py'
 
install details
copy to the $VIMFILES/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
lastchange.vim 1.1 2008-10-28 6.0 kangzhi shi FIX if you are using fold and find the g:lastChangeName in a closed fold,script will replace this fold.
lastchange.vim 1.0 2008-10-22 6.0 kangzhi shi Initial upload
ip used for rating: 18.219.189.247

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