From ed8dcf6f5dc8394baac474414ef3aa45be56434a Mon Sep 17 00:00:00 2001 From: York Wong Date: Tue, 5 Feb 2013 17:35:45 +0800 Subject: [PATCH] Fix #80 "Not an editor command: Python << PYTHONEOF" --- autoload/jedi.vim | 5 +++++ plugin/jedi.vim | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index 997a4cd..b1041a7 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -159,6 +159,11 @@ function! jedi#configure_function_definition() autocmd CursorMovedI call jedi#show_func_def() endfunction +if has('python') + command! -nargs=1 Python python +else + command! -nargs=1 Python python3 +end Python << PYTHONEOF """ here we initialize the jedi stuff """ diff --git a/plugin/jedi.vim b/plugin/jedi.vim index e7ee905..707ad1d 100644 --- a/plugin/jedi.vim +++ b/plugin/jedi.vim @@ -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 -else - command! -nargs=1 Python python3 -end - " vim: set et ts=4: