mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
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()
|
||||
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 """
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user