TagmaLast


Ⅰ. 插件描述

Update the 'Last Changed' line in a file

Ⅱ. 基本信息

创建日期:  2012-02-17
使用用户:  1
Github星:  1
插件作者:  Lorance Stinson

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/tagmalast'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/tagmalast'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/tagmalast'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/TagmaLast

Ⅳ. 文档说明

This plugin updates the 'Last Changed' line in a file. This can be done
automatically if g:TagmaLastAutoUpdate is set. The pattern to search for and
the timestamp format can be set. When making the update :updatejoin can be
used to join the change to the previous change. This allows :undo to undo
both changes. This is controlled by g:TagmaLastUseUndoJoin.

The 'Last Changed' line is matched by a regexp set in
g:TagmaLastSearchRegexp. This allows any desired format to be matched.

The command UpdateLast manually updates the 'Last Changed' line.
This is mapped to <Leader>UL by default. (<Leader> is normally "")

The commands TagmaLastDisable and TagmaLastEnable disable and
enable automatic updates of the 'Last Changed' line, respectively.

The timestamp that is used is set by g:TagmaLastTimeFormat.
Defaults to "%a %b %d %I:00 %p %Y %Z".
On Windows "%Z" for the time zone defaults to the full name, not the
three letter abbreviation. This is detected and corrected resulting in
time zones always being the three letter abbreviation.

添加新评论