mirror of
https://github.com/mhinz/vim-galore.git
synced 2025-02-24 01:59:28 +08:00
Cscope: only supports C, C++, Java
This commit is contained in:
parent
e6b4150a00
commit
b0dee52a9b
10
README.md
10
README.md
@ -1640,9 +1640,9 @@ which is fine for scripts, but when doing it on the fly, I find it easier to use
|
|||||||
|
|
||||||
#### Cscope
|
#### Cscope
|
||||||
|
|
||||||
[Cscope](http://cscope.sourceforge.net/) is a better
|
[Cscope](http://cscope.sourceforge.net/) does more things than
|
||||||
[ctags](http://ctags.sourceforge.net/) and supports [quite some
|
[ctags](http://ctags.sourceforge.net/), but only supports C (and C++ and Java to
|
||||||
languages](http://ctags.sourceforge.net/languages.html).
|
some extent).
|
||||||
|
|
||||||
Whereas a tags file only knows where a symbol was defined, a cscope database
|
Whereas a tags file only knows where a symbol was defined, a cscope database
|
||||||
knows much more about your data:
|
knows much more about your data:
|
||||||
@ -1670,10 +1670,10 @@ This will create 3 files: `cscope{,.in,.po}.out` in the current working
|
|||||||
directory. Think of them as your database.
|
directory. Think of them as your database.
|
||||||
|
|
||||||
Unfortunately `cscope` only analyzes `*.[c|h|y|l]` files by default. If you want
|
Unfortunately `cscope` only analyzes `*.[c|h|y|l]` files by default. If you want
|
||||||
to use cscope for a Ruby project instead, do this:
|
to use cscope for a Java project instead, do this:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ find . -name "*.rb" > cscope.files
|
$ find . -name "*.java" > cscope.files
|
||||||
$ cscope -bq
|
$ cscope -bq
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user