Support { 'do': ':VimCommand' } notation

Close #450
This commit is contained in:
Junegunn Choi
2016-07-13 23:01:41 +09:00
parent 460fbe82e0
commit 17996cedce
3 changed files with 32 additions and 4 deletions

View File

@@ -201,6 +201,12 @@ Plug 'Shougo/vimproc.vim', { 'do': 'make' }
Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }
```
If the value starts with `:`, it will be recognized as a Vim command.
```vim
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
```
If you need more control, you can pass a reference to a Vim function that
takes a single argument.