试图使用Vundle,但是vundle#begin()是一个未知的功能。运行时路径是正确的

问题描述 投票:1回答:1

我正在尝试使用Vundle来管理gVim插件,但是在我的gvimrc文件中启动Vundle时我无法通过错误。 “未知功能:vundle#begin()

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

我的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个回答
0
投票

也许它是由Windows路径引起的,试试这个:

let $vundle='C:/Users/username/.vim/bundle/Vundle.vim'
set rtp+=$vundle
© www.soinside.com 2019 - 2024. All rights reserved.