Eclipse 中最有用的 VI/Vim 插件是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1766067/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:01:04  来源:igfitidea点击:

What is the most useable VI/Vim plugin for Eclipse?

eclipsevimvi

提问by Daniel Honig

I used to be a huge fan of Intelli-J and there is a fantastic VI plugin for Idea. Now I'm shifting to the Spring Source Tool Suite for my primary IDE and need to find a VI plugin that will allow me to work just as effectively.

我曾经是 Intelli-J 的忠实粉丝,Idea 有一个很棒的 VI 插件。现在,我正在转向用于我的主要 IDE 的 Spring Source Tool Suite,并需要找到一个 VI 插件,它可以让我同样有效地工作。

What plugin are people using?

人们使用什么插件?

采纳答案by Brian Agnew

I rate viPluginhighly enough to pay the small fee for the licensed edition (not licensing it means you get popups every so often, IIRC).

我对viPlugin 的评价足够高,可以支付许可版本的少量费用(不许可意味着您经常收到弹出窗口,IIRC)。

In my opinion it works better than the equivalent Intellij plugin.

在我看来,它比等效的 Intellij 插件效果更好。

回答by dls

I'm a bit late to this thread - but I wanted to throw in a vote for Vrapper. I used to work with the WindRiver Workbench IDE and I got used to the "Vim layer" it came with. WRW would push a Vim toggle button into the toolbar which allowed the user to activate/deactivate almost all standard Vim key bindings.

我对这个线程有点晚了 - 但我想投给Vrapper一票。我曾经使用 WindRiver Workbench IDE,并且习惯了它附带的“Vim 层”。WRW 会将 Vim 切换按钮推入工具栏,允许用户激活/停用几乎所有标准 Vim 键绑定。

When I moved back to vanilla Eclipse I spent quite a bit of time trying to find this same feature and eventually concluded that WindRiver wrote the feature from scratch because it didn't seem to exist. Today I found Vrapper, which pushes a very similar toggle switch into my Eclipse toolbar and seems to have a fairly complete set of Vim key bindings as well. Two nice things: (1) Vrapper can also be activated with a key stroke as with any other Eclipse feature, (2) Vrapper does not deactivate the contextual help that pops up during hover actions.

当我回到原版 Eclipse 时,我花了很多时间试图找到相同的功能,最终得出结论,WindRiver 是从头开始编写该功能的,因为它似乎并不存在。今天我找到了 Vrapper,它将一个非常相似的切换开关推入我的 Eclipse 工具栏,并且似乎也有一套相当完整的 Vim 键绑定。两件好事:(1) Vrapper 也可以像任何其他 Eclipse 功能一样通过击键激活,(2) Vrapper 不会停用在悬停操作期间弹出的上下文帮助。

回答by chetto

I am also throwing in a vote for Vrapper ( http://vrapper.sourceforge.net/home). I just started using Eclipse/CDT again for some C coding, and because Vrapper just emulates vi commands in the Eclipse workbench editor (instead of embedding VIM inside of eclipse), it appears to alter other Eclipse IDE functionality less. With vrapper my files end up with less unintentional h,j,k,l,/,? and line-breaks, that otherwise occur because my fingers forget they are not in vi. Vrapper doesn't have all the vi commands I want, but it is a big improvement over the Eclipse editor without Vrapper. It will be even better if they add some of their planned "future features", especially regular expression support.

我也投给 Vrapper ( http://vrapper.sourceforge.net/home)一票。我刚刚开始再次使用 Eclipse/CDT 进行一些 C 编码,因为 Vrapper 只是在 Eclipse 工作台编辑器中模拟 vi 命令(而不是在 Eclipse 中嵌入 VIM),它似乎对其他 Eclipse IDE 功能的改变较少。使用 vrapper,我的文件最终会减少无意的 h,j,k,l,/,? 和换行符,否则会发生,因为我的手指忘记了它们不在 vi 中。Vrapper 没有我想要的所有 vi 命令,但它比没有 Vrapper 的 Eclipse 编辑器有了很大的改进。如果他们添加一些他们计划中的“未来功能”,尤其是正则表达式支持,那就更好了。

回答by Leopd

I used to use vrapper, but a new plugin now has my vote and financial support. Check out viable at http://viableplugin.com/It's not free, but any professional developer's time is easily worth the $15.

我曾经使用 vrapper,但现在有一个新插件得到了我的投票和财政支持。在http://viableplugin.com/ 上查看可行。 它不是免费的,但任何专业开发人员的时间都值得 15 美元。

Viable actually supports regular expressions, which is a huge hole in vrapper. It also doesn't have a number of subtle bugs that vrapper has for basic copy/paste operations.

Viable 实际上支持正则表达式,这是 vrapper 的一个巨大漏洞。它也没有 vrapper 对基本复制/粘贴操作所具有的许多细微错误。

Viable appears to be fully dead as of mid 2014. :(

到 2014 年年中,Viable 似乎完全死了。:(

回答by Alex K

I'm using Eclipse J2EE JUNO R1 on Windows 7 x64.

我在 Windows 7 x64 上使用 Eclipse J2EE JUNO R1。

Only Vrapper works.

只有 Vrapper 有效。

  • viPlugin: I recently installed viPlugin 2.10.0 on Eclipse Juno via Eclipse marketplace. The result? Don't try it at home because Eclipse hangs. The only way out was to kill Eclipse and manually remove all remnants of viPlugin from the Eclipse installation.
  • Vrapper: At a first glance, this one works as advertised. I noticed that the search/replace option 'c' in ":%s/one/another/gc" does not work because Vrapper will replace all occurrences of "one".
  • viPlugin:我最近通过 Eclipse 市场在 Eclipse Juno 上安装了 viPlugin 2.10.0。结果?不要在家里尝试,因为 Eclipse 挂起。唯一的出路是杀死 Eclipse 并从 Eclipse 安装中手动删除所有残留的 viPlugin。
  • Vrapper:乍一看,这个就像宣传的那样。我注意到“”中的搜索/替换选项“c”:%s/one/another/gc不起作用,因为 Vrapper 将替换所有出现的“ one”。