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