How do I know the eclim is running?

113 views
Skip to first unread message

Ming-Hsuan TU

unread,
May 10, 2012, 11:51:49 PM5/10/12
to eclim-user
However,I can use PingEclim that tells Eclim is running or not.

But I want the following settings:
"
When Eclim is running, turn on the autocomplop (that is, let
g:acp_enableAtStartup = 1)

otherwise turn off the autocomplop(that is ,let g:acp_enableAtStartup
= 0)
"
It seems that Eclim is not compatible with neocomplcache so I have to
do such settings. (If there is a solution with neocomplcache, I will
appreciate your comment :) )

I found the variable inside the autoload/eclim.vim ,the variable is
called g:eclimd_running

However, I start eclimd but the variable is not set until I type
the :Projectxxxx (ex: ProjectTree pro_name)

I am poor on vim script, so I do not fully understand the
functionality in the script

How can I hack such settings as mentioned before?

Eric Van Dewoestine

unread,
May 11, 2012, 12:01:39 AM5/11/12
to eclim...@googlegroups.com
The best way would be to check the result of the
eclim#EclimAvailable function:

if eclim#EclimAvailable()
..
endif

--
eric

影月零

unread,
May 16, 2012, 2:25:42 PM5/16/12
to eclim...@googlegroups.com
I'm having the exact same issue. Calling eclim#EclimAvailable() from vimrc throws an error that eclim#EclimAvailable is an unknown function.

2012年5月11日金曜日 13時01分39秒 UTC+9 Eric Van Dewoestine:

Ming-Hsuan TU

unread,
May 16, 2012, 9:31:40 PM5/16/12
to eclim...@googlegroups.com
You have to create sub-directory under eclim such as eclim/after/plugin,and put your additional vim script(which calls eclimAvliable..) in the sub-directory.

Eric Van Dewoestine

unread,
May 16, 2012, 10:28:28 PM5/16/12
to eclim...@googlegroups.com
On 2012-05-16 18:31:40, Ming-Hsuan TU wrote:
> You have to create sub-directory under eclim such as eclim/after/plugin,and put your additional vim script(which calls eclimAvliable..) in the sub-directory.

That'll work. Another option is to force the eclim plugin to load
before calling eclim#EclimAvailable():

runtime plugin/eclim.vim
if eclim#EclimAvailable():
...
endif

If the eclim vimfiles are under a pathogen/vundle/etc. dir, then
you'll have to either use 'source <absolute path>/plugin/eclim.vim' or
use the runtime version above after pathogen/vundle/etc. are loaded.

--
eric

影月零

unread,
May 17, 2012, 8:39:18 AM5/17/12
to eclim...@googlegroups.com
That did the trick! Thanks.

2012年5月17日木曜日 11時28分28秒 UTC+9 Eric Van Dewoestine:
Reply all
Reply to author
Forward
0 new messages