Search the web
Sign In
New User? Sign Up
taglist · Vim taglist (source browser) plugin
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
paths in tags file, exuberant ctags [win xp] on cygwin   Message List  
Reply | Forward Message #424 of 448 |
Re: paths in tags file, exuberant ctags [win xp] on cygwin

Got answer from vim_use Google Group:
http://groups.google.com/group/vim_use/browse_thread/thread/eb9892ad08345489

> The cygwin version of ctags produces filenames with slashes. If you
> use only relative paths, i.e. if you run the ctags command from the
> projects' top directory and save the tags file there, you get tags
> file that should be useable with windows gvim & cygwin. You can use
> multiple tags files in vim.

With this in mind, I re-ran my tags commands (from Cygwin) in the following way,
to ensure the tags files get created in the same directory that the source files
are within:
cd 'C:\rob\apps\java\jdksrc\jdk6.14'
ctags -V -a -f '.tags' --language-force=java -R
cd 'C:\rob\work\projects\nd\ford\tp07\rtb\src\java'
ctags -V -f '.tags' --language-force=java -R

And then added the following to my .vimrc, using Cygwin paths (symbolic links I
had made):
autocmd FileType java set
tags=/apps/java/jdksrc/jdk6.14/.tags,/wd/src/java/.tags

Now my tags work nicely - thank you very much!

Rob
:)




Mon Jul 27, 2009 1:23 am

robertmarkbram
Offline Offline
Send Email Send Email

Forward
Message #424 of 448 |
Expand Messages Author Sort by Date

Hi All, I am a bit confused. Using Exuberant Ctags I can generate tags files for Java source, but the paths are generated as Windows paths, which vim on Cygwin...
Robert Mark Bram
robertmarkbram
Offline Send Email
Jul 24, 2009
2:44 am

Got answer from vim_use Google Group: http://groups.google.com/group/vim_use/browse_thread/thread/eb9892ad08345489 ... With this in mind, I re-ran my tags...
Robert Mark Bram
robertmarkbram
Offline Send Email
Jul 27, 2009
1:25 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help