Vim 和 Ctags:生成标签时忽略某些文件 [英] Vim and Ctags: Ignoring certain files while generating tags

查看:38
本文介绍了Vim 和 Ctags:生成标签时忽略某些文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件夹 llvm2.9,我在其中运行了这个命令.

I have a folder llvm2.9 in which i ran this command.

$> ctags -R --sort=1 --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++

这是 *.html 文件中的索引方法,也存在于 llvm2.9/docs 中.我发现了这一点,因为当我为某个类按下 ctrl-] 时,它转到了 html 文件.

This was indexing methods in *.html files also which were present in llvm2.9/docs. I found this out because when i pressed ctrl-] for some class, it went to the html file.

我如何强制 ctags 单独使用 .cpp/.h 文件或忽略特定目录.

How do i force ctags to use .cpp/.h files alone or ignore a particular directory.

谢谢

推荐答案

您可以使用--exclude='*.html'

这篇关于Vim 和 Ctags:生成标签时忽略某些文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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