Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A vim plugin to help you to create/update cscope database and connect to existing proper database automatically.

NotificationsYou must be signed in to change notification settings

brookhong/cscope.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

It will try to find a proper cscope database for current file, then connect toit. If there is no proper cscope database for current file, you are prompted tospecify 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 findwhat you want. The found result will be listed in a location list window. Nexttime when you open the same file or other file that the cscope database can beused for, the plugin will connect to the cscope database automatically. Youneed not take care of anything about cscope database.

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

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

Example settings

The default key mappings has been removed from the plugin itself, since usersmay 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 CscopeFindInteractive(expand('<cword>'))<CR>nnoremap <leader>l :call ToggleLocationList()<CR>

Some optional key mappings to search directly.

" s: Find this C symbolnnoremap  <leader>fs :call CscopeFind('s', expand('<cword>'))<CR>" g: Find this definitionnnoremap  <leader>fg :call CscopeFind('g', expand('<cword>'))<CR>" d: Find functions called by this functionnnoremap  <leader>fd :call CscopeFind('d', expand('<cword>'))<CR>" c: Find functions calling this functionnnoremap  <leader>fc :call CscopeFind('c', expand('<cword>'))<CR>" t: Find this text stringnnoremap  <leader>ft :call CscopeFind('t', expand('<cword>'))<CR>" e: Find this egrep patternnnoremap  <leader>fe :call CscopeFind('e', expand('<cword>'))<CR>" f: Find this filennoremap  <leader>ff :call CscopeFind('f', expand('<cword>'))<CR>" i: Find files #including this filennoremap  <leader>fi :call CscopeFind('i', expand('<cword>'))<CR>

Screencast

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

About

A vim plugin to help you to create/update cscope database and connect to existing proper database automatically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp