Embed GVIM into Eclipse with Eclim on Ubuntu
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 | [Desktop Entry] |
Edit /opt/eclipse/eclipse.ini
add
1 | -vm |
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