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 1
1
# vim composer
2
2
Manage [ composer] ( https://getcomposer.org ) in Vim
3
+
3
4
``` vim
4
5
:ComposerRun <args>
5
6
```
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
+
6
14
7
15
## Install
8
16
``` vim
Original file line number Diff line number Diff line change 15
15
16
16
if ! exists (" g:composer_cmd" )
17
17
if filereadable (' ./composer.phar' )
18
- let g: composer_cmd= ' ./composer.phar'
18
+ let g: composer_cmd= ' php ./composer.phar'
19
19
else
20
20
let g: composer_cmd= ' composer'
21
21
endif
22
22
endif
23
23
24
24
command ! -narg =* ComposerRun call s: ComposerRunFunc (<q-args> )
25
+ command ! ComposerGet call s: ComposerGetFunc ()
25
26
26
27
function ! s: ComposerRunFunc (arg)
27
28
let s: arg = a: arg
28
29
exe " !" .g: composer_cmd ." " .s: arg
29
30
endfunction
30
31
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