From 2653f4bdfdedee8147970a7241d236502e3c6357 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 22 Jul 2015 17:52:56 +0900 Subject: [PATCH] Make it clear that &runtimepath is updated on plug#end() Close #260 --- README.md | 13 +++++++++++-- plug.vim | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d105014..4738d7b 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ A minimalist Vim plugin manager. [nv]: http://neovim.org/ [startup-time]: http://junegunn.kr/images/vim-startup-time.png -### Usage +### Installation [Download plug.vim](https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim) and put it in ~/.vim/autoload @@ -32,7 +32,15 @@ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim ``` -Edit your .vimrc +### Usage + +Add a vim-plug section to your .vimrc: + +1. Begin the section with `plug#begin()` +1. List the plugins with `Plug` commands +1. `plug#end()` to add the plugins to `&runtimepath` + +#### Example ```vim call plug#begin('~/.vim/plugged') @@ -60,6 +68,7 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install' } " Unmanaged plugin (manually installed and updated) Plug '~/my-prototype-plugin' +" Add plugins to &runtimepath call plug#end() ``` diff --git a/plug.vim b/plug.vim index cabeb4f..9102a09 100644 --- a/plug.vim +++ b/plug.vim @@ -33,6 +33,7 @@ " " Unmanaged plugin (manually installed and updated) " Plug '~/my-prototype-plugin' " +" " Add plugins to &runtimepath " call plug#end() " " Then reload .vimrc and :PlugInstall to install plugins.