vim plug-in - cloned vim configuration, how to make vundle automatically download the plug-in?
大家讲道理
大家讲道理 2017-05-16 16:35:55
0
2
617

Uploaded the configuration to github myself, and then cloned it, I found that I had to execute PluginInstall in vim to download the plug-in. How can I trigger this download in the script?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
我想大声告诉你
#install.sh
vim +BundleInstall +qall
PHPzhong

Can be added in vimrc


let hasVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
    echo "Installing Vundle..."
    echo ""
    silent !mkdir -p ~/.vim/bundle
    silent !git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle
    let hasVundle=0
endif

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()


这里配置你的插件列表xxx

if hasVundle == 0
    echo "Installing Plugins, please ignore key map error messages"
    echo ""
    :PluginInstall
endif

Automatically download Vundle and install plug-ins

You can refer to tao12345666333/vim On GitHub

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!