本文介绍了Vim错误E492-不是编辑器命令:PluginInstall的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Macvim上安装Vundle.我遵循了以下链接以获取Vundle.我还配置了.vimrc文件.但是当我尝试使用PluginInstall时,出现以下错误.
I am trying to install Vundle on my Macvim. I followed the following link to get Vundle. I also configured my .vimrc file. But when I try PluginInstall, I get the following error.
E492: Not an editor command: PluginInstall
我的.vimrc包含以下内容:
My .vimrc contains the following:
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
我还检查了此 stackoverflow帖子.但这并不能解决我的问题.为什么会引发这样的错误,我怎么能找到我的问题到底是什么.
I also checked this stackoverflow post. But it didn't solve my problem. Why does it throw such an error and how can I find what exactly is my issue.
推荐答案
我必须将Vundle安装到Plugin目录而不是Bundle中.它解决了这个问题.
I had to install Vundle into Plugin directory instead of Bundle. It solved the issue.
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/plugin/Vundle.vim
这篇关于Vim错误E492-不是编辑器命令:PluginInstall的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!