Giter Site home page Giter Site logo

cscope-maps's Introduction

cscope-maps

Just old good cscope maps plugin for vim, taken from [1]. Made a mirror just to use it in unified way with vim package manager. This repository has some extra improvements on top of original plugin.

Description

This plugin adds some boilerplate settings for vim's cscope interface, plus some keyboard mappings that I've found useful.

These key maps use multiple keystrokes (2 or 3 keys). If you find that vim keeps timing you out before you can complete them, try changing your timeout settings in plugin file.

For more details please refer to [2].

Changes

Next changes are made in this repository comparing to original plugin:

  • Add key binding to search for C structure (Ctrl-S), in case the structure is defined using K&R style, e.g.: struct abc {
  • Use Ctrl-Space key binding to split vertically (as opposed to horizontal split in original plugin). To split horizontally, use Ctrl-Space-Space.
  • If cscope.out file is missing in current directory, try to look for it in upper directories
  • Fix some typos

Installation

  • vim 8: Stick this file in ~/.vim/pack/<dir>/start/cscope/plugin/ where <dir> is any arbitrary name. Lookup Vim8 packages for more details.
  • vim 6: Stick this file in your ~/.vim/plugin directory (or in a 'plugin' directory in some other directory that is in your 'runtimepath'.
  • vim 5: Stick this file somewhere and 'source cscope.vim' it from your ~/.vimrc file (or cut and paste it into your .vimrc).

[1] http://cscope.sourceforge.net/cscope_maps.vim

[2] http://cscope.sourceforge.net/cscope_vim_tutorial.html

cscope-maps's People

Contributors

joe-skb7 avatar pdietl avatar dtngn 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.