mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 11:14:32 +08:00
Merge pull request #89 from ethinx/issue80
Fix #80 "Not an editor command: Python << PYTHONEOF"
This commit is contained in:
@@ -159,6 +159,11 @@ function! jedi#configure_function_definition()
|
|||||||
autocmd CursorMovedI <buffer> call jedi#show_func_def()
|
autocmd CursorMovedI <buffer> call jedi#show_func_def()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
if has('python')
|
||||||
|
command! -nargs=1 Python python <args>
|
||||||
|
else
|
||||||
|
command! -nargs=1 Python python3 <args>
|
||||||
|
end
|
||||||
|
|
||||||
Python << PYTHONEOF
|
Python << PYTHONEOF
|
||||||
""" here we initialize the jedi stuff """
|
""" here we initialize the jedi stuff """
|
||||||
|
|||||||
@@ -51,11 +51,4 @@ if g:jedi#auto_initialization
|
|||||||
" order of invocation.
|
" order of invocation.
|
||||||
autocmd FileType Python setlocal omnifunc=jedi#complete switchbuf=useopen " needed for pydoc
|
autocmd FileType Python setlocal omnifunc=jedi#complete switchbuf=useopen " needed for pydoc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has('python')
|
|
||||||
command! -nargs=1 Python python <args>
|
|
||||||
else
|
|
||||||
command! -nargs=1 Python python3 <args>
|
|
||||||
end
|
|
||||||
|
|
||||||
" vim: set et ts=4:
|
" vim: set et ts=4:
|
||||||
|
|||||||
Reference in New Issue
Block a user