From 69d5c4f3e0c95c77e600eb83f8636d5e686a2726 Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 31 Aug 2012 16:47:58 +0200 Subject: [PATCH] jedi plugin new options --- jedi.vim | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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("")