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.
我只需要一个函数tags,它会列出与我的搜索匹配的所有标签。但是在我检查了文档之后,我仍然找不到相应的工具来提供这个功能。因此,当我使用跳转到一个标签并发现这不是我需要的标签后,它会变得非常不方便cscope,我想检查另一个标签。我必须再次搜索。
tags
cscope
您应该使用 quickfix cscope 集成。在你的 .vimrc 中设置:
set cscopequickfix=s-,c-,d-,i-,t-,e-
然后您可以进行 cscope 查询,所有命中都将在 quickfix 和/或位置列表中。我更喜欢在查询后打开位置列表,然后我可以搜索位置。按回车键转到该位置。
:lopen 90
请务必阅读 vim :help quickfix 另请参阅此文档:
http://vim.wikia.com/wiki/Cscope