【问题标题】:Attempting to use Vundle, but vundle#begin() is an unknown function. Runtimepath is correct尝试使用 Vundle,但 vundle#begin() 是一个未知函数。运行时路径正确
【发布时间】:2017-12-15 19:20:52
【问题描述】:

我正在尝试使用 Vundle 来管理 gVim 插件,但在我的 gvimrc 文件中启动 Vundle 时无法克服错误。 "未知函数:vundle#begin()"

这通常是一些运行时路径的问题,但我可以清楚地看到 Vundle.vim 的目录在我的运行时路径中。

我的 gvimrc 文件在 C:\Users\Username,我的 vim 安装在 C:\Program Files (x86)\Vim。我的 Vundle 安装在 C:\Users\Username\.vim\bundle\Vundle.vim... 中,我的运行时路径变量清楚地包含此文件路径。

这是我的gvimrc的相关文字:

set nocompatible        
syntax on
filetype off            

" set the runtime path to include Vundle and initialize 
set rtp+=C:\Users\username\\.vim\bundle\Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'path etc.'
call vundle#end()
filetype plugin indent on

我可以成功运行 PluginInstall 并安装一些插件,但我无法让 vim 使用 Vundle。我还能做什么?

【问题讨论】:

    标签: vim vundle


    【解决方案1】:

    可能是windows路径造成的,试试这个:

    let $vundle='C:/Users/username/.vim/bundle/Vundle.vim'
    set rtp+=$vundle
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多