vim ctags setup

10,148

cstag is a cscope-related command. Some plugin must have remapped C-] to :cstag because normally, it runs :tag instead.

Do you use cscope as well as ctags?

Could you tell us what :verb map <c-]> tells?

Share:
10,148
yasouser
Author by

yasouser

yet another stack overflow user :)

Updated on June 05, 2022

Comments

  • yasouser
    yasouser almost 2 years

    I have my project in the following path: ~/work/my-proj. Inside the project folder I created a .proj-ctags folder and issued the following command to create the tag file:

    ctags -a -R -f .proj-ctags/.tags --exclude=@./.proj-ctags/ctags-exclude-list *
    

    In my ~/.vimrc I also added the path to the tags file. When I open a file in ~/work/my-proj and press Ctrl-] by having the cursor on a function name or variable name, I get

    E257: cstag - tag not found.
    

    Can some one let me know whats wrong in my setup?

    Thanks for your time.

    Cheers...