Vundle for VIM is not working on Ubuntu

前端 未结 7 1146
萌比男神i
萌比男神i 2021-02-13 10:38

I installed Vundle via the instructions given at this blog http://web.archive.org/web/20120731003342/http://www.charlietanksley.net/philtex/sane-vim-plugin-management

bu

相关标签:
7条回答
  • 2021-02-13 11:16

    Vundle is installed in

    ~/.vim/bundle/vundle
    

    so this line

    set rtp+=~/.vim/vundle.git/
    

    should be

    set rtp+=~/.vim/bundle/vundle
    

    ~/.vim/vundle.git/
    

    is the path of a folder containing everything that makes a Git repository a Git repository. You can't really expect Vim to find usable scripts there.

    0 讨论(0)
  • 2021-02-13 11:20

    The .vimrc here worked for me: https://github.com/wavded/vim-stylus/issues/26#issuecomment-13114948

    0 讨论(0)
  • 2021-02-13 11:22

    I encountered the same problem. After tried all the methods mentioned recommended by others and failed. Finally, I found that on our Ubuntu 14.04.1 service, VIM is not installed as default!

    It is hard to realize this problem, since VIM users like me just used to type "vi" instead of "vim", and it shows a "VIM - improved VI" welcome page.

    So make sure you have installed VIM:

    whereis vim
    

    Or just type:

    vim
    

    If it is not installed, do as it recommends:

    sudo apt-get install vim
    
    0 讨论(0)
  • 2021-02-13 11:24

    I just met the problem and I resolved it after reading

    https://github.com/gmarik/vundle/issues/168

    It says.

    This might happen if you call the vi editor explicitly (to avoid any aliases) by /usr/bin/vi instead of vim. A plain "git commit" would do this for me before I configured it to use vim instead. (git config --global core.editor "vim")

    0 讨论(0)
  • 2021-02-13 11:29

    as @romainl said my vundle installed in .vim/bundle/Vundle.vim/, so you need to change line : set rtp+=~/.vim/vundle.git/

    to set rtp+=~/.vim/bundle/Vundle.vim/

    yeah thank you ~

    0 讨论(0)
  • 2021-02-13 11:30

    vi ~/.gitconfig

    and

    [core]
    
     autocrlf = false
    

    set

    [core]
    
     autocrlf = true
    

    then $rm -rf ~/.vim/bundle/vundle

    and $git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

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