From 83e62d56ba6e743fe72c3ca17e7f5150ee042872 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 19 Aug 2015 23:58:47 +0200 Subject: [PATCH] Add jedi#reinit_python This is meant to be used in case you want to re-init the Python version used by jedi-vim, without restarting Vim. I had this laying around.. it might be better to just export `s:init_python` as `jedi#init_python`?! --- autoload/jedi.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index eff65e0..07d73a4 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -101,6 +101,12 @@ function! s:init_python() endfunction +function! jedi#reinit_python() + unlet! s:_init_python + call jedi#init_python() +endfunction + + function! jedi#init_python() if !exists('s:_init_python') try