Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amashigeseiji/bearsunday.vim
vim plugin for bearsunday
https://github.com/amashigeseiji/bearsunday.vim
bearsunday vim-plugin
Last synced: 14 days ago
JSON representation
vim plugin for bearsunday
- Host: GitHub
- URL: https://github.com/amashigeseiji/bearsunday.vim
- Owner: amashigeseiji
- Created: 2019-11-09T18:16:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-19T20:35:41.000Z (8 months ago)
- Last Synced: 2024-12-15T15:34:14.227Z (19 days ago)
- Topics: bearsunday, vim-plugin
- Language: Vim Script
- Size: 32.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BEAR.Sunday vim plugin
## Resource
`BEARResource` command calls api from editing buffer.
usage:
```vim
:BEARResource {method} [{params}]
```example:
```php
class EditingResource extends ResourceObject
{
public function onGet(int $id, string $name) : ResourceObject
{
$this->body = [
'message' => 'hello, ' . $name,
'id' => $id
];return $this;
}
}
``````vim
:BEARResource get id=3 name=Foo
```and buffer will open with response.
```
php bin/page.php get /editingResource?id=3&name=Foo"200 OK",
"Content-Type: application/hal+json",
"ETag: 703429597",
"Last-Modified: Sun, 10 Nov 2019 06:47:53 GMT",{
"message": "hello, Foo",
"id": 3
}
```you can close buffer with type `q`.
## Skeleton
if you open new file in `src/Resource/App` or `src/Resource/Page` , new file will open with skeleton code.
example:
```sh
# in your shell
$ vim src/Resource/App/SomeNewResource.php
``````php