All Projects → vim-scripts → Cscope.vim

vim-scripts / Cscope.vim

create cscope database and connect to existing proper database automatically.

Labels

Projects that are alternatives of or similar to Cscope.vim

Slack Memo Vim
Simple memo manager with Vim using Slack.
Stars: ✭ 40 (-18.37%)
Mutual labels:  viml
Vim Textobj Lastpat
Vim plugin: Text objects for the last searched pattern
Stars: ✭ 42 (-14.29%)
Mutual labels:  viml
Plaintasks.vim
An implementation of Sublime's PlainTasks plugin for Vim
Stars: ✭ 45 (-8.16%)
Mutual labels:  viml
Minimum Awesome
A Vim setup that will get you into Vim and make it so that you don't want to pull your hair out.
Stars: ✭ 40 (-18.37%)
Mutual labels:  viml
Vimstuff
Various bits and pieces that work with Vim
Stars: ✭ 42 (-14.29%)
Mutual labels:  viml
Vimrc
💺 Options for my preferred text editor.
Stars: ✭ 43 (-12.24%)
Mutual labels:  viml
Github Commit Comment.vim
Vim Plugin for Commit Comment of GitHub
Stars: ✭ 39 (-20.41%)
Mutual labels:  viml
Vim Smartword
Vim plugin: Smart motions on words
Stars: ✭ 48 (-2.04%)
Mutual labels:  viml
Vimenv
Configure Vim environment
Stars: ✭ 42 (-14.29%)
Mutual labels:  viml
Arua Meta
Standards, RFCs and discussion of the Arua language
Stars: ✭ 45 (-8.16%)
Mutual labels:  viml
Vim Colors duotones
deprecated - please use Base2Tone-vim
Stars: ✭ 41 (-16.33%)
Mutual labels:  viml
Vim Hexedit
Hexedit is a plug-in under VIM, which is used to strengthen the hex editing ability of VIM.
Stars: ✭ 42 (-14.29%)
Mutual labels:  viml
Vimrc1234567
Personalized vimrc with C++, Markdown, and text editing at its core.
Stars: ✭ 44 (-10.2%)
Mutual labels:  viml
Php Foldexpr.vim
Vim folding for PHP with foldexpr
Stars: ✭ 40 (-18.37%)
Mutual labels:  viml
Unite Colorscheme
A unite.vim plugin
Stars: ✭ 45 (-8.16%)
Mutual labels:  viml
Env
Stars: ✭ 39 (-20.41%)
Mutual labels:  viml
One Dark.vim
A vim version of Atom's gorgeous one-dark color scheme
Stars: ✭ 43 (-12.24%)
Mutual labels:  viml
Vim Js Indent
JavaScript indentation for VIM
Stars: ✭ 49 (+0%)
Mutual labels:  viml
Vim Debugger
🐾 Vim script debugger 🐛
Stars: ✭ 47 (-4.08%)
Mutual labels:  viml
Vim Grepper
👾 Helps you win at grep.
Stars: ✭ 1,030 (+2002.04%)
Mutual labels:  viml

This is a mirror of http://www.vim.org/scripts/script.php?script_id=4082

Introduction

Cscove(new name for this plugin, since cscope.vim is used too widely.) is a smart cscope helper for vim.

It will try to find a proper cscope database for current file, then connect to it. If there is no proper cscope database for current file, you are prompted to specify a folder with a string like --

Can not find proper cscope db, please input a path to create cscope db for.

Then the plugin will create cscope database for you, connect to it, and find what you want. The found result will be listed in a location list window. Next time when you open the same file or other file that the cscope database can be used for, the plugin will connect to the cscope database automatically. You need not take care of anything about cscope database.

When you have a file edited/added in those folders for which cscope databases have been created, cscove will automatically update the corresponding database.

Cscove frees you from creating/connecting/updating cscope database, let you focus on code browsing.

Example settings

The default key mappings has been removed from the plugin itself, since users may prefer different choices. So to use the plugin, you must define your own key mappings first.

Below is the minimum key mappings.

nnoremap <leader>fa :call cscope#findInteractive(expand('<cword>'))<CR>
nnoremap <leader>l :call ToggleLocationList()<CR>

Some optional key mappings to search directly.

" s: Find this C symbol
nnoremap  <leader>fs :call cscope#find('s', expand('<cword>'))<CR>
" g: Find this definition
nnoremap  <leader>fg :call cscope#find('g', expand('<cword>'))<CR>
" d: Find functions called by this function
nnoremap  <leader>fd :call cscope#find('d', expand('<cword>'))<CR>
" c: Find functions calling this function
nnoremap  <leader>fc :call cscope#find('c', expand('<cword>'))<CR>
" t: Find this text string
nnoremap  <leader>ft :call cscope#find('t', expand('<cword>'))<CR>
" e: Find this egrep pattern
nnoremap  <leader>fe :call cscope#find('e', expand('<cword>'))<CR>
" f: Find this file
nnoremap  <leader>ff :call cscope#find('f', expand('<cword>'))<CR>
" i: Find files #including this file
nnoremap  <leader>fi :call cscope#find('i', expand('<cword>'))<CR>

Screencast

Please note that line number changes in location list after file saved. cscove.vim

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].