if !jedi#init_python() finish endif " ------------------------------------------------------------------------ " Initialization of jedi-vim " ------------------------------------------------------------------------ if g:jedi#auto_initialization " goto / get_definition / usages if len(g:jedi#goto_command) execute 'nnoremap '.g:jedi#goto_command.' :call jedi#goto()' endif if len(g:jedi#goto_assignments_command) execute 'nnoremap '.g:jedi#goto_assignments_command.' :call jedi#goto_assignments()' endif if len(g:jedi#goto_definitions_command) execute 'nnoremap '.g:jedi#goto_definitions_command.' :call jedi#goto_definitions()' endif if len(g:jedi#goto_stubs_command) execute 'nnoremap '.g:jedi#goto_stubs_command.' :call jedi#goto_stubs()' endif if len(g:jedi#usages_command) execute 'nnoremap '.g:jedi#usages_command.' :call jedi#usages()' endif " rename if len(g:jedi#rename_command) execute 'nnoremap '.g:jedi#rename_command.' :call jedi#rename()' execute 'vnoremap '.g:jedi#rename_command.' :call jedi#rename_visual()' endif " documentation/pydoc if len(g:jedi#documentation_command) execute 'nnoremap '.g:jedi#documentation_command.' :call jedi#show_documentation()' endif if g:jedi#show_call_signatures > 0 call jedi#configure_call_signatures() endif if g:jedi#completions_enabled == 1 inoremap . .=jedi#complete_string(1) endif if g:jedi#smart_auto_mappings == 1 inoremap =jedi#smart_auto_mappings() end if g:jedi#auto_close_doc " close preview if its still open after insert augroup jedi_preview autocmd! InsertLeave if pumvisible() == 0|pclose|endif augroup END endif endif