mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
add a Python command that is able to execute python3 and python2
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user