I wrote three VIM plugins. You can check whether it is useful for you.

Last Modified : Changes the Last modified date of a file

Script Home

Description

It changes the Last modified date automatically without changing the format of the time you use
Here i added some extra features —-
1> It checks the time format in the file you are working on and the format given in the plugin. If both are same, it changes the time, other wise it shows you a warning.
2> It does not change any other thing in the file.

Installation details

simply copy the file lastModifed.vim in the …./Vim/vimfiles/plugin and Please change the following things if necessary
a> Change the variable ‘s:timeStampLeader’ to the string which you use in your code (by default which is “Last Modified”)
b> Change the variable ‘timeStampFormat’. Put an example of the time format you want.
c> Change the variable ‘timeStampString’. Change it to get the proper time stamp. Read the comments in the file to change the variable.

Remove Trailing Spaces : removes the trailing space from the file

Script Home

Description

It removes the trailing space from the file when user will save   any changes

To force the time stamp to be not updated, use the command:
:NOMODSP
To change it back, use
:MODSP

Installation details

Put the file in the plugin folder… that’s all

Increment and Decrement number : Increment or decrement the number which is under your cursor

Script Home

Description

In the command mode, move your cursor on the number which you want to change.
Then use SHIFT and + to increment the number
or SHIFT and – to decrement the number.

Installation details

Put the file in the plugin folder… that’s all

Advertisements