Ⅰ. 插件描述
A git commit browser for vim. Extends fugitive.vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'int3/extradite-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'int3/extradite-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'int3/extradite-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/int3/vim-extradite
Ⅳ. 文档说明
extradite.vim
A git commit browser / git log wrapper that extends fugitive.vim.
:Extradite toggles the Extradite buffer, i.e. the commit browser. By
default, it opens in the current window. Adding |!| makes it open in a vertical
split instead.
The width of the split is set with g:extradite_width, but can be deactivated
with g:extradite_resize
Note: :Extradite only runs if the current file is under git version control!
Once we are in the Extradite buffer, the following keymaps are available:
<CR> edits the revision on the current line in a fugitive-buffer.
oh, ov, and ot edit the revision under the cursor in a new horizontal
split / vertical split / tab respectively.
dh, dv, and dt diff the current file against the revision under the
cursor in a new horizontal split / vertical split / tab respectively.
t toggles the visibility of the file diff buffer.
q closes the Extradite buffer.
This plugin can also be obtained from vim.org.