Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/superDross/class-builder
Quickly write class declarations in vim.
https://github.com/superDross/class-builder
Last synced: 4 months ago
JSON representation
Quickly write class declarations in vim.
- Host: GitHub
- URL: https://github.com/superDross/class-builder
- Owner: superDross
- License: gpl-3.0
- Created: 2019-04-14T13:36:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-20T17:56:31.000Z (over 2 years ago)
- Last Synced: 2024-06-10T01:38:35.100Z (5 months ago)
- Language: Vim script
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Class Builder
Quickly write class declarations in vim.## Usage
Executing `:Class Person name age` within a `.py` file results in the following.
```python
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
```
Executing the same command above in a `.js` file results in the following.
```javascript
class Person {
constructor(name, age) {
this.name = name;
this.age = age;
}
}
```## Installation
For vim-plug
```vim
Plug 'superDross/class-builder'
```