gblame


Ⅰ. 插件描述

Git blame implementation for light table

Ⅱ. 基本信息

创建日期:  2014-01-19
使用用户:  1
Github星:  2
插件作者:  Beau Fabry

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

GBlame

Git blame implementation for light table

Something approximating the :GBlame view from Fugitive.vim (https://github.com/tpope/vim-fugitive), though not nearly as feature packed. That's the only feature of git I ever actually use while inside my editor so I figured I'd churn that out as a learning exercise.

Anyway, not earth-shattering, but at least for me definitely useful.

Thanks Mike Haney for your lein template, I used it here. I noticed you're planning on making a larger scale "git" plugin, once you start that I'd be happy to merge this functionality into it and discontinue this one.

Usage:

There's a command for showing/updating the blame display, and another for closing it. Can't get much simpler :-)
Once you have a the blame view to the left, clicking on one will open a diff for that file for that commit.

Changes

0.0.8:

  • Use the new LT gutters api so work with other gutter plugins better
  • Run the git blame in the background
    0.0.7:
  • Display and follow renames correctly (Sean Caffery)
  • Play nicely with other gutter plugins (Sean Caffery)

添加新评论