Ⅰ. 插件描述
Vim plugin to diff two directoriesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'will133/vim-dirdiff'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'will133/vim-dirdiff'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'will133/vim-dirdiff'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/will133/vim-dirdiff
Ⅳ. 文档说明
# vim-dirdiff
DirDiff plugin for Vim
If you like Vim's diff mode, you would love to do this recursively on two
directories!

Installation
With pathogen.vim:
cd ~/.vim/bundle
git clone git://github.com/will133/vim-dirdiff
Usage
:DirDiff <dir1> <dir2>
To open DirDiff from the command line, run vim -c "DirDiff dir1 dir2"
or add the following function to your shell init file:
function dirdiff()
{
# Shell-escape each path:
DIR1=$(printf '%q' "$1"); shift
DIR2=$(printf '%q' "$1"); shift
vim $@ -c "DirDiff $DIR1 $DIR2"
}
If you use pathogen, you can use :Helptags to regenerate documentation. You
then can see ":h dirdiff" for more information.
License
Copyright (c) 2001-2015 William Lee. (BSD-Like) See doc/dirdiff.txt.