Vim的omnicompletion的Java [英] Vim omnicompletion for Java

查看:130
本文介绍了Vim的omnicompletion的Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过关于Vim的想像中的巨大omnicompletion博客乱堆,然而不管我做什么,我不能让它满意的工作。我花了好长时间才弄清楚发现的ctags的版本是pinstalled我的系统上是emacs的1 $ P $,并且没有足够的--recurse选项,但现在我已经在我的副本上运行的ctags-旺盛的OpenJDK的来源,试图获得某种code完成的打算时,Vim挂起每当我试着用[CN]或调用它的[Cp]。

I've read heaps of blogs on Vim's supposedly great omnicompletion, and yet no matter what I do I can't get it to work satisfactorily. It took me ages to figure discover that the version of ctags that is preinstalled on my system was the emacs one, and didn't have the --recurse option, but now that I've run ctags-exuberant on my copy of the OpenJDK sources to attempt to get some kind of code completion going, Vim hangs whenever I try to invoke it with [C-n] or [C-p].

我真正想要的是什么,就像在Eclipse中code完成;我喜欢的Vim作为一个编辑器,但Eclipse的只是有这些额外的功能外的开箱即Vim似乎失败。用VI模式的Eclipse插件是不是特别有用对我来说,它是太多的内存和CPU猪的而没有任何用途的; eclim确实不是很喜欢我满意。

All I really want is something that works like the code completion in Eclipse; I like Vim as an editor, but Eclipse just has those extra features out-of-the-box which Vim seems to fail with. Eclipse with a vi-mode plugin wasn't particularly useful to me, and it is too much of a memory and CPU hog to be of any use; eclim doesn't quite like me either.

任何人都可以提出一个简单的方法来获得某种code完成的工作的Vim的实际工作?

Can anyone suggest a simpler way to get some kind of code completion working in Vim that actually works?

推荐答案

下面是一个VIMJDE功能:<一href=\"http://www.vim.org/scripts/script.php?script_id=1213\">http://www.vim.org/scripts/script.php?script_id=1213其中列出的功能之一是code完成(需要VIM 7.0)(适用于Java和JSP,标签库,HTML,XML,XSL,XSD工作)

Here is a "JDE" feature for vim: http://www.vim.org/scripts/script.php?script_id=1213 One of the listed features is "Code completion ( working for java and jsp,taglib,html,xml,xsl,xsd) (VIM 7.0 required) "

这是一个Java脚本自动完成:<一href=\"http://vim.sourceforge.net/scripts/script.php?script_id=1785\">http://vim.sourceforge.net/scripts/script.php?script_id=1785

And here is a Java autocompletion script: http://vim.sourceforge.net/scripts/script.php?script_id=1785

这一个是不是Java,但我发现它是相当清晰易懂;也许它可能是值得一读。这里是设置自动完成为Drupal的食谱。自定义awk脚本构建一个自动完成字典VIM。 <一href=\"http://www.thingy-ma-jig.co.uk/blog/18-08-2009/drupal-autocomplete-vim\">http://www.thingy-ma-jig.co.uk/blog/18-08-2009/drupal-autocomplete-vim

This one isn't Java, but I found it to be quite clear and understandable; perhaps it might be worth reading. Here is a recipe on setting up autocompletion for Drupal. A custom AWK script builds an autocompletion dictionary for vim. http://www.thingy-ma-jig.co.uk/blog/18-08-2009/drupal-autocomplete-vim

祝你好运。

这篇关于Vim的omnicompletion的Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆