mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 03:04:30 +08:00
Settin nocompatible and filetype pluin n should be part of a jedi#auto_vim_configuration check. Fixes #373.
This commit is contained in:
@@ -5,13 +5,15 @@
|
|||||||
" the Jedi Python library.
|
" the Jedi Python library.
|
||||||
|
|
||||||
|
|
||||||
" jedi-vim doesn't work in compatible mode (vim script syntax problems)
|
if g:jedi#auto_vim_configuration
|
||||||
if &compatible
|
" jedi-vim doesn't work in compatible mode (vim script syntax problems)
|
||||||
set nocompatible
|
if &compatible
|
||||||
endif
|
set nocompatible
|
||||||
|
endif
|
||||||
|
|
||||||
" jedi-vim really needs, otherwise jedi-vim cannot start.
|
" jedi-vim really needs, otherwise jedi-vim cannot start.
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
endif
|
||||||
|
|
||||||
" Pyimport command
|
" Pyimport command
|
||||||
command! -nargs=1 -complete=custom,jedi#py_import_completions Pyimport :call jedi#py_import(<q-args>)
|
command! -nargs=1 -complete=custom,jedi#py_import_completions Pyimport :call jedi#py_import(<q-args>)
|
||||||
|
|||||||
Reference in New Issue
Block a user