Vim-Plug plugin manager for Vim

Vim-Plug updating the plugins it is managing
Vim-Plug updating the plugins it is managing

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.vim file to the ~/.vim/autoload directory:
$ cd ~/.vim/autoload
$ curl https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -o plug.vim
  • Add lines to your .vimrc to 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()
  • :PlugUpdate to install or update the plugins from Github.

  • :PlugClean to remove the files of plugins which are no longer managed. If you do not run this command, files from unused plugins will be retained.

  • :PlugUpgrade to update the Vim-Plug plugin itself.

Tried with: Vim 7.4 and Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s