VimPlugin: eclim

From wikinotes

eclim allows you to use vim as your editor, while using eclipse on the backend for autcompletion, refactoring, navigtion, etc.

Install

official instructions http://eclim.org/install.html
eclipse release downloads https://www.eclipse.org/downloads/packages/release
eclim release downloads https://github.com/ervandew/eclim/releases/

Firstly, confirm these instructions are still valid by checking the eclim install instruction.

Pay particular attention to the required eclipse version.

  1. download eclim ( https://github.com/ervandew/eclim/releases/ )
  2. download reqd eclipse ( https://www.eclipse.org/downloads/packages/release )
  3. install eclipse into /opt
  4. run eclim.bin (install to bundle)
./eclimd_2.8.0.bin --eclipse=/opt/eclipse --vimfiles=~/.vim/bundle/eclim --plugins jdt

NOTE:

I usually create symlinks for eclimd/eclipse in /usr/bin

Usage Modes

headless

start eclim server

~/.eclipse/org.eclipse.platform_4.8.0_1473617060_linux_gtk_x86_64/eclimd    # eclim-daemon server

vim           # start vim
:PingEclipse  # test connection to eclimd

eclipse + embedded gvim

# start eclimd in eclipse
(eclipse) Window > Show View > Other:
    Eclim > eclimd

# choose to embed vim
(eclipse) Window > Preferences:
    vimplugin:
        - embed vim-7.1: true
        - path to gvim:  /usr/bin/gvim

# run vim
rclick file > open with > vim

eclipse-gui, vim/nvim (preferred)

# start eclimd in eclipse
(eclipse) Window > Show View > Other:
    Eclim > eclimd

# choose to embed vim
(eclipse) Window > Preferences:
    vimplugin:
        - path to gvim:  /usr/bin/gvim

# open in vim
(src-tree) rclick > Open With > Vim

Usage

general

:PingEclim                " test connection to eclimd
:ProjectList              " list registered projects
:ProjectOpen  <project>   " open project for editing
:ProjectImport /path/src  " import a maven project into eclipse
eclim: java
eclim: ruby


Configuration


:WorkspaceSettings  " edit global workspace settings
:ProjectSettings    " edit project-specific workspace settings
:VimSettings        " edit vim eclimd client settings