2015-05-03 9 views
6

Sto cercando di installare Vundle sul mio Macvim. Ho seguito il seguente link per ottenere Vundle. Ho anche configurato il mio file .vimrc. Ma quando provo PluginInstall, ottengo il seguente errore.Errore Vim E492 - Non è un comando editor: PluginInstall

E492: Not an editor command: PluginInstall 

mio Vimrc contiene quanto segue:

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 

mio vim directory:

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

Ho anche controllato this StackOverflow posta. Ma non ha risolto il mio problema. Perché genera un tale errore e come posso trovare qual è esattamente il mio problema.

risposta

18

Ho dovuto installare Vundle nella directory Plugin invece di Bundle. Ha risolto il problema.

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/plugin/Vundle.vim 
+0

Bello, ha lavorato per me. –

0

È possibile controllare l'output di: versione

system vimrc file: "/etc/vimrc" 
    user vimrc file: "$HOME/.vimrc" 
2nd user vimrc file: "~/.vim/vimrc" 

Nota che vimrc file che si sta utilizzando, per esempio si sta configurando $HOME/vimrc, ma Vim è la lettura $HOME/.vimrc (senza punto alla filename)

Questo è successo a me.

Spero che questo ti possa aiutare.

0

Come accennato here, avevo bisogno di creare Vundle come questo:

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

In seguito, l'errore ottenuto risolto. A proposito, sono su una macchina FreeBSD 10.3-STABLE non macOS