vim – 除了Windows上的C/C++之外,还有其他语言的CScope样式源浏览器吗?

我对可以插入Vim的工具特别感兴趣,允许CScope样式的源浏览(1-2个击键命令定位函数定义,调用者,全局符号等),除了C/C++之外的语言,如 Java和C# (因为Vim和Cscope已经非常适合浏览C/C++).我对基于IDE的工具不感兴趣,因为我知道Microsoft和其他供应商已经在处理这个空间 – 我更喜欢使用Vim进行编辑和浏览,但不知道为C#和/或Java提供的工具与CScope相同的权力.

这个问题的原始答案包括一个指向CSWrapper应用程序的指针,它显然修复了一些用户体验Vim和CScope的错误.但是,我的Vim / CScope安装工作正常;我只是想扩展功能,允许使用Vim编辑其他语言的代码.

CScope适用于Java.

http://cscope.sourceforge.net/cscope_vim_tutorial.html

Although Cscope was originally intended only for use with C code,it’s
actually a very flexible tool that works well with languages like C++
and Java. You can think of it as a generic ‘grep’ database,with the
ability to recognize certain additional constructs like function calls
and variable definitions. By default Cscope only parses C,lex,and
yacc files (.c,.h,.l,.y) in the current directory (and
subdirectories,if you pass the -R flag),and there’s currently no way
to change that list of file extensions (yes,we ought to change that).
So instead you have to make a list of the files that you want to
parse,and call it ‘cscope.files’ (you can call it anything you want
if you invoke ‘cscope -i foofile’). An easy (and very flexible) way to
do this is via the trusty Unix ‘find’ command:

find . -name '*.java' > cscope.files

Now run ‘cscope -b’ to rebuild the database (the -b just builds the database without launching the Cscope GUI),and you’ll be able to browse all the symbols in your Java files. Apparently there are folks out there using Cscope to browse and edit large volumes of documentation files,which shows how flexible Cscope’s parser is.

相关文章

解决方案:解决linux下vim乱码的情况:(修改vimrc的内容)全...
Linuxvi/vim所有的UnixLike系统都会内建vi文书编辑器,其他的...
      vim正则匹配:空行:/^$/  /^[\t]*$/注释...
$select-editorSelectaneditor.Tochangelater,run'sele...
上次手贱忘了保存,这次就简单做个备忘吧,把踩过的坑记一下...
Linux之文本编译器小结vim的优势所有的UNIX-LIKE习通都会内置...