我正在尝试在我的 Macvim 上安装 Vundle。我遵循以下link https://github.com/gmarik/Vundle.vim获取 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 https://stackoverflow.com/questions/24185580/vundle-e492-not-an-editor-command-plugininstall堆栈溢出帖子。但这并没有解决我的问题。为什么它会抛出这样的错误,我怎样才能找到我的问题到底是什么。
我必须将 Vundle 安装到 Plugin 目录而不是 Bundle 中。它解决了这个问题。
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/plugin/Vundle.vim
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)