【发布时间】: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。我还能做什么?
【问题讨论】: