yasouser
yasouser

Reputation: 5177

vim ctags setup

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...

Upvotes: 4

Views: 10393

Answers (1)

Benoit
Benoit

Reputation: 79185

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?

Upvotes: 3

Related Questions