Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vim vundle#rc()函数调用错误_Vim_Vundle - Fatal编程技术网

Vim vundle#rc()函数调用错误

Vim vundle#rc()函数调用错误,vim,vundle,Vim,Vundle,您好,我正在尝试安装一些插件,并使用vundle作为我的插件管理器 当我打开gvim时,这就是我得到的错误 Error detected while processing /home/user/.vimrc: line 9: E117: Unknown function: vundle#rc line 12: E492: Not an editor command: Bundle 'gmarik/vundle' 下面是我的.vimrc文件顶部的片段 set nocompatible

您好,我正在尝试安装一些插件,并使用vundle作为我的插件管理器

当我打开gvim时,这就是我得到的错误

Error detected while processing /home/user/.vimrc:
line    9:
E117: Unknown function: vundle#rc
line   12:
E492: Not an editor command: Bundle 'gmarik/vundle'
下面是我的.vimrc文件顶部的片段

set nocompatible
filetype off

set rtp+=~/.vim/bundle/vundel/
call vundle#rc()

"Required Bundel Statement 
Bundle 'gmarik/vundle'


"User Installed Bundles
Bundle 'neocomplcache/neocomplcache.vim'
Bunlde 'perlomni/perlomni.vim'


filetype plugin indent on
filetype on
syntax on
我根据git hub和随它下载的read me安装了它

我没有访问超级用户帐户的权限,因此尝试unistall和重新安装vim将不起作用

我还尝试安装了病原体,这对一些捆绑包有效,但对perlomni.vim无效,因为它是一个ftplugin,病原体没有正确地附加捆绑包。经过研究,我看到大多数人说vundle比病原体更好

有人能帮我让包正常工作吗

我尝试使用从git存储库下载的捆绑包或存储在共享根目录上的捆绑包


谢谢

您在
设置rtp
行中将vundle拼写错误

set rtp+=~/.vim/bundle/vundel/
应该是

set rtp+=~/.vim/bundle/vundle/

^^^我是这样做的……那么,当安装Bundle时,您是否必须自己将git clone命令安装到您希望安装它们的目录中,然后将Bundle命令设置到该目录中?当我运行BundleInstall时,它总是试图重新安装它们。如果我自己安装它们,我应该能够设置Bunle'mydir/destbundle.vim',这应该很好,对吗?在这种情况下,我可以将我想要安装这些插件的任何目录制作成cd,并在该目录中执行git clone cammand,对吗?@user2479059我不使用vundle,我只使用了pathogen。但据我所知,您不应该自行安装这些捆绑包。vundle应该为您解决所有这些问题。因此,添加
Bundle'mydir/destbundle.vim'
vundle将启动(在BundleInstall之后),并为您执行git克隆。我不知道你是否可以自己添加目录。^^^我开始使用病原体,这对我尝试使用的一些捆绑包有效,但对perlomni之类的捆绑包无效……。我应该尝试切换回病原体吗?似乎两者都有自己的不完善之处,您可以轻松安装,也不能轻松安装,并且必须在其他方面使用变通方法。