From b63454ebd49d4bc6183fe95203cc6288e625c55a Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 6 Jan 2013 23:55:24 +0100 Subject: [PATCH] add a Python command that is able to execute python3 and python2 --- plugin/jedi.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/jedi.vim b/plugin/jedi.vim index 5a15c4c..f5781c0 100644 --- a/plugin/jedi.vim +++ b/plugin/jedi.vim @@ -51,4 +51,10 @@ if g:jedi#auto_initialization autocmd FileType python setlocal omnifunc=jedi#complete switchbuf=useopen " needed for pydoc endif +if has('python') + command! Python python +else + command! Python python3 +end + " vim: set et ts=4: