
Sorry for not replying sooner, but it's been a busy week.
I personally use supertab[1] to avoid typing <c-x><c-u> (I took over
its development years ago, so I'm biased). However, I'm sure there are
plenty of users who would like the more traditional auto triggering of
the completion pop like a typical IDE.
While your plugin looks good (thanks for submitting it!), there is an
existing plugin which provides this feature: autocomplpop[2]
I just spent a little time playing with autocomplpop just to make sure
it could be configured to work with eclim and after finding the magic
settings, I added an example to eclim's code completion docs[3].
Here is the code/config I came up with to trigger completion after
typing at least 3 characters following a dot (can be tweaked to suit
individual tastes):
let g:acp_behaviorJavaEclimLength = 3
function MeetsForJavaEclim(context)
return g:acp_behaviorJavaEclimLength >= 0 &&
\ a:context =~ '\k\.\k\{' . g:acp_behaviorJavaEclimLength . ',}$'
endfunction
let g:acp_behavior = {
\ 'java': [{
\ 'command': "\<c-x>\<c-u>",
\ 'completefunc' : 'eclim#java#complete#CodeComplete',
\ 'meets' : 'MeetsForJavaEclim',
\ }]
\ }
[1] http://www.vim.org/scripts/script.php?script_id=1643
[2] http://www.vim.org/scripts/script.php?script_id=1879
[3] https://github.com/ervandew/eclim/commit/ccd4bf2a3964a9a5a9ddd59da41cc22b27cf26f0
--
eric