Painless integration of Eclipse with Vim?

EclipseVimPlugins

Eclipse Problem Overview


Has anyone managed to get Vim integrated into Eclipse painlessly? I just want to use Vim for the editor while retaining the general Eclipse interface. I have tried using Eclim plugin but the editor seemed to crash more often than work (the site said that the editor replacement functionality is still beta).

On the flip side, is there any IDE which matches Eclipse's functionality—mainly the integration with SVN, ant, etc.—and is also able to use Vim?

I mostly use eclipse for SAS SCL, Java and Javascript programming and find the eclipse editor too "mouse-y".

I'd also like, in a perfect world, to use vimdiff as a diff viewer for SVN (we use TortoiseSVN) while checking for diffs or conflicts during merge etc. I admit I havent spent a lot of time trying to get these things to work. I feel guilty about spending too much time on potential wild-goose-chases while my other team members are working away at their code, perfectly content with all that Eclipse has to offer.

Edit: Just found this while desperately browsing around: Vim plugin. Any experience using this? From the claims on the site, it sounds perfect.

Eclipse Solutions


Solution 1 - Eclipse

I've been using Vrapper for about 2 months and it works great. It is simple to install, and makes life much easier.

It doesn't integrate Vim with Eclipse, it just emulates Vim's behaviour so you don't need to have Vim installed.

EDIT:

I have been experiencing errors while refactoring methods in Eclipse (only when Vrapper was installed) so I stopped using it.

Now I'm using ViPlugin (very similar to vrapper). It works great (especially since version 2.0) and I recommend it, but it is not free (but cheap and has a trial version)

Edit

As the new post mentioned, if we always use the rename dialog to rename, it can be a work around for Varpper.

Preferences > Java > and uncheck "Rename in editor without dialog"

http://sourceforge.net/apps/trac/vrapper/ticket/96

Solution 2 - Eclipse

The consensus seems summarized in that Wanted: VIM in Eclipse article.

No decent Vi plugin exists for eclipse, except viplugin which does not offer macro mechanisms.

vi

Whereas on the NetBeans side... jvi does a killing job ;)

alt text

Solution 3 - Eclipse

WOW, this is the one!

http://vrapper.sourceforge.net/home/

It just came out a few months ago, and seems much better than the other alternatives...and it is open source.

Solution 4 - Eclipse

I use Viable, which is a new plugin for Eclipse providing Vi emulation. It is very similar to vrapper, but it doesn't have the same problem as vrapper with refactoring (as cysiek10 described.)

It's got some pretty cool features which none of the other Vim emulators in Eclipse seem to have (though jvi for NetBeans has a few of these) such as:

  • Visual block mode
  • External filters and commands
  • Command history
  • Window splits (love having this one!)

It is pay; however, you can try the full version for free just like viPlugin.

Solution 5 - Eclipse

I never had much luck with vim integration into any IDE, be it Eclipse, Visual Studio, NetBeans, or sth else. Instead when stuck using an IDE, I just make the IDE launch a custom program: which passes the file onto vim using the client/server feature.

I.e. vim --servername SomeName --remote-{choice of how to open it: splits or tabs} {extra args like filename and +line#}

Solution 6 - Eclipse

I just tried Eclim http://eclim.org/ and found it really good. I can still edit inside Vim, and enjoy most of the benefits of the eclipse IDE inside Vim (such as better omni completions).

The best thing about Eclim is we are still using the original Vim, so I can enjoy all the existing benefits (my own functions, macros, etc.) while having the extra convenience provided by an IDE.

Solution 7 - Eclipse

I tried Eclim and didn't like it at all. I ended using this plugin called "viPlugin," which actually works well enough to warrant using it every day. Here is the site for viPlugin:

http://www.viplugin.com

The big downside of this plugin is that it's not free. I paid for it, and I think it's worth it.

Solution 8 - Eclipse

http://vimplugin.org, which I found over the weekend was the closest I could come to a nice integration. Unfortunately when I opened more than 2 files in my IDE, it made my entire workstation unresponsive. And I didn't even use the "new process" option for the editor.

So bottom line it does seem that there is no decent integration available yet. Although with some it's close. I'm rooting for vimplugin to stabilize and I'll also some time (when I'm not eating up my employer's time like now) play some more with hte plugin to see if I can make it usable.

Solution 9 - Eclipse

>...is there any IDE which matches Eclipse's functionality -- mainly the integration with SVN, ant, etc. -- and is also able to use Vim?

IntelliJ IDEA has a very good VI plugin, but I didn't like it, although the plugin did it's work.

My problem was I have formed habits to use IDEA and those were harder and my experiment didn't it through. So I uninstall the plugin, and learned idea shortcuts instead.

But, is not free :(

Solution 10 - Eclipse

Vrapper does the trick.

After installing Vrapper you need to remove CTRL+W key binding in Eclipse settings. Or else it keeps closing the editor when you actually meant Backspace.

It also comes with "surround" and split window plugins. Be sure to install those.

This is not 100% Vim, though. And nothing is 100% Vim except for Vim (doh!). You will find some commands missing (or you may not, depending on how "vimy" you are). But vrapper has :vim command, which opens up Vim editor with the current file in the buffer and places your cursor in the exact location in the file. This way you can continue editing from where you left off. When you're done in Vim just close the editor, and you return to your eclipse editor.

I hope this was helpful.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAdnanView Question on Stackoverflow
Solution 1 - EclipseKrzysztof KotView Answer on Stackoverflow
Solution 2 - EclipseVonCView Answer on Stackoverflow
Solution 3 - Eclipseuser365076View Answer on Stackoverflow
Solution 4 - EclipseldogView Answer on Stackoverflow
Solution 5 - EclipseTerryPView Answer on Stackoverflow
Solution 6 - EclipseArriveWView Answer on Stackoverflow
Solution 7 - EclipseAndy WhiteView Answer on Stackoverflow
Solution 8 - EclipseAdnanView Answer on Stackoverflow
Solution 9 - EclipseOscarRyzView Answer on Stackoverflow
Solution 10 - EclipsesherzodrView Answer on Stackoverflow