sponsor Vim development Vim logo Vim Book Ad

vim-unite-cscope : Use cscope within vim

 script karma  Rating 4/1, Downloaded by 909  Comments, bugs, improvements  Vim wiki

created by
Amitabh Das
 
script type
utility
 
description
Find this on github: https://www.github.com/amitab/vim-unite-cscope

Uniting cscope with vim. Instead of going into the csope UI, you just need to enter the search term and it will populate the vim-unite interface with the results.
This is a package similar to my other package (https://www.github.com/amitab/atom-cscope)

PS: I just learnt vim scripting recently and there may be mistakes/better way of doing things.
If you find any problems, please let me know.

1.  Find this C symbol:                         ✓
2.  Find this global definition:                ✓
3.  Find functions called by this function:     ✓
4.  Find functions calling this function:       ✓
5.  Find this text string:                      ✓
6.  Change this text string:                    ✗
7.  Find this egrep pattern:                    ✓
8.  Find this file:                             ✓
9.  Find files #including this file:            ✓
10. Find assignments to this symbol:            ✓
 
install details
This package depends on:
* vim-unite (https://github.com/Shougo/unite.vim)
* vim-proc (https://github.com/Shougo/vimproc.vim)

After you've installed the dependencies, you can install this package
with your favioure package manager.

Example:

1. With Vundle -
Plugin 'amitab/vim-unite-cscope'

2. With Pathogen
cd ~/.vim/bundle
git clone https://github.com/amitab/vim-unite-cscope

3. With Neobundle
NeoBundle 'amitab/vim-unite-cscope'

To generate cscope.out manually, in your project directory run:

find . -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" > cscope.files
cscope -q -R -b -i cscope.files

And then the package will be able to use the cscope.out file to generate results.
 

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
vim-unite-cscope.tar.gz 0.2.0 2015-12-16 7.0 Amitabh Das 1. Removed dynamic search due to lag
2. Use vimproc for improved speed
vim-unite-cscope.tar.gz 0.1.0 2015-12-16 7.0 Amitabh Das Initial upload
ip used for rating: 44.220.184.63

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