vim-git-inline-diff


Ⅰ. 插件描述

Git inline diff for Vim using Vim's signs feature

Ⅱ. 基本信息

创建日期:  2010-10-28
使用用户:  4
Github星:  12
插件作者:  Raffael Schmid

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'luxflux/vim-git-inline-diff-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'luxflux/vim-git-inline-diff-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'luxflux/vim-git-inline-diff-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Vim git inline diff

Adds signs on the left hand of your open buffer which mark the changed lines.

Example

Example screen with the customized configuration below.

Example

Configuration

" Symbol for lines which have been added, default: +
let g:git_diff_added_symbol='⇒'

" Symbol for lines which have been removed, default: -
let g:git_diff_removed_symbol='⇐'

" Symbol for lines which have been changed, default: <>
let g:git_diff_changed_symbol='⇔'

Contribution

  • Initially written by Marcin Kulik (@sickill).
  • Maintained by Raffael Schmid (@luxflux)

Copyright

Copyright (c) 2013 Raffael Schmid. See http://raf.mit-license.org/ for further details.

添加新评论