Update doc
This commit is contained in:
parent
9e9655f947
commit
b84c7094fd
1 changed files with 16 additions and 21 deletions
37
README.md
37
README.md
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue