vim - :PluginInstall 不是编辑器命令?

浏览:41日期:2023-08-02

问题描述

windows上 用vundle 来安装插件,已经安装配置了 vundle, 执行 :PluginInstall 时 提示 不是编辑器命令

set nocompatible ' be iMproved, requiredfiletype off ' required' set the runtime path to include Vundle and initializeset rtp+=~/vimfiles/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 ’gmarik/Vundle.vim’' The following are examples of different formats supported.' Keep Plugin commands between vundle#begin/end.' plugin on GitHub repo' All of your Plugins must be added before the following linePlugin ’git://github.com/scrooloose/nerdtree.git’Plugin ’git://github.com/scrooloose/nerdtree.git’call vundle#end() ' requiredfiletype plugin indent on ' required

问题解答

回答1:

set rtp+=~/vimfiles/bundle/Vundle.vim估计是这个目录不对。放到.vim(他文档里说的)下试试。

回答2:

我也是一样的问题,我把路径都设成绝对路径就好了

set rtp+=D://Programs/Vim/vimfiles/bundle/Vundle.vim/call vundle#begin(’D://Programs/Vim/vimfiles/’)

相关文章: