Vim-Plug is a plugin manager for Vim which can automatically install, upgrade or delete plugins for you. The plugins you want to manage should be available on Github.
- To install Vim-Plug, download the
plug.vimfile to the
$ cd ~/.vim/autoload $ curl https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -o plug.vim
- Add lines to your
.vimrcto load Vim-Plug. You also indicate the directory where you want it to store the plugins it manages. Finally, you also list the plugins you want to manage. Github is assumed to be source of plugins, so you just need to provide the rest of the plugin URL. Here is an example:
call plug#begin('~/.vim/plugins_by_vimplug') Plug 'kien/ctrlp.vim' Plug 'scrooloose/syntastic' Plug 'majutsushi/tagbar' call plug#end()
:PlugUpdateto install or update the plugins from Github.
:PlugCleanto remove the files of plugins which are no longer managed. If you do not run this command, files from unused plugins will be retained.
:PlugUpgradeto update the Vim-Plug plugin itself.
Tried with: Vim 7.4 and Ubuntu 14.04