用Vim编程Java [英] Programming Java with Vim

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

问题描述

我在那里测试了很多编辑,但是Vim让我上瘾。我真的希望在我的所有编程中使用Vim。我只是试着开始学习Java编程语言,我有一本很大的书,我正试图为此目的开始阅读,但令人遗憾的是我没有Java编译器或.class文件阅读器(我认为称为JVM,但也许我只是一个菜鸟,我已经拥有它们但不知道它们是如何工作的。)

I have tested many editors out there, but Vim makes me addictive. I really wish to use Vim in all of my programming. I just tried to start learning the Java programming language and I have a huge book that I'm trying to start to read for that purpose, but the sad thing about it is that I don't have either a Java compiler or a .class file reader (called a JVM I think, but maybe I am just a noob too and I already have them but don't know how they work).

我不知道希望使用另一个编辑而不是Vim,这不是我的目的。我知道Vim可以调用外部命令进行编译,我可能要在我的_vimrc中输入一些东西让他这样做(我使用Windows Vista,很遗憾,我知道)但是我不知道该找什么,我有搜索了几天。周围的任何Vim爱好者专家可以帮我解决一下吗?我看到那个小Vim命令叫:javac,它让我很生气,知道它还没有工作......

I do not wish to use another editor than Vim, that is not my purpose. I know that Vim can call external commands to compile and that I might have to enter some stuff in my _vimrc to let him do so (I use Windows Vista, sad, I know) but I have no idea what to look for and I have searched for days. Any Vim-lovers experts around that could give me a hand out? I see that little Vim command called :javac and it pisses me off to know it's not working yet...

推荐答案

你需要 Java SE Development Kit(JDK)开发Java。从页面下载JDK 6 Update 14。修改您的路径以包含 bin 文件夹,以便您可以调用 javac ,Java编译器和 java 命令。您想学习的另一个工具是 ant ,它允许您一次编译多个文件,运行测试等。 。另请参阅为vi实现Java应用程序开发配置vi

You need Java SE Development Kit (JDK) to develop Java. Download JDK 6 Update 14 from the page. Modify your path to include bin folder so you can call javac, the Java compiler and java command. Another tool you wanna learn is ant, which lets you compile multiple files all at once, run tests, etc.. Also see Configure vi for Java application development.

编辑:添加指向在Windows上安装JDK后应该设置哪些必要的环境变量以及如何设置?

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

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