if !jedi#init_python() finish endif if g:jedi#auto_initialization if g:jedi#completions_enabled " We need our own omnifunc, so this overrides the omnifunc set by " $VIMRUNTIME/ftplugin/python.vim. setlocal omnifunc=jedi#completions " map ctrl+space for autocompletion if g:jedi#completions_command == "" " In terminals, sometimes equals . imap smap endif if g:jedi#completions_command != "" execute "inoremap ".g:jedi#completions_command." jedi#complete_string(0)" " A separate mapping for select mode: deletes and completes. execute "snoremap ".g:jedi#completions_command." '\c'.jedi#complete_string(0)" endif endif endif