Eclim allowed us to embed Vim into Eclipse.

Install JDK and Eclipse.
NOTE: Installation of Eclipse is same as Installation of JDK. Just have to append export ECLIPSE_HOME='/opt/eclipse' after the export JAVA_HOME line and append :${ECLIPSE_HOME} to the end of export PATH.

To make it on Gnome desktop

1
$ sudo touch /usr/share/applications/eclipse.desktop

Add the content below to the file just created

1
2
3
4
5
6
7
8
9
[Desktop Entry]
Name=Eclipse IDE
Comment=Eclipse
Exec=/opt/eclipse/eclipse
StartupNotify=true
Terminal=false
Type=Application
Icon=/opt/eclipse/icon.xpm
Category=Development;IDE;

Edit /opt/eclipse/eclipse.ini add

1
2
-vm
/opt/jdk<version>/bin/java

right before -vmargs

Next is to install Eclim. (see more)

1
$ java -jar eclim_<version>.jar

Then start Eclipse

  • at the eclipse menu bar: Window -> Preferences -> Vimplugin there, make sure the Path to GVIM is not blank (usually should be /usr/bin/gvim)
  • open Window -> Show View -> Other -> Eclim -> eclimd
  • Right-click any project source code, select Open with -> Vim

Happy viming ^^

Reference: eclipse not working - No java virtual machine was found