简体   繁体   English

带有VIM集成的Java IDE,适用于来自C / C ++的人员

[英]Java IDE with VIM integration for someone coming from C/C++

I'm an experienced C/C++ programmer getting into Java and looking for a good IDE with VIM integration or a VIM plug-in that let me use the same key mappings for things like editing, cscope and omnicompletion functionality. 我是一名经验丰富的C / C ++程序员,他正在寻找一个带有VIM集成或VIM插件的优秀IDE,它让我可以使用相同的键映射来完成编辑,cscope和omnicompletion功能。 What I mean is that whatever native functionality is provided by the IDE can be mapped to the equivalent vim key bindings. 我的意思是,IDE提供的任何本机功能都可以映射到等效的vim键绑定。 It should run on both Windows or Linux. 它应该在Windows或Linux上运行。 I don't care if I have to pay for both the IDE and the plug-in as long as they meet my needs. 只要符合我的需要,我不在乎是否必须支付IDE和插件。

The most recent question I saw dealing with this type of question here on SO is over a year old and I'm sure the 'state of the art' has changed since then. 我在这里看到的关于此类问题的最新问题是一年多了,我确信自那时以来“最先进的”状态发生了变化。

I want to hear from people with actual hands on experiance with these IDEs and VIM plug-ins. 我希望听到有实际使用这些IDE和VIM插件的人的实际操作。

Why not just use VIM? 为什么不直接使用VIM?

You know exactly what it can do and how it can be extended, and it appears to be what you want anyway. 你确切地知道它可以做什么以及如何扩展它,它似乎是你想要的。

You will not be satisfied by any emulation as it will fall short, and with your current mindset you will not like having to learn a new editor. 你不会对任何仿真感到满意,因为它会达不到,而你现在的心态你不会喜欢学习新的编辑器。 It is, however, what I will recommend you to do. 但是,我会建议你做什么。 The things modern Java IDE's can do are miles above what VIM can do because they know your source intimately. 现代Java IDE可以做的事情远远高于VIM可以做的事情,因为他们非常了解您的来源。 You will benefit the most from an IDE if you use its default configuration, and I do not know any which wants to look like vi/vim. 如果您使用其默认配置,您将从IDE中受益最多,而且我不知道任何想要看起来像vi / vim。

When THAT is said, you might find http://ideavim.sourceforge.net/ interesting. 如果说,你可能会发现http://ideavim.sourceforge.net/很有趣。 IDEA is the only common place Java IDE left which makes money... IDEA是Java IDE唯一可以赚钱的常见地方......

There's a VI plugin for IntelliJ. IntelliJ有一个VI插件。 I've never used it, so can't comment on its userfriendliness, but IntelliJ itself is excellent. 我从来没有使用它,所以不能评论它的用户友好性,但IntelliJ本身非常好。

Recently when I've been coding Java at work I've been using vrapper It has some minor usability bugs and some missing features (such as cit) but it really seems to work well in just providing basic vi editing functionality. 最近,当我在工作中编写Java时,我一直在使用vrapper它有一些小的可用性错误和一些缺少的功能(例如cit)但它似乎在提供基本的vi编辑功能方面效果很好。

Ok, it seems I misread the original question a bit by looking too much at the other answers. 好吧,似乎我通过过多地看待其他答案而误解了原来的问题。 I don't really know how easily you can map Eclipse's native omnicompletion functionality to the corresponding vim mappings. 我真的不知道如何轻松地将Eclipse的本机omnicompletion功能映射到相应的vim映射。 However I think you can be very productive with the bindings provided by wrapper and by learning just a few of the most important coding assistance keys in Eclipse. 但是我认为你可以通过包装器提供的绑定以及学习Eclipse中一些最重要的编码辅助键来提高效率。

There might even be a Stackoverflow question about this but the most important shortcuts I've found are: 甚至可能有关于此问题的Stackoverflow问题,但我发现的最重要的快捷方式是:

  • ctrl+space for "omnicompletion" ctrl + space for“omnicompletion”
  • ctrl+1 for opening the menu of suggested quick fixes for an error or warning ctrl + 1用于打开错误或警告的建议快速修复菜单
  • shift+ctrl+t for opening a type shift + ctrl + t用于打开类型

I've been using the viplugin for eclipse (http://www.viplugin.com/viplugin/) 我一直在使用viplugin进行eclipse(http://www.viplugin.com/viplugin/)

It's quite good, fights a little bit with refactoring, but most of the main editing commands work. 它非常好,可以通过重构进行一些战斗,但大多数主要编辑命令都有效。 I still have to use vim for complex regex work, but I only have to do that about twice a year. 我仍然需要使用vim进行复杂的正则表达式工作,但我只需要每年两次这样做。

Unfortunately it's commercial (€15) and development seems to have slowed a lot. 不幸的是,这是商业(15欧元),发展似乎已经放缓了很多。 It seems to be currently more feature complete than vrapper, but I haven't tried that. 它目前似乎比vrapper功能更完整,但我还没有尝试过。

I'm also researching VIM / Eclipse integrations, and these seem most interesting: 我也在研究VIM / Eclipse集成,这些看起来最有趣:

(according to this Hacker News discussion and this other SO question ) (根据黑客新闻讨论其他SO问题

看起来有一个netbeans,(堆栈溢出线程) 是否可以在NetBeans中使用VI或VIM键映射?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM