File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11# vim composer
22Manage [ composer] ( https://getcomposer.org ) in Vim
3+
34``` vim
45:ComposerRun <args>
56```
7+ To run command for example ` :ComposerRun validate ` run command validate for your json
8+
9+ ``` vim
10+ :ComposerGet
11+ ```
12+ This command exec the installation flow of composer's install. This process require ` curl `
13+
614
715## Install
816``` vim
Original file line number Diff line number Diff line change 1515
1616if ! exists (" g:composer_cmd" )
1717 if filereadable (' ./composer.phar' )
18- let g: composer_cmd= ' ./composer.phar'
18+ let g: composer_cmd= ' php ./composer.phar'
1919 else
2020 let g: composer_cmd= ' composer'
2121 endif
2222endif
2323
2424command ! -narg =* ComposerRun call s: ComposerRunFunc (<q-args> )
25+ command ! ComposerGet call s: ComposerGetFunc ()
2526
2627function ! s: ComposerRunFunc (arg)
2728 let s: arg = a: arg
2829 exe " !" .g: composer_cmd ." " .s: arg
2930endfunction
3031
32+ function ! s: ComposerGetFunc ()
33+ exe " ! curl -Ss https://getcomposer.org/installer | php"
34+ endfunction
You can’t perform that action at this time.
0 commit comments