vim-signify


Ⅰ. 插件描述

:heavy_plus_sign: Show a diff using Vim its sign column.

Ⅱ. 基本信息

创建日期:  2013-03-05
使用用户:  2457
Github星:  1804
插件作者:  Marco Hinz

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-signify


_Signify (or just Sy) uses the sign column to indicate added, modified and
removed lines in a file that is managed by a version control system (VCS)._


  • Supports git, mercurial, darcs, bazaar, subversion,
    cvs, rcs, fossil, accurev, perforce, tfs, yadm.
  • Asynchronous execution of VCS tools for Vim 8.0.902+ and Neovim.
  • Preserves signs from other plugins.
  • Handles nested repositories controlled by different VCS.
  • Provides mappings for navigating hunks ("blocks of changed lines").
  • Provides an operator that acts on hunks.
  • Preview changes in the current line in a popup window.
  • Show all changes in diff mode.
  • Alternative workflow: Disable the plugin by default and **toggle it per
    buffer** on demand.
  • Optional line highlighting.
  • Optional skipping of filetypes/filenames.
  • Optional stats in the statusline.
  • Works out of the box, but allows fine-grained configuration.
  • Great documentation and handsome maintainers!

Similar plugin for git: vim-gitgutter

Installation

The master branch is async-only and thus requires at least Vim 8.0.902. Use
the legacy branch for older Vim versions.

Using your favorite [plugin
manager](https://github.com/mhinz/vim-galore#managing-plugins), e.g.
vim-plug:

if has('nvim') || has('patch-8.0.902')
  Plug 'mhinz/vim-signify'
else
  Plug 'mhinz/vim-signify', { 'branch': 'legacy' }
endif

Configuration for async update

" default updatetime 4000ms is not good for async update
set updatetime=100

Demo

Example:signify in action

Author and Feedback

If you like this plugin, star it! It's a great way of getting feedback. The same
goes for reporting issues or feature requests.

Contact: Twitter

Co-maintainer: @jamessan

添加新评论