cscope error when trying to use ctags in vim

£可爱£侵袭症+ 提交于 2019-12-21 05:18:51

问题


I have generated ctags for my projects:

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/

I then added the tags to .vimrc:

set tags+=/home/grae/tags

I also temporarily added the following (but have now removed):

set csto=1

Now when I try Ctrl+] or g] I get the error:

cstag: tag not found

I shouldn't be using cscope so I'm not sure how this has happened. My current thoughts are:

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

Any ideas how to solve this?


回答1:


Found an answer when inspecting :options, you need to turn off cscope by using:

:set nocst


来源:https://stackoverflow.com/questions/7038329/cscope-error-when-trying-to-use-ctags-in-vim

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!