delay load python module. this change make bits faster.

This commit is contained in:
mattn
2012-10-31 09:18:46 +09:00
parent 2143e2f0a3
commit b92de58826
2 changed files with 23 additions and 22 deletions

View File

@@ -49,26 +49,4 @@ if g:jedi#auto_initialization
autocmd FileType python setlocal omnifunc=jedi#complete
endif
python << PYTHONEOF
""" here we initialize the jedi stuff """
import vim
# update the system path, to include the jedi path
import sys
import os
from os.path import dirname, abspath, join
sys.path.insert(0, join(dirname(dirname(abspath(vim.eval('expand("<sfile>")')))), 'jedi'))
# to display errors correctly
import traceback
# update the sys path to include the jedi_vim script
sys.path.append(dirname(abspath(vim.eval('expand("<sfile>")'))))
import jedi_vim
sys.path.pop()
PYTHONEOF
" vim: set et ts=4: