FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vim-create/plugin/vim-create.vim at master · vim-php/vim-create · GitHub
vim-php
/
vim-create
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
2
Code
Issues
5
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
vim-create
/
plugin
/
vim-create.vim
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (31 loc) · 1.38 KB
Breadcrumbs
vim-create
/
plugin
/
vim-create.vim
Copy path
File metadata and controls
36 lines (31 loc) · 1.38 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"
------------------------------------------------------------------------------
"
Vim Composer {{{
"
Author:
Simone Gentili <sensorario@gmail.com>
"
Description:
"
PHP Project creator for vim
"
Requires:
Vim
"
License:
MIT
"
}}}
"
------------------------------------------------------------------------------
command
!
CreateNewPHPProject :
call
g:
CreateNewPHPPRojectFunction
()
<CR>
command
!
CreateNewSymfonyProject :
call
StartNewSymfonyLtsProjectFunction
()
<CR>
command
!
CreateNewPennyProject :
call
StartNewPennyProjectFunction
()
<CR>
function
!
g:
CreateNewPHPPRojectFunction
()
exec
"
!curl -Ss https://getcomposer.org/installer | php
"
let
l:
project_name
=
input
(
'
Enter project name:
'
)
exec
'
!php composer.phar create-project sensorario/starter
'
.
l:
project_name
.
'
v1.0.4
'
exec
'
!mv composer.phar
'
.
l:
project_name
.
'
/
'
exec
'
qa
'
endfunction
function
!
StartNewSymfonyLtsProjectFunction
()
exec
'
!clear
'
if
1
!=
filereadable
(
"
/usr/local/bin/symfony
"
)
exec
'
!sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony
'
exec
'
!sudo chmod a+x /usr/local/bin/symfony
'
endif
exec
'
!symfony new
'
.
input
(
'
Project name:
'
)
endfunction
function
!
StartNewPennyProjectFunction
()
exec
'
!clear
'
exec
'
!composer create-project penny/classic-app -s dev
'
.
input
(
'
Project name:
'
)
endfunction
Back
|
FazBrowse Home
|
New Git URL