Merge remote-tracking branch 'origin/master' into dev

This commit is contained in:
David Halter
2013-05-14 22:12:54 +04:30
3 changed files with 8 additions and 10 deletions

View File

@@ -159,6 +159,11 @@ function! jedi#configure_function_definition()
autocmd CursorMovedI <buffer> call jedi#show_func_def()
endfunction
if has('python')
command! -nargs=1 Python python <args>
else
command! -nargs=1 Python python3 <args>
end
Python << PYTHONEOF
""" here we initialize the jedi stuff """

View File

@@ -41,13 +41,13 @@ end
if g:jedi#popup_on_dot
if stridx(&completeopt, 'longest') > -1
if g:jedi#popup_select_first
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>\<lt>C-N>" : ""<CR>
inoremap <silent> <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>\<lt>C-N>" : ""<CR>
else
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>" : ""<CR>
inoremap <silent> <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>" : ""<CR>
end
else
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>\<lt>C-P>" : ""<CR>
inoremap <silent> <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>\<lt>C-P>" : ""<CR>
end
end

View File

@@ -51,11 +51,4 @@ if g:jedi#auto_initialization
" order of invocation.
autocmd FileType Python setlocal omnifunc=jedi#complete switchbuf=useopen " needed for pydoc
endif
if has('python')
command! -nargs=1 Python python <args>
else
command! -nargs=1 Python python3 <args>
end
" vim: set et ts=4: