1

我按照 mbrochh 的说明https://github.com/mbrochh/vim-as-a-python-ide将我的 vim 构建为 python IDE。但是在我jedi-vim放入~/.vim/bundle. 以下是警告

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

我希望有人能解决问题并感谢您的帮助。

4

4 回答 4

2
于 2014-01-29T15:05:07.677 回答
1

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

cd ~/.vim/bundle/jedi-vim  
git submodule update --init
于 2014-03-04T08:58:09.737 回答
1

(在 Python 2.7 中使用 ubuntu 14.04LTS)

我有一个非常相似的问题,我发现我需要将 Jedi 集成到我的 Python 安装中。

我做了以下...

sudo apt-get install python-pip

sudo pip install jedi

然后,如果您还没有这样做,您可以通过 Pathogen 将 Jedi 添加到 VIM,如下所示...

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

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

然后...将此行添加到您的 ' ~/.vimrc ' 文件中(如果它不存在,则创建它。)

call pathogen#infect()

然后保存并退出。

最后...

cd ~/.vim/bundle

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

而已。

于 2014-10-22T14:08:26.887 回答
0

Jedi git repo 中存在依赖项。我希望您使用病原体作为扩展管理器。git clone--recursive选项一起使用。

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

Dave Halter在 github 上的文档中有此说明。


顺便说一句,这是所有具有依赖关系的 vim 扩展的常见行为,例如 flake8-vim。此外,如果您只是克隆了任何具有依赖关系的 repo,而不是递归地,您可能会遇到非常意想不到的问题。所以这个问题在更大程度上是关于git recursive cloninggit submodules的。

于 2014-04-02T12:32:54.513 回答