{"id":31333362,"url":"https://github.com/nhogg/vim-auto-class","last_synced_at":"2026-05-15T01:41:29.512Z","repository":{"id":305026121,"uuid":"1021655138","full_name":"Nhogg/Vim-Auto-Class","owner":"Nhogg","description":"Automatically generate Java class structure in Vim.","archived":false,"fork":false,"pushed_at":"2025-07-17T19:28:07.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-17T22:45:06.290Z","etag":null,"topics":["java","plugin","vim"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nhogg.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-17T18:22:08.000Z","updated_at":"2025-07-17T22:09:38.000Z","dependencies_parsed_at":"2025-07-18T01:26:22.490Z","dependency_job_id":null,"html_url":"https://github.com/Nhogg/Vim-Auto-Class","commit_stats":null,"previous_names":["nhogg/vim-auto-class"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Nhogg/Vim-Auto-Class","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nhogg%2FVim-Auto-Class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nhogg%2FVim-Auto-Class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nhogg%2FVim-Auto-Class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nhogg%2FVim-Auto-Class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nhogg","download_url":"https://codeload.github.com/Nhogg/Vim-Auto-Class/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nhogg%2FVim-Auto-Class/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277009873,"owners_count":25744543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"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":["java","plugin","vim"],"created_at":"2025-09-26T01:53:16.784Z","updated_at":"2025-09-26T01:53:18.905Z","avatar_url":"https://github.com/Nhogg.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto-Generate Class Boilerplates\nThis configuration script enables automatic generation of a basic Java class structure for use in Vim or NeoVim. I got tired of having to manually type out classes during development, so I got to work productively procrastinating and this was the result. Whenever you create a new .java file with Vim, the package declaration, class definition, and a main method are generated. The class and package names are inferred from the file's name and location within a standard Java project structure (based on Maven and Gradle).\n\nFeatures:\n- Automatic: when this script is in your .vimrc, generation is automatic\n- Dynamic: the public class name is auto-matched to the filename\n- Smart: package declarations are auto-generated by analyzing the file's path relative to the project root\n- Javadoc: includes a basic Javadoc that can easily be updated\n- Modular: this template is easy to update via the vimrc. More info below\n-\n# Installation and Configuration\nNo additional plugins are required for this as it is written in pure Vimscript. Just clone the repo (or copy and paste) and add the code to your ~/.vimrc or init.vim file.\n\n# Usage\n1. Save your Vim configuration: Ensure the code above is saved in your ~/.vimrc or init.vim\n2. Restart Vim\n3. Create a new Java file: either vim test.java or :e path/to/your/package/MyClass.java\n4. If the file is actually new, the boilerplate will be automatically inserted and your cursor will be placed inside the class.\n\n# Customization:\nAuthor Name: Change \"Your Name\" in the ```call add(boilerplate, ' * @author Your Name')``` to your name\nBoilerplate content: you can easily add or remove lines from the list within the JavaBoilerPlate() function to customize what is generated.\n\n# Contribution\nFeel free to make suggestions via a pull request, or fork this repo and put your own spin on it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhogg%2Fvim-auto-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhogg%2Fvim-auto-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhogg%2Fvim-auto-class/lists"}