Ⅰ. 插件描述
Jump to file from diff outputⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vlmarek/diffgofile'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vlmarek/diffgofile'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vlmarek/diffgofile'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/DiffGoFile
Ⅳ. 文档说明
DiffGoFile
This is home of vim plugin http://www.vim.org/scripts/script.php?script_id=1888
If you are editing diff file and you want to jump quickly to
corresponding source files, function DiffGoFile does that. Place
cursor on the spot in diff file which interests you, call |DiffGoFile|
and you will be presented with the source file exactly at the place
you were looking at. Currently only unified diff is supported, but the
script has framework for adding more types.