An open API service indexing awesome lists of open source software.

https://github.com/kurama622/pycomment

Generate Python docstring to your Python source code.
https://github.com/kurama622/pycomment

Last synced: 3 months ago
JSON representation

Generate Python docstring to your Python source code.

Awesome Lists containing this project

README

          

# pycomment

![vim](https://img.shields.io/badge/vim-neovim-red) ![gvim](https://img.shields.io/badge/gvim-blue)

ENGLISH | [δΈ­ζ–‡η‰ˆ](./README_cn.md)

## Show
![pycomment](./screenshut/pycomment1.gif)

![pycomment2](./screenshut/pycomment2.gif)

## Introduction

Automatic generate docstring including inputed parameters, returned variables, and their types.

## Install

- [x] vim-plug
```vim
Plug 'demonlord1997/pycomment', {'for','python'}
```
- [x] dein
```vim
[[plugins]]
repo = 'demonlord1997/pycomment'
on_ft = 'python'
```
## Settings

If you want to use default settings, you can write following contents in your configure.
```vim
let g:pycomment_mark_mapping = 1
```
In this case, pressing `Ctrl+c` in the function definition or the function body will expand docstring. Press ` + ` will replace `<++>` but you will not enter insert mode.

```vim
let g:pycomment_mark_mapping = 0
nmap
nmap (pycomment)
nmap /<++>:nohlsearchc4l
```
Press `Ctrl+c` will expand docstring.

Press ` + ` will replace `<++>` and enter insert mode.