Does Vim compile a cscope command instead of ctags?

I installed ctags but did not install cscope.

When I press Ctrl-], vim correctly takes me to the definition. However, when I press Ctrl-t, it comes back with an error - "E567: no cscope connections."

vim --version has + cscope in it. I tried installing "set nocst" in my vimrc, but to no avail.

+5
source share
3 answers

You can have cscope_maps.vim installed. Or maybe another cscope-related plugin / kit. If so, you need to remove it.

+1
source

Try:

 :set csto=1 

From the documentation http://vimdoc.sourceforge.net/htmldoc/if_cscop.html#csto

The value 'csto' defines the order in which |: cstag | performs a search. If the 'csto' parameter is set to 0, the database is first searched for (cscope), then the tag files if cscope did not return matches. If the 'csto' parameter is set to one, the tag file (s) is searched to the cscope database. The default value is zero.

Hope this helps you.

+2
source

If you already have ctags installed and you are trying to use the contour viewer for your code, I would recommend using https://github.com/majutsushi/tagbar . It works fine with only ctags.

If you are using Vundle, install with

Plugin 'majutsushi/tagbar'

0
source

Source: https://habr.com/ru/post/1264211/


All Articles