diff --git a/jedi.vim b/jedi.vim index 675e609..3fa8c3d 100644 --- a/jedi.vim +++ b/jedi.vim @@ -180,7 +180,23 @@ endfunction " ------------------------------------------------------------------------ " defaults for jedi-vim -let g:jedi#use_tabs_not_buffers = 0 +if !exists("g:jedi#use_tabs_not_buffers ") + let g:jedi#use_tabs_not_buffers = 0 +endif +if !exists("g:jedi#auto_initialization") + let g:jedi#auto_initialization = 1 +endif +if !exists("g:jedi#goto_command") + let g:jedi#goto_command = "g" +endif + +if g:jedi#auto_initialization + autocmd FileType python set omnifunc=jedi#complete + " map ctrl+space for autocompletion + imap + + execute "map ".g:jedi#goto_command." :call jedi#goto()" +end let s:current_file=expand("")