vim ctags 设置
我的项目位于以下路径:~/work/my-proj
。在项目文件夹中,我创建了一个 .proj-ctags
文件夹,并发出以下命令来创建标记文件:
ctags -a -R -f .proj-ctags/.tags --exclude=@./.proj-ctags/ctags-exclude-list *
在我的 ~/.vimrc
中,我还添加了标签文件。当我在 ~/work/my-proj
中打开文件并将光标放在函数名称或变量名称上按 Ctrl-]
时,我得到
E257: cstag - tag not found.
Can some one let我知道我的设置有什么问题吗?
感谢您抽出时间。
干杯...
I have my project in the following path: ~/work/my-proj
. Inside the project folder I created a .proj-ctags
folder and issued the following command to create the tag file:
ctags -a -R -f .proj-ctags/.tags --exclude=@./.proj-ctags/ctags-exclude-list *
In my ~/.vimrc
I also added the path to the tags file. When I open a file in ~/work/my-proj
and press Ctrl-]
by having the cursor on a function name or variable name, I get
E257: cstag - tag not found.
Can some one let me know whats wrong in my setup?
Thanks for your time.
Cheers...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
cstag
是一个与 cscope 相关的命令。某些插件必须将C-]
重新映射到:cstag
,因为通常它会运行:tag
。你使用 cscope 和 ctags 吗?
您能告诉我们
:verb map
讲述了什么吗?cstag
is a cscope-related command. Some plugin must have remappedC-]
to:cstag
because normally, it runs:tag
instead.Do you use cscope as well as ctags?
Could you tell us what
:verb map <c-]>
tells?