我按照mbrochh的指令https://github.com/mbrochh/vim-as-a-python-ide将我的vim构建为python IDE。但在我将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我希望有人能解决这个问题,并感谢你的帮助。
发布于 2014-01-29 23:05:08
如果你想用Vundle来安装jedi-vim插件,我认为你不应该把它放在~/.vim/bundle下。相反,请确保您正确地将Vundle设置为described in its “Quick start”,然后尝试在设置Vundle的行后将以下行添加到您的~/.vimrc中:
Plugin 'davidhalter/jedi-vim'然后运行:PluginInstall,插件就应该安装好了。
发布于 2014-03-04 16:58:10
确保你已经安装了jedi,我用下面的命令解决了我的问题。
cd ~/.vim/bundle/jedi-vim
git submodule update --init发布于 2014-10-22 22:08:27
(将ubuntu 14.04LTS与Python 2.7配合使用)
我遇到了一个非常类似的问题,我发现我需要将Jedi集成到我的Python安装中。
我做了以下事情。
sudo apt-get install python-pip
sudo pip install 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就这样。
https://stackoverflow.com/questions/21426329
复制相似问题