Hi,
1. Add
set tags=c:\projects\test\tags
to _vimrc file
2.
I'm using gvim on Windos XP too, when i faced this problem, i figured out
the solution using batch file to generate ctags file ,cscope database file
and lookup tag file automaticly.
I added
set tags=tags
cs add cscope.out
into _vimrc file so if i lunch gvim at the project root path, these files
are loaded.

so when i generate these file using batch file, i generate another .bat file
called project.bat with the content below:
start gvim
exit
then what i need is just to click project.bat in project root directory,
everything will be done automaticly.

I'm a beginner of VIM,  looking forward to better solution of you guys.

my batch file is list below:

@echo off
set path=%path%;C:\Program Files\Vim\vim72\utility;
time /t
echo !_TAG_FILE_SORTED    2    /0=unsorted, 1=sorted, 2=foldcase/ >filename
gfind . -not -regex ".*\.\(pdf\|elf\|doc\|o\|x12\)" -type f -printf
"%%f\t%%p\t1\n" >>filename
gsort filename >filenametag
del filename
ctags -R
cscope -Rb
time /t
echo start gvim >project.bat
echo exit >>project.bat
@echo on



2010/8/5 Jeri Raye <[email protected]>

Hi,
>
> I managed to creat a tag file.
> If that tag file is on location c:\projects\test how do I tell vim
> then that it should look there for tag information?
>
> Rgds,
> Jeri
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>




-- 
Thanks & Best Regards
Edward

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to