Hi there,
I'm close to smashing my monitor at the wall, so please bare with me ;)

I have the problem that when I follow symbol from one file, everything
works fine, from another vim tells me that it cannot find the tag. So
how did I get here?

I have the following directory setup:
/project
   /some_file
   /tags
   /subfolder
        some_subfile1
        some_subfile2

I created the tags file using:
ctags -R `pwd`

Opening vim, just to make sure I set the tags option via
:set tags=./tags

The tags file includes a symbol A, a function which is defined in
some_subfile1. No when I open some_file:
vim some_file
and point the cursor to symbol A in some_file, which uses function A,
and hit <C-]>. vim opens some_subfile1 and jumps to the definition of
function A.

Now when I am in some_file and jump from that file to some_subfile2,
which may define a function B used in some_file, I get to some_subfile2
to the definition of B. So far so good.

When I am not in some_subfile2, as described previously, and move the
cursor to function A, which is being used in some_subfile2 as well, and
hit <C-]>, vim tells me that it cannot find the tag.

Is somehow clear what my problem is? I hope so. And if so, does someone
have an idea what goes wrong?

I checked the tags file and the symbol is defined just fine with the
absolute path pointing to the definition. It doesn't make any
differences if I use relative paths, same problem.

Thanks for your help!
Cheers,
Torsten




-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to