Eclim does not autocomplete in vim

I installed eclim and started to run the mute eclipse server as I encoded Vim

Now I went to vim and typed this,

:PingEclim 

He displays it,

 eclim 2.4.1 eclipse 4.4.0 

Then I did a check,

 :EclimValidate 

and he gives the right exit,

 Result: OK, required settings are valid. 

But then when I try to use its autocomplete function, let's say this

 System.<ctl + x><ctl + u> 

Does absolutely nothing. Code execution is not executed.

I need help why it doesn’t work,

My classpath file for java project is

 <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="bin"/> </classpath> 

I'm just used to eclim, so the java class code is

 package org.test; public class TestMain { public static final void main(String[] args) { System. // I am just not able to get any autocompletion after that . } } 

This is a project tree,

 . |-- bin | `-- org | `-- test | `-- TestMain.class `-- src `-- java `-- org `-- test |-- TestMain.java `-- TestMain.java~ 
+4
source share
1 answer

Ok, I think I solved my problem. In my case, it was a problem that I simply could not understand why it did not work, but I understood how it should work.

I think this may be due to the fact that YouCompleteMe is installed, but I had to override the default autocomplete stored in eclim by adding the following line fragment to .vimrc .

 let g:EclimCompletionMethod = 'omnifunc' 

Now it works great as an eclim with omnifunc related to youcompleteme (YCM), and then it all happens in real time.

Hope this case helps someone. I could not find a single place where this collision between YCM and eclim was explained, and I had to find out all this.

+3
source

All Articles