Giter Club home page Giter Club logo

vim-unite-cscope's Introduction

vim-unite-cscope

Uniting cscope with vim 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.

What it does?

  • Find this C symbol: ✓
  • Find this global definition: ✓
  • Find functions called by this function: ✓
  • Find functions calling this function: ✓
  • Find this text string: ✓
  • Change this text string: ✗
  • Find this egrep pattern: ✓
  • Find this file: ✓
  • Find files #including this file: ✓
  • Find assignments to this symbol: ✓

Set it up?

This package depends on:

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

Example:

  • With Vundle -
Plugin 'amitab/vim-unite-cscope'
  • With Pathogen
cd ~/.vim/bundle
git clone https://github.com/amitab/vim-unite-cscope
  • With Neobundle
NeoBundle 'Shougo/unite.vim'

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.

Usage

  1. In command palette, run::Unite cscope/find_this_symbol
  2. Then a prompt appears asking for an input
  3. Input your query and press enter

Screenshots

Input your search term: ScreenShot

Voila! Results: ScreenShot

Further Improvements?

  1. Add 'Change this text string' functionality

vim-unite-cscope's People

Contributors

amitab avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.