{"id":28528900,"url":"https://github.com/yohannfra/vim-protect-header","last_synced_at":"2026-04-16T14:02:53.261Z","repository":{"id":119460322,"uuid":"225624016","full_name":"Yohannfra/Vim-Protect-Header","owner":"Yohannfra","description":"A simple vim plugin to quickly protect c/c++ header files","archived":false,"fork":false,"pushed_at":"2024-04-21T17:53:34.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T23:38:17.818Z","etag":null,"topics":["c","cpp","plugin","vim"],"latest_commit_sha":null,"homepage":null,"language":"Vim Script","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/Yohannfra.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,"dei":null}},"created_at":"2019-12-03T13:15:45.000Z","updated_at":"2024-04-21T17:53:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"94110429-e8a5-4c6c-8db9-fc58d8c71850","html_url":"https://github.com/Yohannfra/Vim-Protect-Header","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Yohannfra/Vim-Protect-Header","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yohannfra%2FVim-Protect-Header","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yohannfra%2FVim-Protect-Header/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yohannfra%2FVim-Protect-Header/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yohannfra%2FVim-Protect-Header/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yohannfra","download_url":"https://codeload.github.com/Yohannfra/Vim-Protect-Header/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yohannfra%2FVim-Protect-Header/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265443422,"owners_count":23766407,"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","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":["c","cpp","plugin","vim"],"created_at":"2025-06-09T13:13:09.015Z","updated_at":"2025-10-24T00:26:29.603Z","avatar_url":"https://github.com/Yohannfra.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vim-Protect-Header\nA simple vim plugin to quickly protect c/c++ header files\n\nExample: \\\n![alt text](.github/demo.gif \"Utilisation example\")\n\n## Installation\n\n### Using Plug\n```\nPlug 'Yohannfra/Vim-Protect-Header'\n```\n\n### Manual installation\n```\ngit clone https://github.com/Yohannfra/Vim-Protect-Header/ ~/.vim/plugin/\n```\n\n## Configuration\n\nYou can call the function automatically when creating a .h/.hpp file.\\\ninsert this line in your .vimrc\n```vim\nautocmd BufNewFile *.h,*.hpp :Protect\n```\n\nIf you want to add a comment after the endif so it looks like that\n```c\n#ifndef MY_HEADER_HPP\n#define MY_HEADER_HPP\n\n#endif // MY_HEADER_HPP\n```\n\nAdd this line to your .vimrc\n```vim\nlet g:Protect_Header_Endif_Comment = 1\n```\n\n## How to use\n\n```\n:Protect\n```\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyohannfra%2Fvim-protect-header","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyohannfra%2Fvim-protect-header","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyohannfra%2Fvim-protect-header/lists"}