Eclipse 中的 vim 命令
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28793/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
vim commands in Eclipse
提问by Craig H
I have been doing some java development lately and have started using Eclipse. For the most part, I think it is great, but being a C/C++ guy used to doing all of his editing in vim, I find myself needlessly hitting the Esc key over and over.
我最近一直在做一些java开发,并开始使用Eclipse。在大多数情况下,我认为它很棒,但是作为一个习惯于在 vim 中进行所有编辑的 C/C++ 人,我发现自己不必要地一遍又一遍地按 Esc 键。
It would be really nice if I got all the nice features of Eclipse, but still could do basic editing the same way I can in vim. Anyone know of any Eclipse pluggins that would help with this?
如果我获得了 Eclipse 的所有优秀功能,那就太好了,但仍然可以像在 vim 中一样进行基本编辑。任何人都知道任何可以帮助解决此问题的 Eclipse 插件?
回答by Tobiasz Cudnik
an Eclipse plugin which acts as a wrapper for Eclipse text editors to provide a Vim-like input scheme for moving around and editing text.
Unlike other plugins which embed Vim in Eclipse, Vrapper imitates the behaviour of Vim while still using whatever editor you have opened in the workbench. The goal is to have the comfort and ease which comes with the different modes, complex commands and count/operator/motion combinations which are the key features behind editing with Vim, while preserving the powerful features of the different Eclipse text editors, like code generation and refactoring...
一个 Eclipse 插件,它充当 Eclipse 文本编辑器的包装器,为移动和编辑文本提供类似 Vim 的输入方案。
与在 Eclipse 中嵌入 Vim 的其他插件不同,Vrapper 模仿 Vim 的行为,同时仍然使用您在工作台中打开的任何编辑器。目标是获得不同模式、复杂命令和计数/运算符/动作组合带来的舒适性和易用性,这些是使用 Vim 进行编辑的关键功能,同时保留不同 Eclipse 文本编辑器的强大功能,如代码生成和重构...
回答by Brendon-Van-Heyzen
There is this plugin that costs $20+ http://satokar.com/viplugin/
这个插件需要 20 美元以上 http://satokar.com/viplugin/
I use it and it works great, you've got basic vi movement commands and a set of others.
我使用它并且效果很好,您已经获得了基本的 vi 移动命令和一组其他命令。
Here is an open source, free plugin but i've never been able to get it working (i'm on a mac).
这是一个开源的免费插件,但我一直无法让它工作(我使用的是 mac)。
http://sourceforge.net/projects/vimplugin/
http://sourceforge.net/projects/vimplugin/
You can also go the other way and get eclipse code completion inside vim. http://eclim.sourceforge.net/You basically run an instance of Eclipse and you will be working inside vim. They just released a version compatible with Eclipse 3.4.
您也可以采用另一种方式并在 vim 中完成 Eclipse 代码。 http://eclim.sourceforge.net/您基本上运行了一个 Eclipse 实例,并且您将在 vim 中工作。他们刚刚发布了一个与 Eclipse 3.4 兼容的版本。
New plugin I've started using https://marketplace.eclipse.org/content/viable-vim-eclipse
我已经开始使用https://marketplace.eclipse.org/content/viable-vim-eclipse 的新插件
回答by ldog
Viablehas pretty much what you are looking for along with some extra features which none of the other plugins for eclipse seem to have, like some support for visual block mode, command line history, window splitting, and piping external commands.
Viable拥有您正在寻找的几乎所有内容以及一些其他 eclipse 插件似乎都没有的额外功能,例如对可视块模式、命令行历史记录、窗口拆分和管道外部命令的一些支持。
It is pay ($15.00 CAD) but free to tree with all the features. I personally like it better than the other solutions.
它是付费的(15.00 加元),但可以免费使用所有功能进行构建。我个人比其他解决方案更喜欢它。

