Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Linux 内核中使用 make cscope 来生成 cscope.out,在 vim 中我可以使用 ctrl-] 在函数定义之间跳转。但是如果我:tselect用来显示所有函数定义,vim 报告
:tselect
E433: No tags file E426: tag not found:
而且当我使用:tnext到最后一个标签时,它会报告同样的错误。
:tnext
我使用 linux mint 13 64bit,vim 和 cscope 都是通过 apt 从官方存储库安装的。
ctags 和 cscope 是两个不同的东西,在 vim 中的处理方式也不同。':tselect' 是跳转到函数的 ctags 方式,不适用于 cscope 数据库。相反,您想使用
:cstag
vim 帮助系统有一个很好的建议集合:
:help cscope-suggestions