添加jedivim时出错

2024-10-01 15:41:15 发布

您现在位置:Python中文网/ 问答频道 /正文

我按照mbrochh的指令https://github.com/mbrochh/vim-as-a-python-ide将我的vim构建为pythonide。但是在我将jedi-vim放入~/.vim/bundle之后,打开vim时会出现问题。以下是警告

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

我希望有人能解决这个问题,谢谢你的帮助。在


Tags: httpsgithubforautobuffer指令errorvim
3条回答

如果你想用Vundle安装jedi vim插件,我不认为你应该把它放在~/.vim/bundle下。相反,请确保已正确设置了Vundle,如described in its “Quick start”,然后尝试在设置Vundle的行之后将此行添加到~/.vimrc中:

Plugin 'davidhalter/jedi-vim'

然后运行:PluginInstall并安装插件。在

确保你已经安装了绝地武士, 我用下面的命令解决了我的问题。。在

cd ~/.vim/bundle/jedi-vim  
git submodule update --init

(使用Ubuntu14.04LTS和Python2.7)

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

我做了以下事情。。。在

sudo apt-get install python-pip

sudo pip install jedi

如果你还没有这样做,你可以通过病原体将绝地添加到维姆中,如下所示。。。在

^{pr2}$

然后。。。将这一行添加到“~/.vimrc”文件中(如果不存在,请创建它)

call pathogen#infect()

然后保存并退出。在

最后。。。在

cd ~/.vim/bundle

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

就这样。在

相关问题 更多 >

    热门问题