Ⅰ. 插件描述
Auto write last change timeⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/lastchange'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/lastchange'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/lastchange'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/lastchange
Ⅳ. 文档说明
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'