简体   繁体   English

VIM的VCS命令

[英]VCScommand for VIM

I am trying to use HG (Mercurial) with the Vim VCScommand plugin, but am running into a problem " Too many matching VCS: git HG ". 我正在尝试通过Vim VCScommand插件使用HG(Mercurial) ,但是遇到了一个问题“ 匹配的VCS太多:git HG ”。 I removed the vcsgit.vim and the HG binding seemed to work. 我删除了vcsgit.vim ,并且HG绑定似乎起作用了。 I thought VCScommand used the folder to determine, which VCS one was using. 我以为VCScommand使用该文件夹来确定正在使用哪个VCS。 I guess this is a flawed assumption. 我想这是一个错误的假设。

You can override the detection via the VCSCommandVCSTypeOverride variable. 您可以通过VCSCommandVCSTypeOverride变量覆盖检测。 Most probably you can only get the error you had mentioned if the actual file (and its directory is vc-ed with both git and hg. 如果实际文件(及其目录同时是git和hg vc-ed),则很可能只会得到您提到的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM