Vundle - E492: Not an editor command: PluginInstall

后端 未结 4 1528
眼角桃花
眼角桃花 2021-01-13 04:35

I am having trouble getting Vundle for Vim to work (I am on Ubuntu 14.04). Here the relevant part from my .vimrc

  4 \" For Vundle$                                   


        
相关标签:
4条回答
  • 2021-01-13 04:55

    This happened to my work machine (Windows) because I was using Cygwin ViM. The problem was that when I cloned Vundle.vim it used Windows style line endings and the Vundle plugin wasn't loading. I had to run find ~/.vim -type f -iname '*.vim' -exec dos2unix {} \+ to convert my files to unix line endings before it worked.

    This assumes you have dos2unix installed.

    0 讨论(0)
  • 2021-01-13 04:59

    You are missing

    call vundle#end()
    

    between lines 26 and 28.

    Note that Vundle's API has changed: it's not :Bundle* anymore, it's :Plugin*.

    0 讨论(0)
  • 2021-01-13 05:01

    Turns out that call vundle#rc() seems to be deprecated. Using call vundle#begin() fixed the issue for me.

    0 讨论(0)
  • 2021-01-13 05:03

    This error message came up may be because your vi is not vim.

    try install the vim first. If it let you, that means is it the problem.

    sudo yum install vim
    

    set alias

    alias vi=vim
    

    Then try run vi and

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