On Mon, Jun 15, 2009 at 5:49 PM, Alessandro Antonello wrote:
>
> Sorry! The command line to the ctags tool is:
>
> ctags -f out_put/path/file --c++-kinds=+p --fields=+iaS --extra=+q
> --tag-relative=yes sources/path/*
>
> I left a '%' sign in the preceding message in the middle of the command line.
>
Since I launch VIM from my projects root dir I figured I need to set
the relative paths of the tags to that so I create the tags using this
command:
[yi...@yizaq-lnx:Wed Jun 17:/path/projects/root/dir/]$ ctags -R
--c++-kinds=+p --fields=+iaS --extra=+q --languages=c++ -f tags .
--tag-relative=yes ./
I then moved the tags to .vim/tags/my_proj/
However the tags still have wrong path, see example:
# pri kind tag file
1 F f ParsedRequest /users/yizaq/.vim/tags/proj/path/to/file.h
class:ParsedRequest::ParsedRequest access:public signature:()
ParsedRequest::ParsedRequest()
2 F s ParsedRequest /users/yizaq/.vim/tags/proj/path/to/file.h
struct ParsedRequest
Choice number (<Enter> cancels): 2
E429: File "/users/yizaq/.vim/tags/proj/path/to/file" does not exist
Clearly, the path is wrong since it should be only proj/path/to/file.h
I'm probably missing something here. I read in the help that:
"
If the 'tagrelative' option is on (which is the default) and using a tag file
in another directory, file names in that tag file are relative to the
directory where the tag file is.
"
If that is the case then perhaps I should turn that option off. I
tried that but it didn't change the tag paths.
I created the tags using:
ctags -R --c++-kinds=+p --fields=+iaS --extra=+q --languages=c+
+ -f tags . --tag-relative=no
Then moved to the .vim/tags/proj but when searching the tag I get the
same result as above.
10x,
Yosi
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---