Escolar Documentos
Profissional Documentos
Cultura Documentos
*cscove*
=============================================================================
1. ABOUT cscove ~
*cscove-about*
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.
=============================================================================
2. KEY MAPPINGS ~
*cscove-keymappings*
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.
=============================================================================
3. FUNCTIONS ~
*cscove-functions*
cscope#find({querytype}, {pattern})
search your {pattern} with {querytype} in the database suitable
for current file.
cscope#findInteractive({pattern})
provide an interactive interface for finding what you want.
cscope#updateDB()
update all existing cscope databases in case that you disable cscope
database auto update.
ToggleLocationList()
toggle the location list for found results.
=============================================================================
4. Commands ~
*cscove-commands*
You may need these commands sometimes.
*CscopeList*
List all existing cscope databases that cscove has created for you.
:CscopeList
ID LOADTIMES PATH
*1337668712 3 /works/vim/src
Remove all existing cscope databases that cscove has created for you.
:CscopeClear
=============================================================================
5. OPTIONS ~
*cscove-options*
*'g:cscope_open_location'*
Use this option to stop opening location list after searching
let g:cscope_open_location = 0
*'g:cscope_auto_update'*
Use this option to disable cscope database auto update.
let g:cscope_auto_update = 0
*'g:cscope_cmd'*
Use the option to specify the path to cscope excutalbe, if it is not in PATH.
let g:cscope_cmd = '/home/brook/bin/cscope'
*'g:cscope_ignore_files'*
Specify the extentions you want to ignore when building cscope database, the
default value is enough for most users.
let g:cscope_ignore_files = '\.Z$\|\.zip$\|\.zipx$\|\.lib'
*'g:cscope_preload_path'*
Preload path settings help you to load some common libraries by default. For
example,
let g:cscope_preload_path="/usr/include/c++/;/works/phplib/trunk/php"
" vim: set expandtab sts=2 ts=2 sw=2 tw=78 ft=help norl: