I am not sure if this is your problem, but...

You can create your tags file with the following command to ctags tool:

  ctags -f out_put/path/file %--c++-kinds=+p --fields=+iaS --extra=+q
  --tag-relative=yes sources/path/*

This is the way  I use it in a Windows XP  SP2 environment and GVim.  Usually I
enter this  command line in a  directory above the directory  where the sources
are (I have a common directory structure for all my projects).  But this is not
really relevant if you set the correct target and source directories and path.

If you set the  'tags'  option  correctly  Vim  (of  GVim)  will know where the
sources are.  See:

:help tag-commands

Alessandro Antonello



2009/6/15 WL <[email protected]>:
>
> Hi,
>
> Up until a month ago I used tags by generating a tags file and placing
> it in the root directory of my project. Then I would open vim from
> this directory and searching for tags (ctrl+[) was working well.
> I changed that when I installed the omni complete plugin. The
> instructions for installing it suggests putting the tags file in a
> fixed location so I put my tags file in ~/.vim/tags.
> Now when I open VIM and try to get to a tag (ctrl+[) I get an error
> that the file was not found as follows:
>  "E429: File "/users/yizaq/.vim/tags/long/path/to/file.h" does not
> exist"
> The thing is that the path to get to this file, given that I fired up
> VIM from the projects root dir is /long/path/to/file.h
> the added prefix of the tags location is evidently causing this error.
>
> My question is whether it is possible to change that via configuration/
> settings?- I can always just keep a local copy of the tags file in the
> root dir of the project and choose this match as a workaround but I'd
> like to better understand and handle this.
>
> Thanks!
> Yosi
> >
>

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

Reply via email to