加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

macos – Vim错误E492 – 不是编辑器命令:PluginInstall

发布时间:2020-12-16 01:07:00 所属栏目:安全 来源:网络整理
导读:我正在尝试在我的Mac vim上安装Vundle.我按照以下 link来获得Vundle.我还配置了我的.vimrc文件.但是当我尝试PluginInstall时,我收到以下错误. E492: Not an editor command: PluginInstall 我的.vimrc包含以下内容: 1 set nocompatible "https://stackoverf
我正在尝试在我的Mac vim上安装Vundle.我按照以下 link来获得Vundle.我还配置了我的.vimrc文件.但是当我尝试PluginInstall时,我收到以下错误.
E492: Not an editor command: PluginInstall

我的.vimrc包含以下内容:

1 set nocompatible    "https://stackoverflow.com/questions/5845557/in-a-vimrc-is-set-nocc
    ompatible-completely-useless
  2
  3 " https://github.com/gmarik/Vundle.vim
  4 filetype off                  " required
  5
  6 " set the runtime path to include Vundle and initialize
  7 set rtp+=~/.vim/bundle/Vundle.vim
  8 call vundle#begin()
  9 " alternatively,pass a path where Vundle should install plugins
 10 "call vundle#begin('~/some/path/here')
 11
 12 " let Vundle manage Vundle,required
 13 Plugin 'gmarik/Vundle.vim'
 14
 15 " All of your Plugins must be added before the following line
 16 call vundle#end()            " required
 17 filetype plugin indent on    " required

我的vim目录:

Username-MacBook-Pro:bundle u1$pwd
/Users/u1/.vim/bundle
Username-MacBook-Pro:bundle u1$ls
Vundle.vim

我还检查了this stackoverflow帖子.但它没有解决我的问题.为什么会抛出这样的错误,我怎样才能找到我的问题到底是什么.

我不得不将Vundle安装到Plugin目录而不是Bundle.它解决了这个问题.
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/plugin/Vundle.vim

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读