{"id":20368845,"url":"https://github.com/autholykos/vim-gcr","last_synced_at":"2026-05-28T01:32:03.968Z","repository":{"id":212271965,"uuid":"626920464","full_name":"autholykos/vim-gcr","owner":"autholykos","description":"A Vim/Neovim plugin that uses LLM to help with rewriting documentation and comments to comply with linting rules (stay within a character limit, etc)","archived":false,"fork":false,"pushed_at":"2023-04-12T14:50:39.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-07T08:54:06.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/autholykos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-04-12T12:28:53.000Z","updated_at":"2023-04-12T13:32:19.000Z","dependencies_parsed_at":"2023-12-13T12:10:33.450Z","dependency_job_id":"ed4ec581-969c-4fd0-a853-41887fb3e35d","html_url":"https://github.com/autholykos/vim-gcr","commit_stats":null,"previous_names":["autholykos/vim-gcr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/autholykos/vim-gcr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autholykos%2Fvim-gcr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autholykos%2Fvim-gcr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autholykos%2Fvim-gcr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autholykos%2Fvim-gcr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autholykos","download_url":"https://codeload.github.com/autholykos/vim-gcr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autholykos%2Fvim-gcr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33590884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T00:43:19.933Z","updated_at":"2026-05-28T01:32:03.942Z","avatar_url":"https://github.com/autholykos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-gpt-comment-reflow\n\nA Vim/Neovim plugin that uses GPT-3.5 to rewrite documentation and comments to stay within a character limit and generate missing docstrings for Python functions.\n\n## Installation\n\n1. Install the plugin using a plugin manager, e.g., [vim-plug](https://github.com/junegunn/vim-plug). Add the following line to your `init.vim` or `.vimrc`:\n\n```vim\nPlug 'autholykos/vim-gpt-comment-reflow'\n```\n\n2. Run :PlugInstall in Vim or Neovim to install the plugin.\n3. Install the required Python package:\n\n```bash\npip install requests pynvim\n```\n\n## Configuration\n\n1. Add your LLM API key and desired maximum line length to your init.vim or .vimrc. Use environment variables to avoid exposing sensitive information:\n```vim\nlet $GPT_COMMENT_REFLOW_API_KEY = \"your_api_key_here\"\nlet g:gpt_comment_reflow_api = \"your_api_url_here\"\nlet g:gpt_comment_reflow_max_line_length = 80\n```\n2. Replace `your_api_key_here` with your actual API key and `your_api_url_here` with the url to the LLM APIs you intend to use (it defaults to [GPT-3.5](https://api.openai.com/v1/engines/davinci-codex/completions))\n\n## Usage\n\nTo reflow comments and generate missing docstrings in a Python file, run the following command in Vim or Neovim:\n\n```vim\n:GPTCommentReflow\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautholykos%2Fvim-gcr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautholykos%2Fvim-gcr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautholykos%2Fvim-gcr/lists"}