views:

2318

answers:

8

Hi,

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? Its saturday afternoon in Kiwi land, so I'll try it later and update if no one has an opinion. From the claims on the site, it sounds perfect.

+1  A: 

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/viplugin/

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

Andy White
I'd heard about viplugin, but haven't tried it. From what I heard, it only mimics vim (allows some vim like commands), but doesn't offer full vim functionality (macros, etc.).. is that true?
Adnan
I'm actually not sure about macros and more advanced vim functionality. What types of macros are you wanting to use? I sort of recall a way to mimic a .vimrc with viPlugin, but maybe I'm confusing it with ViEmu. Maybe check out the guy's site and see if he has any docs, I can't remember. :)
Andy White
Im very used to writing ad hoc macros that do complicated things like:<contrived_example>map z 0ifoo^[3wibar^[wdwdwcwchange^[Ablah blah^[3j(for example to modify every 4th line in a file in some weird way)</contrived example>
Adnan
Hmm... I'm not sure, I'll have to try it out. I'll let you know if it supports map and similar stuff
Andy White
+4  A: 
VonC
But for the cliche vi/emacs comic, I'd vote you up. JVI is pretty sweet, but I was unable to get it working in 5.5 (dinosaur?)
Ellery Newcomer
JVI seems to be updated quite often, but may be targeted for NetBeans 6.x rather than 5.x
VonC
+1 for vi/emacs comic (sorry Ellery... that is a classic!)
Andy White
A: 

...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 :(

OscarRyz
A: 

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.

Adnan
The problem about vimplugin is that you can't use eclipse completion, refactoring and so forth :-(. That make vimplugin useless for me.
Johannes Weiß
+7  A: 

I use 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 emulate Vim behaviour so you don't need to have Vim installed.

cysiek10
A: 

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.

A: 

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#}

TerryP
A: 

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.

dwang