>>381
jedi-vim のソースちょっとみたけど >>377 のであってる
ものすごくざっくり言うと
jedi は単に se omnifunc=jedi#completions して、. が入力された時に <C-x><C-o> を呼び出してるだけ
<C-x><C-o> は オムニ補完呼び出すマッピング

function! OreoreCompletion(findstart, base)
if a:findstart
" locate the start of the word
let line = getline('.')
let start = col('.') - 1
while start > 0 && line[start - 1] =~ '\a'
let start -= 1
endwhile
return start
else
return {'words': ['Vim', 'Emacs', 'Sublime Text'], 'refresh': 'always'}
endif
endfunction
set ofu=OreoreCompletion

して INSERT モードで <C-x><C-o> したらポップアップ出るはず
詳しくは、h: complete-functions