sponsor Vim development Vim logo Vim Book Ad

cscope_helper.vim : Loads and updates cscope.out when gvim/vim is invoked in subdirectories.

 script karma  Rating 0/0, Downloaded by 49  Comments, bugs, improvements  Vim wiki

created by
Dan Nygren
script type
This Vim plugin is based on prior work from a number of authors. See the
cscope_helper.vim comment header block for details.

A prerequisite for use is that an initial Cscope database has been generated
in the base directory of the source code file tree. To do so, Cscope can be
executed on the command line, or a script like cscope_db_gen can be used
to generate the database. See https://github.com/dnygren/cscope_db_gen
for an example of how to generate a Cscope database for C/C++.

This plugin will automatically load a cscope.out database (created manually in
the base directory of a source code file tree) into Vim when you open a file.

It performs a search starting at the directory that the edited file is in,
checking the parent directories until it finds the cscope.out file. Therefore
you can start editing a file deep in a project directory, and it will find the
correct Cscope database. It will also automatically update the Cscope database
after file saves. If new files are created, the cscope.out database must be
recreated manually.

Keystroke macros and a pull down menu are provided to invoke the Cscope

A cheatsheet is provided to assist in executing the keystroke macros.
install details
Save this file in your plugin directory (e.g. ~/.vim/plugin/cscope_helper.vim ).

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
cscope_helper.tar.gz 1.0 2022-08-04 8.1 Dan Nygren Initial upload
ip used for rating:

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.