cscope_helper.vim : Loads and updates cscope.out when gvim/vim is invoked in subdirectories.
script karma |
Rating 0/0,
Downloaded by 185 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Dan Nygren |
|
script type |
utility |
|
description |
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
functions.
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 ). |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.9.171
|