Vim Error E492 - Not an editor command: PluginInstall

前端 未结 4 1955
离开以前
离开以前 2021-02-12 11:26

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 erro

相关标签:
4条回答
  • 2021-02-12 12:09

    This could be as a result of end of line characters, CRLF for windows and LF for linux.
    Change your line endings.
    if on unix in your ~/.vimrc file :

    :set fileformat=unix :w

    0 讨论(0)
  • 2021-02-12 12:15

    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
    
    0 讨论(0)
  • 2021-02-12 12:30

    You can check the output of :version

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

    Note which vimrc file you are using, say you are configuring $HOME/vimrc, but vim is reading $HOME/.vimrc (without dot at filename)

    This happened to me.

    Hope this will help you.

    0 讨论(0)
  • 2021-02-12 12:33

    As mentioned here, I needed to set up Vundle like this:

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

    Afterwards, the error got resolved. By the way, I am on a FreeBSD 10.3-STABLE machine not macOS

    0 讨论(0)
提交回复
热议问题