Below is a list of the core commands and configuration for eclim inside of vim.
:VimSettings -
Allows you to view and edit all of eclim’s vim client settings. Settings
edited here will be stored at $HOME/.eclim/.eclim_settings
.
Note
If you have any g:EclimXXX
settings in your vimrc or equivalent, those
will take precedence over any settings edited using :VimSettings.
:EclimHelpGrep /<pattern>/ - Command which allows you to search the eclim help files via vimgrep.
Ex.
:EclimHelpGrep /completion/
org.eclim.project.version Should be set to the version number of your project. This is used by various commands that add version info to a file or utilize the version number in some other manner.
Defaults to “1.0”.
The following is a list of some of the common Vim variables available.
g:EclimLogLevel (Default: ‘info’)
This variable allows you to control the level of output from eclim as follows:
Each level also has a corresponding variable to set the highlighting group used for the text.
g:EclimSignLevel (Default: ‘info’)
Behaves just like g:EclimLogLevel except this applies to placing of Vim signs for displaying validation errors / warnings, or marking quickfix/location list entries.
The resulting signs also use the same highlighting variables above.
g:EclimBrowser (Default: Dependent on OS)
Configures the external web browser to use when opening urls. By default eclim will attempt to set a default browser based on your system, but if it cannot find a compatible browser, you will need to set one in your vimrc.
Note: The above examples assume that the browser executable is in your path. On windows machines they won’t be by default, so you will need to add them.
g:EclimShowCurrentError (Default: 1)
This variable determines whether or not a CursorHold autocommand is created that will echo the error associated with the current line if any error exists. Setting this variable to 0 disables this feature.
g:EclimMakeLCD (Default: 1)
When set to a non-0 value, all eclim based make commands (:Ant, :Maven, :Mvn, etc) will change to the current file’s project root before executing.
Enabling this has the benefit of allowing you to run these commands from any file regardless of where it was opened from without having to worry about the directory it is executing from. For example if you have a file open from project A and split a file from project B, you can execute :Ant from the project B file and it will utilize project B’s build.xml even though your current working directory is in project A.
** g:EclimPromptListStartIndex (Default: 0)
Defines whether to use 0 or 1 based indexing when the user is prompted to choose from a list of choices.