mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +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
|
autocmd FileType python setlocal omnifunc=jedi#complete switchbuf=useopen " needed for pydoc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if has('python')
|
||||||
|
command! Python python
|
||||||
|
else
|
||||||
|
command! Python python3
|
||||||
|
end
|
||||||
|
|
||||||
" vim: set et ts=4:
|
" vim: set et ts=4:
|
||||||
|
|||||||
Reference in New Issue
Block a user