Ⅰ. 插件描述
visual cvs diff utility for vim diffsplit, horizontal or verticalⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/cvsdiff-vim-is-written-on'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/cvsdiff-vim-is-written-on'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/cvsdiff-vim-is-written-on'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/cvsdiff.vim
Ⅳ. 文档说明
vim plugin to for visual display of cvs diff in vim using vim diffsplit
1) used as vim command, format :Cvsdiff [v] [version #]
:Cvsdiff
-- diff between opened file and lastest cvs version,
horizontal split
:Cvsdiff v
-- diff between opened file and lastest cvs version,
vertical split
:Cvsdiff <version #> example :Cvsdiff 1.2
-- diff between opened file and cvs version #, horizontal split
:Cvsdiff v <version #> example :Cvsdiff v 1.2
-- diff between opened file and cvs version #, vertical split
2) map to key
can create mapping in ~/.vimrc by adding following lines, examples
map <F8> <Plug>Cvsdiff
-- press F8 in vim, show diff to cvs last version, horizontal split
map <F7> <Plug>Cvsdiffv
-- press F7 in vim, show diff to cvs last version, vertical split
error report:
eji@yahoo-inc.com
feel free to customize it, distribute it or do whatever you want.