Shankar Chakkere's GLOBAL Page


home/ GLOBAL

Contents:

_________________________________________________________________

1. GLOBAL

I have ported the GLOBAL Version 4.5 source tag system to Win9x. I have tested it on Win98 DOS terminal.

[images/caution.gif]

I unzip the files using pkunzip -d glo45X.zip *.* c:\djgpp command, which restore Directory structure stored in .zip file

Visit my Cscope page.

Back To Contents _________________________________________________________________

2. Using GLOBAL with windows VIM

Unfortunately the VIM port of windows does not have the GLOBAL patch applied.

Fortunately you can use VIM s grep system to work with GLOBAL. First set up vim to use GLOBAL instead of reqular grep program.

  1. set grepprg=global\ -t
  2. set grepformat=%m\^I%f\^I%l Where: ^I is TAB
You can add the above in your _vimrc file. Here is the above setup which you can append to your _vimrc file.

First, you have to execute gtags at the root of the source tree. Gtags traverse subdirectories and make four databases at the root of the source tree.

Second, start the vim / gvim

Usage:

To go to function dc_power_test

:grep dc_power_test

To go to functions which calls dc_power_test

:grep -r dc_power_test

To go to any symbols other than function

:grep -s piptest

To go to any strings other than symbols

:grep -g \#ifdef

To locate a function starting as power

:grep ^power*

To locate all functions in *.cpp

:grep -f *.cpp

Once the results are parsed, vim loads the first file which matches the criteria and jumps to the appropriate line. You can then use the :cnext :clist etc. command to see the other matches or to jump around.

Following is the partial list of quickfix command that can be used on the result. For complete detail type :help quickfix in your editor.

For more information on where to get VIM and to set it up on WINDOWS goto to my Cscope page.

Note: Set the PATH appropriately in AUTOEXEC.BAT to point to your DJGPP binaries. I had problems with sort command found in c:\windows\command directory, I had to rename it before everything started working in GVIM.

_________________________________________________________________

3. Using GLOBAL with windows less viewer

I have applied the global patch to the GNU less viewer. I obtained the less source code from DJGPP and the patch file from tamacom.com.

Here is the LESS(file: lssg358b.zip) binary package in DJGPP format. The document is under doc/less directory.

Back To Contents _________________________________________________________________

You are Counter th guest on my page.

__________________________________________________________________
© Shankar Chakkere 2001. http://www.yahoo.com/shankara_c
Last Update : July 23, 2002 11:07:39 AM EDT Mail me if you have any suggestions.

images/vim.vialle.love.gif
images/73232.gif

This page is on http://www.geocities.com/shankara_c/global.html Back to Shankar's Home Page 1