Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'gilligan/textobj-gitgutter'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'gilligan/textobj-gitgutter'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'gilligan/textobj-gitgutter'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/gilligan/textobj-gitgutter
Ⅳ. 文档说明
textobj-gitgutter
This vim plugin provides a git change-hunk text object. The following plugins are required for it to work:
- vim-gitgutter (https://github.com/airblade/vim-gitgutter)
- textobject-user (https://github.com/kana/vim-textobj-user)
The gitgutter plugin displays signs on lines that have been added/removed/modified. It also exposes an array of hunk metadata which is used by this plugin.
Usage
The default mapping ihfor an inner hunk. See the included documentation on how to change this to your own key mapping.
Installation
I recommend installing it via vundle (https://github.com/gmarik/vundle):
Bundle 'gilligan/textobj-gitgutter'