cygwin下安装vim插件管理器vundle总是提示E117: Unknown function: vundle#end

【字号: 日期:2023-08-10浏览:16作者:雯心

问题描述

配置文件是github上的。rtp确认了N遍没问题

set nocompatible ' be iMproved, requiredfiletype off ' required

' set the runtime path to include Vundle and initializeset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()' ' alternatively, pass a path where Vundle should install plugins' 'call vundle#begin(’~/some/path/here’)'' ' let Vundle manage Vundle, requiredPlugin ’VundleVim/Vundle.vim’'' ' The following are examples of different formats supported.' ' Keep Plugin commands between vundle#begin/end.' ' plugin on GitHub repo' Plugin ’tpope/vim-fugitive’' ' plugin from http://vim-scripts.org/vim/sc...' Plugin ’L9’' ' Git plugin not hosted on GitHub' Plugin ’git://git.wincent.com/command-t.git’' ' git repos on your local machine (i.e. when working on your own plugin)' Plugin ’file:///home/gmarik/path/to/plugin’' ' The sparkup vim script is in a subdirectory of this repo called vim.' ' Pass the path to set the runtimepath properly.' Plugin ’rstacruz/sparkup’, {’rtp’: ’vim/’}' ' Install L9 and avoid a Naming conflict if you’ve already installed a' ' different version somewhere else.' Plugin ’ascenator/L9’, {’name’: ’newL9’}'' ' All of your Plugins must be added before the following linecall vundle#end() ' requiredfiletype plugin indent on ' required

问题解答

回答1:

cd .vim/bundle ,看看有没有Vundle.vim 里面有没有东西。

回答2:

估计是Vundle还没安装。用这个命令安装下:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

看下Vundle的Readme

相关文章: