Trying to improve jedi-vim, when Jedi is not found. Fixes #263.

This commit is contained in:
Dave Halter
2015-03-30 19:11:05 +02:00
parent cc9837dc23
commit e87e7db0e9
3 changed files with 44 additions and 23 deletions

View File

@@ -18,8 +18,5 @@ import traceback
# update the sys path to include the jedi_vim script
sys.path.insert(0, vim.eval('expand(s:script_path)'))
try:
import jedi_vim
except ImportError:
vim.command('echoerr "Please install Jedi if you want to use jedi_vim."')
import jedi_vim
sys.path.pop(1)