通过病原体生成不同位置的标签 [英] Generating tags to different location by pathogen

查看:22
本文介绍了通过病原体生成不同位置的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用病原体来组织我的 vim 插件.我将 github 中的插件 git 克隆到 vimbundles 目录中.这种方式很容易更新它们.

I use pathogen for organizing my vim plugins. I git clone the plugins from github into the vimbundles directory. This way it is simple to update them.

我对病原体生成的标签有疑问.如果插件的代码中没有标签,pathogen 通过调用 pathogen#helptags() 生成它们.标签生成到插件的 doc 文件夹中.然后这些文件在 git 存储库中显示为未跟踪.

I have problem with the tags generated by pathogen. If the plugin does not have the tags included in its code, pathogen generates them by calling pathogen#helptags(). The tags are generated into the doc folder of the plugin. These files then figure as untracked in git repository.

您知道如何将标签生成到不同的位置吗?所有标签都可以在同一个地方,目标不是让它们生成到插件所在的目录.能否说服病原体这样做?

Do you know a way how to generate tags into a different location? All tags could be on the same place, the goal is not to have them generated to the directory where the plugins live. Can pathogen be convinced to do so?

推荐答案

我的 .git/config 中有这一行:

I have this line i my .git/config:

[status]
   showUntrackedFiles = no

现在每次我运行 git status 时都不会显示未跟踪的文件.这也加快了速度,因为 git 不会检查目录中的每个文件,而只会检查存储库中存在的文件.

And now every time i run git status untracked files are not displayed. This also speeds up things a bit since git does not check every single file in directory but only those existing in repository.

欲了解更多信息,请访问 http://git-scm.com/docs/git-config 并转到 status.showUntrackedFiles.

For more info go to http://git-scm.com/docs/git-config and go to status.showUntrackedFiles.

忘了提到我在 bundle 目录中也有子模块,我在最顶层的存储库配置中添加了提到的选项.

Forgot to mention that I also have submodules in bundle directory and I add mentioned option to top-most repository config.

这篇关于通过病原体生成不同位置的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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