diff --git a/README.md b/README.md index 8ccc8e4..eecc98c 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,10 @@ To run command for example `:ComposerRun validate` run command validate for your ``` This command exec the installation flow of composer's install. This process require `curl` +```vim +:ComposerInstall [--no-dev ..] +``` +This command exec `composer install` ## Install ```vim diff --git a/plugin/vim-composer.vim b/plugin/vim-composer.vim index 29ccfb6..b41a151 100644 --- a/plugin/vim-composer.vim +++ b/plugin/vim-composer.vim @@ -22,6 +22,7 @@ if !exists("g:composer_cmd") endif command! -narg=* ComposerRun call s:ComposerRunFunc() +command! -narg=* ComposerInstall call s:ComposerRunFunc("install ".) command! ComposerGet call s:ComposerGetFunc() function! s:ComposerRunFunc(arg)