A.J.Mechelynck wrote:
Eric Roberts wrote:
Hello!
I seem to be having some difficulty in using tag files for a C
project. I've done some searching on the maillist with no progress.
I'm working under Win32, and here's what I have in my _vimrc
set tags+=c:\Projects\some_folder_name_here\tags
When I explore to a folder deeper into the tree (e.g.
c:\Projects\some_folder_name_here\some_other\something.c) and try to
jump to a tag, it complains that no tag file was found - and hence no
tags.
However, if I 'cd' into the c:\Projects\some_folder_name_here\ , and
then 'e' the file from that directory, I can properly jump to the
tag. Some of this source code is deeply nested in folders, so this
becomes a bit of a nuisance to do.
When I print tags by :set tags , it prints out the correct paths (the
defaults) and my additional path seperated by commas.
Thanks for your time in advance,
- Eric
Are there spaces in your "some_folder_name"? If there are, notice what
is said about that, both under ":help 'tags'" and about ":help
option-backslash". You may need to use prefix each space by three
backslashes, in order to get backslash-space in the option value,
because in 'tags' a plain space in the value is treated like a comma.
Alternately, you may use 8.3 folder names to avoid spaces altogether.
When you cd to the directory in question, the entry "tags" (without
quotes), which is part of the default value, finds your tagfile.
Best regards,
Tony.
Yeah I understood why I was getting the right tags file when I was in
the current directory. But I believe my problem would be the double
backslash issue. I'll find out tommorow!
Thanks a lot!
- Eric