Fix #80 "Not an editor command: Python << PYTHONEOF"

This commit is contained in:
York Wong
2013-02-05 17:35:45 +08:00
parent c2cbe4133e
commit ed8dcf6f5d
2 changed files with 5 additions and 7 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

@@ -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: