Hi Shigio san,
  thanks for the wonderful global tool (esp. thelatest very fast versions). I 
used global and gtags.vim on Windows, andhad faced problems with the default 
script.

The gtags.vim script only worked on windows if I changed the following line:
    let stuff = system(cmd . '>' . tmpfile) 
--->
    let stuff = system(cmd . '| tee ' . tmpfile)

Now, that of course, requires tee.exe (from cygwin or ming32) but works well.

Anotherchange I did (since the default global format is wasteful in printingthe 
pattern search on each line) is to change the following wrterrorformat and 
global cmdline.
    let cmd = 'global' . sep . '-tq' . option . sep . pattern
--->
    let cmd = 'global' . sep . '--result grep -q' . option . sep . pattern

This obviates the need to change the default errorformat :-)

Finally,to speed up the script processing, I commented out all 
previousexecution lines from the "system" function call, and added in its place
-----
cex! printf("Global:Searching [-%s] for [%s]", option, pattern)
caddex! system(cmd)
-----

Pleasefind my gtags.vim with the commented lines for the old method and 
itschange. I hope this makes gtags.vim work on windows and linux 
(w/orequirement of tee.exe) and is also faster and more informative ...

Regards,
Ritesh Banerjee



      
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

Attachment: gtags.vim
Description: Binary data

_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to