From c9c019846782518b4b53754be606bebf17a3468b Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 25 Mar 2015 14:05:01 +0100 Subject: [PATCH] Settin nocompatible and filetype pluin n should be part of a jedi#auto_vim_configuration check. Fixes #373. --- plugin/jedi.vim | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/plugin/jedi.vim b/plugin/jedi.vim index 0c96819..6d40db8 100644 --- a/plugin/jedi.vim +++ b/plugin/jedi.vim @@ -5,13 +5,15 @@ " the Jedi Python library. -" jedi-vim doesn't work in compatible mode (vim script syntax problems) -if &compatible - set nocompatible -endif +if g:jedi#auto_vim_configuration + " jedi-vim doesn't work in compatible mode (vim script syntax problems) + if &compatible + set nocompatible + endif -" jedi-vim really needs, otherwise jedi-vim cannot start. -filetype plugin on + " jedi-vim really needs, otherwise jedi-vim cannot start. + filetype plugin on +endif " Pyimport command command! -nargs=1 -complete=custom,jedi#py_import_completions Pyimport :call jedi#py_import()