sponsor Vim development Vim logo Vim Book Ad

GtagsClient : A client for Google Gtags

 script karma  Rating 12/3, Downloaded by 1153  Comments, bugs, improvements  Vim wiki

created by
Edward Fox
 
script type
utility
 
description
Google Gtags is an extension to GNU Emacs and X-Emacs TAGS functionality, with a server-side component that narrows down the view of a potentially large TAGS file and serves the narrowed view over the wire for better performance. Google Gtags could be downloaded from http://code.google.com/p/google-gtags/ .

This plugin is a Vim client to Googe Gtags. With this plugin, you could easily set up many projects in your workstation, and use different Gtags servers in different projects automatically. The only thing you should do is putting a text file named ".gtags" in the project root directory, write the servers' information in this file, one line per server. The description format is:

language,type,hostname,port

For example:

c++,definition,my.server.org,8928
c++,callgraph,my.server.org,8929
python,definition,my.server.org,8930
python,callgraph,my.server.org,8931

Then when you open any files under this directory (including all sub directories), your Vim will use these servers for tags looking up.

The server auto-selection doesn't work with "mixer" feature.  So if you want to use the server auto-selection feature, you should disable the mixer feature by typing ":let g:google_tags_use_mixer=0", or put the following lines in your .vimrc.

" Gtags
let g:google_tags_use_mixer=0
 
install details
This plugin is compressed in VimBall format. So you may need to install the latest version of vimscript #1502 first.

Then the only thing you should do is just downloading the Vimball, opening it in Vim and typing this command followed by an enter in your Vim:

:so %
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
GtagsClient.vba.gz 0.12 2009-04-09 7.0 Edward Fox Upgraded from the upstream, using google-gtags 2.0.
GtagsClient.vba.gz 0.11 2007-08-08 7.0 Edward Fox Added "GetLatestVimScripts" support so that you could obtain the latest updated version of this script automatically with the help of vimscript #642.
GtagsClient.vba.gz 0.1 2007-08-08 7.0 Edward Fox Initial upload
ip used for rating: 18.212.120.195

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN