git-time-lapse


Ⅰ. 插件描述

Fork of git-time-lapse: Perforce-style for vim

Ⅱ. 基本信息

创建日期:  2011-11-13
使用用户:  3
Github星:  11
插件作者:  Manpreet Singh

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'junkblocker/git-time-lapse-treacherous'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'junkblocker/git-time-lapse-treacherous'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'junkblocker/git-time-lapse-treacherous'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# git-time-lapse

Fork of git-time-lapse: Perforce-style for vim

Description

You're editing a file which is in a git repository. Press a key which
opens a new tab which shows how that commit changed that file in vim's
diff mode (:help diff), with a window at the bottom showing the commit

  1. Left and right arrows move through the history. Shift-left and
    shift-right go all the way to the end. Return on a line goes back to the

last commit that touched that line (using git blame).

Close the tab when you're bored with it and carry on vimming as usual.
You can open as many time-lapse tabs on different files in one vim
session as you want.

Inspired by the "time lapse view" in the Perforce gui.

Demo

asciicast

Use

Map a key in your .vimrc, e.g.:

nmap <Leader>gt <Plug>(git-time-lapse)

or use the command:

:GitTimeLapse

to run it.

添加新评论