gitgutter


Ⅰ. 插件描述

A Sublime Text 2/3 plugin to see git diff in gutter

Ⅱ. 基本信息

创建日期:  2012-12-08
使用用户:  22
Github星:  3884
插件作者:  JD Isaacks

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# GitGutter

A Sublime Text 3.1.1+ (3176) plug-in to show information about files in a git repository:

  1. Gutter Icons indicating inserted, modified or deleted lines
  2. Diff Popup with details about modified lines
  3. Status Bar Text with information about file and repository

and provides some commands like:

  1. Goto Change to navigate between modified lines
  2. Copy from Commit to copy the original content from the commit
  3. Revert to Commit to revert a modified hunk to the original state in a commit

Gutter Icons & Status Bar Text

screenshot

The icons of the default theme have the following meaning:

IconDescription
![inserted][]inserted line
![changed][]modified line
![deleted][]deleted region borders
![ignored][]ignored file
![untracked][]untracked file

Diff Popup

The diff popup shows the original content from the commit or the differences between it and the working content.

diff_popup_screenshot

The toolbar provides some commands to interact with or modify the changes.

symbolmeaning of the symbol
×close the popup
goto to first change
goto to previous change
goto to next change
≈, ≉enable/disable difference highlighting
copy the original content from the commit
revert a modified hunk to the original state in a commit

Documentation

Please read https://jisaacks.github.io/GitGutter/ for detailed information about

添加新评论