bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regarding gtags.vim improvements


From: Ritesh Banerjee
Subject: Re: Regarding gtags.vim improvements
Date: Sun, 6 Apr 2008 01:01:38 -0700 (PDT)

Hi,
   the gtags.vim script I attached earlier had some minor issues
* Not nice handling of  tag not found condition (not silent)
* the copen was below the caddexpr and cn, so swapped the blocks.

Works much better for me now.. Hope, this is useful for updating official gtags.vim and improving it

Regards,
Ritesh

----- Original Message ----
From: Ritesh Banerjee <address@hidden>
To: address@hidden; address@hidden
Cc: address@hidden
Sent: Saturday, April 5, 2008 11:33:18 PM
Subject: Regarding gtags.cim improvements

Hi Shigio san,
  thanks for the wonderful global tool (esp. the latest very fast versions). I used global and gtags.vim on Windows, and had 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.

Another change I did (since the default global format is wasteful in printing the pattern search on each line) is to change the following wrt errorformat 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 previous execution lines from the "system" function call, and added in its place
-----
cex! printf("Global:Searching [-%s] for [%s]", option, pattern)
caddex! system(cmd)
-----

Please find my gtags.vim with the commented lines for the old method and its change. I hope this makes gtags.vim work on windows and linux (w/o requirement 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.



You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.

Attachment: gtags.vim
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]