Make it clear that &runtimepath is updated on plug#end()

Close #260
This commit is contained in:
Junegunn Choi 2015-07-22 17:52:56 +09:00
parent 69d6c9d545
commit 2653f4bdfd
2 changed files with 12 additions and 2 deletions

View File

@ -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()
```

View File

@ -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.