Run cscope command
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Run cscope command.
Prepared cscope connection
- Database
/example/cscope.out (connected)- Query g main
main.c:1: int main(void) { return 0; }
Command entered · ready to apply
Prepared cscope connection
- Database
/example/cscope.out (connected)- Query g main
main.c:1: int main(void) { return 0; }
Command line
- Typed text
:cscope show- Insertion offset
12
:cscope show lists the prepared active connection; no symbol query is needed.
Prepared cscope connection
- Database
/example/cscope.out (connected)- Query g main
main.c:1: int main(void) { return 0; }
Cscope connections
- Connection 0
/example/cscope.out (active)
Before & after
Before
Prepared cscope connection
- Database
/example/cscope.out (connected)- Query g main
main.c:1: int main(void) { return 0; }
After
Prepared cscope connection
- Database
/example/cscope.out (connected)- Query g main
main.c:1: int main(void) { return 0; }
Cscope connections
- Connection 0
/example/cscope.out (active)
Documentation-backed illustration. +cscope, cscope executable, and the connected example database; the panel omits nondeterministic process IDs. :cscope show lists the prepared active connection; no symbol query is needed. Primary help: :cscope.
alpha
beta
gammaCursor on line 1, column 1Details & Vim help
Run cscope command. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :cs[cope] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative. This command requires a Vim build with +cscope support and the corresponding runtime/library or external tool.