sponsor Vim development Vim logo Vim Book Ad

autoload_cscope.vim : Script that will search for and load cscope.out databases automatically

 script karma  Rating 128/51, Downloaded by 4745    Comments, bugs, improvements  Vim wiki

created by
michael tilstra
 
script type
utility
 
description
This plugin will automatically load cscope.out databases into vim when you open a C file. (headers included)

It does a search starting at the directory that the file is in, and checking the parent directories until it find the cscope.out file.  The idea being that you can start editing a source file deep in a project dir, and it will find the correct cscope database a couple dirs up.

This version also creates some macros and a menu that can be useful.  If you don't like them, you can set g:autocscope_menus to 0 and they won't load.

 
install details
Just drop it into your plugin directory.
 

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
autoload_cscope.vim 0.5 2011-01-27 7.0 michael tilstra Dotan Halevi fixed the path handling when used on Windows systems.
autoload_cscope.vim 0.4 2010-11-15 6.0 michael tilstra Fixed a handful of typos. Including one pointed out by Prasun Ratn.
autoload_cscope.vim 0.3 2002-01-28 6.0 michael tilstra fixed the issue where it wasn't always finding the right place to start looking.
usnig the nifty fnamemodify() function saves a lot of crude I was trying to do by hand.
autoload_cscope.vim 0.2 2002-01-14 6.0 michael tilstra fixed up the Cycle_csdb function a bit.  still has a few little bugs.  but they don't seem to be life threatening.  (scan the file for FIXME to see them)
autoload_cscope.vim 0.1 2001-11-30 6.0 michael tilstra Initial upload
ip used for rating: 54.196.199.46

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.
   
SourceForge.net Logo