From 505c067c54a725026b3883596fe3ef3267e50c3a Mon Sep 17 00:00:00 2001 From: David Halter Date: Wed, 28 Aug 2013 09:40:23 +0430 Subject: [PATCH] fix problems with relocating plugin (did it the wrong way around --- autoload/jedi.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index ec00b62..d74e114 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -51,6 +51,7 @@ endfun " ------------------------------------------------------------------------ function! jedi#show_documentation() Python jedi_vim.show_documentation() + if bufnr("__doc__") > 0 " If the __doc__ buffer is open in the current window, jump to it silent execute "sbuffer ".bufnr("__doc__") @@ -242,13 +243,13 @@ import vim # update the system path, to include the jedi path import sys import os -sys.path.insert(0, os.path.join(vim.eval('expand(":p:h")'), 'jedi')) +sys.path.insert(0, os.path.join(vim.eval('expand(":p:h:h")'), 'jedi')) # to display errors correctly import traceback # update the sys path to include the jedi_vim script -sys.path.insert(1, os.path.join(vim.eval('expand(":p:h:h")'), 'plugin')) +sys.path.insert(1, vim.eval('expand(":p:h:h")')) try: import jedi_vim except ImportError: