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

@@ -62,6 +62,11 @@ you disable the auto-initialization in your ``.vimrc``::
let g:jedi#auto_initialization = 0
There are also some VIM options (like ``completeopt``) which are automatically
initialized, if you don't want that:
let g:jedi#auto_vim_configuration = 0
The goto is by default on <leader g>. If you want to change that::
let g:jedi#goto_command = "<leader>g"

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>

View File

@@ -22,6 +22,7 @@ let g:loaded_jedi = 1
let s:settings = {
\ 'use_tabs_not_buffers': 1,
\ 'auto_initialization': 1,
\ 'auto_vim_configuration': 1,
\ 'goto_command': "'<leader>g'",
\ 'get_definition_command': "'<leader>d'",
\ 'related_names_command': "'<leader>n'",