1

I followed mbrochh's instruction https://github.com/mbrochh/vim-as-a-python-ide to build my vim as a python IDE. But things go wrong when openning the vim after I put jedi-vim into ~/.vim/bundle. The following is the warnings

Error detected while processing CursorMovedI Auto commands for "buffer=1":
Traceback (most recent call last)

Error detected while processing CursorMovedI Auto commands for "buffer=1":
  File "string", line 1, in module

Error detected while processing CursorMovedI Auto commands for "buffer=1":
NameError: name 'jedi_vim' is not defined

I hope someone can figure out the problem and thanks for your help.

I159
  • 29,741
  • 31
  • 97
  • 132
progmDong
  • 29
  • 4
  • 1
    Sorry for the impropriety.It's my first time asking question here,so I don't know some rules. – progmDong Jan 29 '14 at 09:15
  • @IngoKarkat, this is not Jedi-vim issue. This is wrong git usage problem. I'm sure that stackoverflow is the place where you can receive an appropriate answer for your technical question. If we are community of stackoverflow we should figure out the meaning of question and provide a useful answer. But not indiscriminately chase inquirers, especially if the inquirer is new to stackowerflow. – I159 Apr 02 '14 at 12:47

4 Answers4

2

If you’re trying to use Vundle to install the jedi-vim plugin, I don’t think you should have to place it under ~/.vim/bundle. Instead, make sure you have Vundle set up correctly, as described in its “Quick start”, and then try adding this line to your ~/.vimrc after the lines where Vundle is set up:

Plugin 'davidhalter/jedi-vim'

Then run :PluginInstall and the plugin should be installed.

Ben Klein
  • 1,719
  • 3
  • 18
  • 41
  • Thank you for your answer.I will try the way you said. I have used pathogen following the instruction. And The problem is fixed when I use git submodule update to install jedi instead of pip. – progmDong Jan 29 '14 at 16:13
  • with Vundle, wouldn't it be `Plugin 'davidhalter/jedi-vim`? – drs May 27 '15 at 16:56
  • Hi @drs! Yeah, it turns out that it would be… now. :) This answer was written a couple of months before `Bundle` was changed to `Plugin`. I updated it—thanks. – Ben Klein Jun 13 '15 at 22:27
1

make sure that you have install jedi, I solved my problem with below command..

cd ~/.vim/bundle/jedi-vim  
git submodule update --init
Engineer
  • 1,436
  • 3
  • 18
  • 33
korkmaz
  • 91
  • 4
1

(Using ubuntu 14.04LTS with Python 2.7)

I had a very similar issue and I found that I needed to integrate Jedi into my Python installation.

I did the following...

sudo apt-get install python-pip

sudo pip install jedi

Then if you haven't done so already, you can then add Jedi to VIM via Pathogen as follows...

mkdir -p ~/.vim/autoload ~/.vim/bundle

curl -so ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim

Then... add this line to your '~/.vimrc' file (Create it if it doesn't already exist.)

call pathogen#infect()

Then Save and Quit.

Lastly...

cd ~/.vim/bundle

git clone git://github.com/davidhalter/jedi-vim.git

That's it.

pquest
  • 3,151
  • 3
  • 27
  • 40
John Byrne
  • 41
  • 2
0

Dependencies exists in the Jedi git repo. I expect you are using pathogen as extension manager. Use git clone with --recursive option.

cd ~/.vim/bundle/ && git clone --recursive https://github.com/davidhalter/jedi-vim.git

Dave Halter has this instruction in the docs on github.


BTW, this is common behavior for all vim extensions with dependencies, such as flake8-vim. Furthermore if you just cloned any repo, which has dependencies, not recursively, you can have very unexpected issues. So this question in a greater extent about git recursive cloning and git submodules.

I159
  • 29,741
  • 31
  • 97
  • 132