Brett Stahlman wrote: > > On Jan 19, 9:29 am, Torsten Andre <[email protected]> wrote: >> 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 > > Keep in mind that `./tags' specifies a tags file in the directory of > the current file, *not* (necessarily) the current directory. Ahh, that did the trick. I thought to know that ./tags is always relative to the pwd and not to the directory the open file is stored in. Problem fixed!
Thanks a lot! For > example, when you're editing some_subfile2, it would specify a tags > file within subfolder. If you want the current directory always to be > searched as well, include `tags' in the 'tags' option as well. > > :help tags-option > > Brett Stahlman >
-- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
