added auto configuration of VIM setting -> fixes #52

This commit is contained in:
David Halter
2012-12-18 16:46:16 +01:00
parent 64e2b1d806
commit 704c1c2553
3 changed files with 10 additions and 0 deletions

View File

@@ -24,6 +24,10 @@ if g:jedi#auto_initialization
endif
end
if g:jedi#auto_vim_configuration
setlocal completeopt=menuone,longest,preview
end
if g:jedi#popup_on_dot
if stridx(&completeopt, 'longest') > -1
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>" : ""<CR>