cscope quickfix


Ⅰ. 插件描述

enables to use cscope with quickfix.

Ⅱ. 基本信息

创建日期:  2003-12-21
使用用户:  4
Github星:  2
插件作者:  k kino

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/cscope-quickfix'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/cscope-quickfix'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/cscope-quickfix'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/cscope-quickfix

Ⅳ. 文档说明

Overview

This script enables to use cscope with quickfix.

Preparation

You must prepare cscope and cscope database (cscope.out file).
cscope is a tag tool like ctags, but unlike ctags, it is a cross referencing tool.
If you don't know about cscope see:
:help cscope
http://cscope.sourceforge.net/
http://iamphet.nm.ru/cscope/ (Win32)

Feature 1

This script adds a command ":Cscope", which is very similar to ":cscope find" command. But, this ":Cscope" command can be used with quickfix, and isn't needed cscope connection. So, you don't have to install vim with --enable-cscope.

Feature 2

This script adds keymap macro as follows:
<C-> s: Find this C symbol
<C-> g: Find this definition
<C-> d: Find functions called by this function
<C-> c: Find functions calling this function
<C-> t: Find this text string
<C-> e: Find this egrep pattern
<C-> f: Find this file
<C-> i: Find files #including this file
"this" means <cword> or <cfile> on the cursor.

Feature 3

This script adds Tools and Popup menu as follows:
"Symbols": Find this C symbol
"Defines": Find this definition
"Calls": Find functions called by this function
"Globals": Find functions calling this function
"Texts": Find this text string
"Egrep": Find this egrep pattern
"File": Find this file
"Includes": Find files #including this file
"Update cscope.out"

Function

RunCscope({type}, {pattern} [,{file}])

Command

Cscope {type} {pattern} [{file}]

Variables

0: disable, 1: enable
g:Cscope_OpenQuickfixWindow (default: 1)
g:Cscope_JumpError (default: 1)
g:Cscope_Keymap (default: 1)
g:Cscope_PopupMenu (default: 0)
g:Cscope_ToolMenu (default: 1)

添加新评论