sponsor Vim development Vim logo Vim Book Ad

cscope_win : Display cscope output in a separate window similar to emacs

 script karma  Rating 16/14, Downloaded by 2305  Comments, bugs, improvements  Vim wiki

created by
Shivakumar T
 
script type
utility
 
description
This plugin is a c source code browser which uses the standard cscope utility. It is similar to the csqf option provided in vim. But it has an additional advantage of maintaining the tag stacks which is not available while using csqf.
This script doesn't create a cscope connection. The user needs to create a cscope connection before using this script.
It is very much similar to the cscope window of emacs/xemacs.
 
install details
copy it to 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
cscope_win.vim 2.0 2006-03-10 6.0 Shivakumar T The new cscope_win plugin doesn't require cscope support in vim. It directly invokes the cscope utility thus having more flexibilty in displaying the results in a more organised fashion. It also requires the sort utility. All cscope commands are accessed through the "CS" command. The suboptions to this command are same as VIM's cscope interface commands.
Type :CS help for a list of supported options.
-------------------------------------------------------------------------------------
The following options are provided to configure the cscope plugin.

g:csAppendResults: Option to specify whether new search results should be appended to the previous results
0 => Don't append
1 => Append

g:csMaxConn: Option to specify the maximum number of cscope connections

g:csCaseSensitive: Option to specify whether search should be case sensitive
1  => case sensitive
0  => case insensitive
-1 => decide based on 'ignorecase' option in vim

g:csWinSize: Option to specify the cscope window height

The following key mapings are provided to invoke the cscope plugin
<CTRL-\>s: Find this C symbol
<CTRL-\>g  Find this definition
<CTRL-\>d  Find functions called by this function
<CTRL-\>c  Find functions calling this function
<CTRL-\>t  Find assignments to
<CTRL-\>e  Find this egrep pattern
<CTRL-\>f  Find this file
<CTRL-\>i  Find files #including this file

<CTRL-\>\: Toggle the option to append or clear the search results

ip used for rating: 3.81.72.247

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.
   
Vim at Github