{"id":15997557,"url":"https://github.com/bfrg/vim-c-cpp-modern","last_synced_at":"2025-05-15T14:04:33.537Z","repository":{"id":37663143,"uuid":"70663047","full_name":"bfrg/vim-c-cpp-modern","owner":"bfrg","description":"Extended Vim syntax highlighting for C and C++ (C++11/14/17/20/23)","archived":false,"fork":false,"pushed_at":"2025-01-15T10:16:14.000Z","size":95,"stargazers_count":587,"open_issues_count":2,"forks_count":42,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-15T14:04:30.713Z","etag":null,"topics":["cpp","cpp11","cpp14","cpp17","cpp20","cpp23","highlighting","syntax","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","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/bfrg.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}},"created_at":"2016-10-12T04:34:27.000Z","updated_at":"2025-05-14T20:01:21.000Z","dependencies_parsed_at":"2023-12-30T01:23:45.504Z","dependency_job_id":"88bbcaba-40b8-4fac-85db-951c5cdbcb25","html_url":"https://github.com/bfrg/vim-c-cpp-modern","commit_stats":{"total_commits":110,"total_committers":7,"mean_commits":"15.714285714285714","dds":0.08181818181818179,"last_synced_commit":"e8d916e7addb132d96691252bbae22a57fea0c41"},"previous_names":["bfrg/vim-c-cpp-modern","bfrg/vim-cpp-modern"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfrg%2Fvim-c-cpp-modern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfrg%2Fvim-c-cpp-modern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfrg%2Fvim-c-cpp-modern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfrg%2Fvim-c-cpp-modern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfrg","download_url":"https://codeload.github.com/bfrg/vim-c-cpp-modern/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355334,"owners_count":22057354,"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":["cpp","cpp11","cpp14","cpp17","cpp20","cpp23","highlighting","syntax","vim"],"created_at":"2024-10-08T08:01:56.233Z","updated_at":"2025-05-15T14:04:33.513Z","avatar_url":"https://github.com/bfrg.png","language":"Vim Script","readme":"# vim-c-cpp-modern: Enhanced C and C++ syntax highlighting\n\nKeyword and regex-based syntax highlighting for C and C++11/14/17/20/23 in Vim.\n\nThe syntax files provide highlighting of:\n- Common ANSI C keywords\n- C++ Standard Library namespaces, types, helper types, helper template\n  variables, and constants\n- C++11 [attributes][attributes]\n- Latest C++ language features like [coroutines][coroutines] and\n  [concepts][concepts]\n- Function and function pointer declarations, and function calls (basically all\n  words followed by an opening parenthesis)\n- Optionally a simpler (less colorful) highlighting of standard C and C++\n  keywords\n\n![screenshot][screenshot]\n**left:** default `cpp.vim` syntax file, **right:** this plugin\n\n\n## Difference to vim-cpp-enhanced-highlight\n\nBoth syntax files are based on [vim-cpp-enhanced-highlight][octol] with the\nfollowing modifications:\n\n- The C++ keywords `virtual`, `override`, `final`, `inline`, `explicit` and\n  `export` are standard C++ statements and **not** types and are therefore\n  highlighted using the highlight group `Statement`.\n- Highlighting of library functions is purely regex-based.\n- User-defined function templates and class/struct members are not highlighted.\n  Their regex'es are too complicated and slow, and fail too often.\n\n\n## Optional features\n\n```vim\n\" Disable function highlighting (affects both C and C++ files)\nlet g:cpp_function_highlight = 0\n\n\" Enable highlighting of C++11 attributes\nlet g:cpp_attributes_highlight = 1\n\n\" Highlight struct/class member variables (affects both C and C++ files)\nlet g:cpp_member_highlight = 1\n\n\" Disable highlighting of type names in class, struct, union, enum, using, and\n\" concept declarations (affects both C and C++ files)\nlet g:cpp_type_name_highlight = 0\n\n\" Highlight operators (affects both C and C++ files)\nlet g:cpp_operator_highlight = 1\n\n\" Put all standard C and C++ keywords under Vim's highlight group 'Statement'\n\" (affects both C and C++ files)\nlet g:cpp_simple_highlight = 1\n```\n\nThe last option changes the highlighting of the following keywords:\n- C: `static`, `register`, `auto`, `volatile`, `extern`, `const`, `inline`,\n  `__attribute__`, `restrict`, `alignas`, `alignof`, `static_assert`,\n  `noreturn`, `thread_local`, `struct`, `union`, `enum`, `case`, `default`\n- C++: `class`, `typename`, `template`, `namespace`, `concept`, `mutable`,\n  `constexpr` `decltype`, `consteval`, `constinit`\n\n\n## Installation\n\n```bash\n$ cd ~/.vim/pack/git-plugins/start\n$ git clone https://github.com/bfrg/vim-c-cpp-modern\n```\n**Note:** The directory name `git-plugins` is arbitrary, you can pick any other\nname. For more details see `:help packages`.\n\n\n## License\n\nDistributed under the same terms as Vim itself. See `:help license`.\n\n\n[cppreference]: https://en.cppreference.com/w/cpp/language/coroutines\n[octol]: https://github.com/octol/vim-cpp-enhanced-highlight\n[attributes]: https://en.cppreference.com/w/cpp/language/attributes\n[coroutines]: https://en.cppreference.com/w/cpp/language/coroutines\n[concepts]: https://en.cppreference.com/w/cpp/concepts\n[screenshot]: https://github.com/user-attachments/assets/4c61580e-203b-4a78-b7cf-2b34702640f0\n","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfrg%2Fvim-c-cpp-modern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfrg%2Fvim-c-cpp-modern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfrg%2Fvim-c-cpp-modern/lists"}