I usually open a vim for each project from a terminal where a $PROJ env
variable stores the project directory.
Then in .vimrc:
set tags+=$PROJ/tags

hth,
L.

On Fri, Feb 19, 2010 at 9:18 AM, Karthik Kashyap Thatipamula <
[email protected]> wrote:

> Hi All,
>
> I have multiple projects in my work directory and  for each project i
> have a tags file.
> In my vimrc i have an option to load my tags like
> :set tags=./tags,tags,~/work/prj1/src/tags
>
> Now i want to set this value dynamically depending on the project in
> which i open the source file.
> So if i open a file in ~/work/prj1/src/..  i should load the  ~/work/
> prj1/src/tags file  and when i open a file in ~/work/prj2/src/... i
> should load the ~/work/prj2/src/tags file.
>
> How can i do this in vim.
>
> Any pointers would be helpful.
>
>
> --Thanks
> Karthik
>
> --
> You received this message from the "vim_use" maillist.
> For more information, visit http://www.vim.org/maillist.php

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

Reply via email to