【问题标题】:cscope error when trying to use ctags in vim尝试在 vim 中使用 ctags 时出现 cscope 错误
【发布时间】:2011-08-12 09:43:51
【问题描述】:

我已经为我的项目生成了 ctags:

ctags -f /home/grae/tags --recurse --langmap=C++:.C.h.c.cpp.hpp.inl --languages=C++ --extra=+q --fields=+iaS --c++-kinds=+p --verbose framework/ modules/ /usr/include/

然后我将标签添加到 .vimrc:

set tags+=/home/grae/tags

我还临时添加了以下内容(但现在已删除):

set csto=1

现在当我尝试 Ctrl+] 或 g] 时,我得到了错误:

cstag:未找到标签

我不应该使用 cscope,所以我不确定这是怎么发生的。我目前的想法是:

* cscope on by default
* something has overriden Ctrl+] and g]

有什么办法解决这个问题吗?

【问题讨论】:

    标签: vim ctags cscope


    【解决方案1】:

    检查时找到答案:选项,您需要使用以下方法关闭cscope:

    :set nocst
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-08
      • 2011-02-27
      • 1970-01-01
      相关资源
      最近更新 更多