vimdiff和CVS集成 [英] vimdiff and CVS integration

查看:135
本文介绍了vimdiff和CVS集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直希望能够以一种合理的方式使vimdiff与CVS控制的文件一起使用.我在互联网上发现了许多(有些骇人听闻的)脚本(最佳示例此处)基本上将您正在编辑的文件从CVS检出到临时文件,然后对这两者进行vimdiff处理.这些都不考虑分支,并且始终假设您是从MAIN工作的,这对我来说是完全没有用的.

I've always wanted to be able to get a reasonably elegant way of getting vimdiff to work with a CVS controlled file. I've found numerous (somewhat hacky) scripts around the internet (best example here) that basically check out the file you are editing from CVS to a temp file, and vimdiff the two. None of these take into account branches, and always assume you're working from MAIN, which for me is completely useless.

所以,我的问题是这样的:有没有人找到一个比这个脚本还完善的解决方案?

So, my question is this: has anyone out there found a decent solution for this that does more than this script?

或者失败了,是否有人对如何实现此目标有任何想法,或者对您认为对实现此目标至关重要的哪些功能提出了建议?我的意图是,如果没有人能建议一个已经构建的解决方案以供使用或从中构建,则我们将从此处开始构建一个.

Or failing that, does anyone have any ideas of how they would implement this, or suggestions for what features you would consider vital for something that does this? My intention is that, if no one can suggest an already built solution to either use or build from, we start building one from here.

推荐答案

我一直在这里研究类似的脚本:

I've been working on a similar script here: http://github.com/ghewgill/vim-scmdiff (in fact, they may have the same ancestry). I haven't used scmdiff with cvs, but it should do a diff against the branch you have checked out. You can also specify that you want to diff against a particular revision (with :D revision). Hopefully this helps, and feel free to contribute if you've got improvements!

这篇关于vimdiff和CVS集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆