Ⅰ. 插件描述
Enhance vim's diff commands to be more convenient.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'idbrii/vim-diffusable'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'idbrii/vim-diffusable'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'idbrii/vim-diffusable'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/idbrii/vim-diffusable
Ⅳ. 文档说明
# diffusable
Quick shortcuts to putting text into a vimdiff.
Dependencies
:Scratch (optional)
Uses itchy.vim or any scratch plugin
providing a :Scratch command if available. Otherwise it defines its own:Scratch command.
Commands
:DiffDeletes
Diff the last two things you deleted.
DiffText(left, right)
Diff the text in the two inputs left and right.
:DiffSaved
Diff against the file on disk. Similar to :help DiffOrig.
:DiffBoth
Diff the current and the previous window. Partners the two windows so that when
one of the windows are closed, diff is turned off in the other one. Great for
preventing accident diffing more than two files because you forgot to turn off
'diff' on some hidden buffer.
:DiffOff
Stop diffing this window and its partner. See :DiffBoth.
License
MIT