48

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.

What plugin are people using?

1

5 Answers 5

64

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.

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.

3
  • I had tried eclim for developing for awhile, but you have to learn all new new key combos and you almost lose the gui, so I ended up liking vrapper because if I needed a specific vim feature I could always use an eclipse tool to open the file I was working on in full vim using tmux radorant.blogspot.com/2009/12/vrapper-is-nice.html
    – rado
    Sep 17, 2010 at 5:20
  • 3
    Vrapper doesn't support regular expression search or substitution.
    – Leopd
    Jan 23, 2012 at 18:05
  • 4
    @Leopd today it does. Oct 22, 2014 at 18:17
14

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.

1
  • 2
    THis would better shared as a comment since its the same answer as @dis
    – studgeek
    Jan 18, 2013 at 15:53
12

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

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

3
  • 7
    Have you tried any of the open source plugins? Nov 19, 2009 at 20:25
  • 1
    This is the best Vi plugin for Eclipse. Nov 19, 2009 at 20:52
  • So far so good. viPlugin has column editing which vrapper does not. You have to setup the keybindings in Eclipse to use it though. Obviously ctrl+V is paste in the non-vim world so assign SwitchToVisualBlockMode to ctrl+V instead.
    – shrewmouse
    Apr 12, 2016 at 13:50
7

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.

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 appears to be fully dead as of mid 2014. :(

2
  • 2
    Lack of Regular Expression support is a limitation of vrapper, but to a longtime vi user, it is a big improvement over the eclipse native editor. viable looks promising but it appears to be a trade-off in features between the two. As an occasional vi user I'll stick with the free vrapper, but keep an eye on improvements to viable since vrapper has a very slow update cycle.
    – chetto
    Jan 25, 2012 at 4:24
  • 3
    Not sure if this is a temporary thing, but viableplugin.com returns a 403-Forbidden error. If you get an error too, try marketplace.eclipse.org/content/viable-vim-eclipse.
    – foxdonut
    Mar 10, 2013 at 1:39
3

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

Only Vrapper works.

  • 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".

Not the answer you're looking for? Browse other questions tagged or ask your own question.