Update doc

This commit is contained in:
Junegunn Choi 2013-09-11 00:08:51 +09:00
parent 9e9655f947
commit b84c7094fd

View File

@ -3,32 +3,27 @@ vim-plug
Vim plugin manager. Vim plugin manager.
Why? ### Why?
----
Because I can? Because I can?
Pros. ### Pros.
-----
- Marginally simpler - Marginally simpler
- Parallel installation/update (requires +ruby) - Parallel installation/update (requires +ruby)
- Alternative directory structure: user/repo/branch - Alternative directory structure: user/repo/branch
Cons. ### Cons.
-----
Everything else. Everything else.
Usage ### Usage
-----
Download plug.vim and put it in ~/.vim/autoload Download plug.vim and put it in ~/.vim/autoload
```sh ```sh
mkdir -p ~/.vim/autoload mkdir -p ~/.vim/autoload
curl -fL -o ~/.vim/autoload/plug.vim \ curl -fL -o ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim
https://raw.github.com/junegunn/vim-plug/master/plug.vim
``` ```
Edit your .vimrc Edit your .vimrc
@ -42,18 +37,18 @@ Plug 'junegunn/vim-easy-align'
" ... " ...
``` ```
Then :PlugInstall to install plugins. (default: ~/.vim/plugged) Then :PlugInstall to install plugins. (Default plugin directory: `~/.vim/plugged`)
You can change the location of the plugins with plug#init(path) call.
Commands You can change the location of the plugins with `plug#init(path)` call.
--------
| Command | Argument | Description | ### Commands
| ----------- | ---------- | ------------------------- |
| PlugInstall | [#threads] | Install plugins |
| PlugUpdate | [#threads] | Install or update plugins |
| PlugClean | | Remove unused directories |
| PlugUpgrade | | Upgrade vim-plug itself |
(#threads default = number of plugins) | Command | Description |
| ---------------------- | ------------------------- |
| PlugInstall [#threads] | Install plugins |
| PlugUpdate [#threads] | Install or update plugins |
| PlugClean | Remove unused directories |
| PlugUpgrade | Upgrade vim-plug itself |
(Default #threads = Number of plugins)