Ⅰ. 插件描述
A Sublime Text 2/3 plugin to see git diff in gutterⅡ. 基本信息
|
Ⅲ. 安装方法
使用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:
- Gutter Icons indicating inserted, modified or deleted lines
- Diff Popup with details about modified lines
- Status Bar Text with information about file and repository
and provides some commands like:
- Goto Change to navigate between modified lines
- Copy from Commit to copy the original content from the commit
- Revert to Commit to revert a modified hunk to the original state in a commit
Gutter Icons & Status Bar Text
The icons of the default theme have the following meaning:
Icon | Description |
---|---|
![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.
The toolbar provides some commands to interact with or modify the changes.
symbol | meaning 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